From 80ae1dca2543cf5b4d93208b191710aa3c00eb4f Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 24 Nov 2008 16:04:20 +0000 Subject: [PATCH] ReportStarter: much more optimal searching for resource file --- .../org/compiere/report/ReportStarter.java | 27 +++++++------------ 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/JasperReports/src/org/compiere/report/ReportStarter.java b/JasperReports/src/org/compiere/report/ReportStarter.java index f063db77b0..ea6e7e1b67 100644 --- a/JasperReports/src/org/compiere/report/ReportStarter.java +++ b/JasperReports/src/org/compiere/report/ReportStarter.java @@ -462,23 +462,16 @@ public class ReportStarter implements ProcessCall, ClientProcess { resFile = getResourcesForResourceFile(jasperName, currLang); // TODO: Implement file:/ for resources } else { - File[] resources = reportDir.listFiles( new FileFilter( jasperName, reportDir, ".properties")); - // try baseName + "_" + language - for( int i=0; i