Skip to content

Commit

Permalink
Update genReport.sh (#1222)
Browse files Browse the repository at this point in the history
* Update genReport.sh

Add BIRTCLASSPATH
update BIRT_HOME to "" because the value must be specify by user (depending on install directory)
remove variable export (not use outside this shell)
  • Loading branch information
slhotellier authored Nov 7, 2023
1 parent 3954093 commit 3089f99
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build/org.eclipse.birt.releng.birtbuilder/extras/genReport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@
################ END OF USAGE #########################

# echo set common variables
export BIRT_HOME=$PWD/platform
export WORK_DIR=$PWD
#export BIRT_HOME=BIRT-runtime_install_dir
BIRT_HOME=""
WORK_DIR=$PWD
# class path : don't forget to add your connection drivers in the classpath directory
BIRTCLASSPATH=$BIRT_HOME/ReportEngine/lib/*


echo BIRT_HOME=$BIRT_HOME
echo WORK_DIR=$WORK_DIR
echo BIRTCLASSPATH=$BIRTCLASSPATH

if [ "$BIRT_HOME" = "" ]

Expand All @@ -54,6 +59,7 @@ java_io_tmpdir=$WORK_DIR/tmpdir
org_eclipse_datatools_workspacepath=$java_io_tmpdir/workspace_dtp
mkdir -p $org_eclipse_datatools_workspacepath

# JAVA version >= 17
JAVACMD='java';
$JAVACMD -Djava.awt.headless=true -cp "$BIRTCLASSPATH" -DBIRT_HOME="$BIRT_HOME" -Dorg.eclipse.datatools_workspacepath="$org_eclipse_datatools_workspacepath" org.eclipse.birt.report.engine.api.ReportRunner ${1+"$@"}

Expand Down

0 comments on commit 3089f99

Please sign in to comment.