summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryjiang2011-09-07 04:46:51 (EDT)
committer xgu2011-10-25 02:10:00 (EDT)
commitce21b2f2f29dbeaa906341bc57385ae988a4423e (patch)
tree78d50e28a152898a583c6113dbbe80252f68ead9
parent910ea3ee7aee7f8db47cfbf2b0fc3be5a1f9b7e3 (diff)
downloadorg.eclipse.birt-ce21b2f2f29dbeaa906341bc57385ae988a4423e.zip
org.eclipse.birt-ce21b2f2f29dbeaa906341bc57385ae988a4423e.tar.gz
org.eclipse.birt-ce21b2f2f29dbeaa906341bc57385ae988a4423e.tar.bz2
Automatically load external jar under lib when use ReportEngine to generate report
-rw-r--r--build/org.eclipse.birt.releng.birtbuilder/extras/genReportGenerator.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/build/org.eclipse.birt.releng.birtbuilder/extras/genReportGenerator.sh b/build/org.eclipse.birt.releng.birtbuilder/extras/genReportGenerator.sh
index e7e106f..565f849 100644
--- a/build/org.eclipse.birt.releng.birtbuilder/extras/genReportGenerator.sh
+++ b/build/org.eclipse.birt.releng.birtbuilder/extras/genReportGenerator.sh
@@ -73,9 +73,8 @@ echo mkdir -p \$org_eclipse_datatools_workspacepath >> $2/genReport.sh
echo "" >> $2/genReport.bat
echo "" >> $2/genReport.bat
-awk 'NR==1 {printf "export BIRTCLASSPATH=\"$BIRT_HOME/ReportEngine/lib/"$1}' lib.path >> $2/genReport.sh
-awk 'NR>=2 {printf ":$BIRT_HOME/ReportEngine/lib/"$1}' lib.path >> $2/genReport.sh
-echo \" >> $2/genReport.sh
+echo unset BIRTCLASSPATH >> $2/genReport.sh
+echo 'for i in `ls $BIRT_HOME/ReportEngine/lib/*.jar`;do export BIRTCLASSPATH=$i:$BIRTCLASSPATH;done' >> $2/genReport.sh
echo "" >> $2/genReport.sh
echo JAVACMD=\'java\'\; >> $2/genReport.sh
@@ -152,9 +151,9 @@ echo "" >> $2/genReport.bat
echo REM set the birt class path. >> $2/genReport.bat
-awk 'NR==1 {printf "SET BIRTCLASSPATH=%BIRT_HOME%\\ReportEngine\\lib\\"$1}' lib.path >> $2/genReport.bat
-awk 'NR>=2 {printf ";%BIRT_HOME%\\ReportEngine\\lib\\"$1}' lib.path >> $2/genReport.bat
-echo \; >> $2/genReport.bat
+echo setlocal enabledelayedexpansion >> $2/genReport.bat
+echo set BIRTCLASSPATH= >> $2/genReport.bat
+echo 'for %%i in (%BIRT_HOME%\ReportEngine\lib\*.jar) do set BIRTCLASSPATH=%%i;!BIRTCLASSPATH!' >> $2/genReport.bat
echo "" >> $2/genReport.bat
echo "" >> $2/genReport.bat