Skip to content

Commit

Permalink
added use of JAVA_VERSION_PREFIX environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Mar 2, 2024
1 parent d5e9663 commit 8cf1e8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ant/bc+-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@
</fileset>
</classpath>
<sysproperty key="bc.test.data.home" value="../../core/src/test/data" />
<sysproperty key="test.java.version.prefix" value="${env.JAVA_VERSION_PREFIX}" />

<formatter type="xml" />
<batchtest todir="${artifacts.reports.xml.dir}" unless="testcase">
Expand Down
6 changes: 6 additions & 0 deletions build1-8+
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export JAVA_HOME
PATH=$JDKPATH/bin:$PATH
export PATH

if [ "${JAVA_VERSION_PREFIX}" = "" ]
then
JAVA_VERSION_PREFIX=1.8
export JAVA_VERSION_PREFIX
fi

if [ "$1" = "test" ]
then
ant -f ant/jdk18+.xml test
Expand Down

0 comments on commit 8cf1e8e

Please sign in to comment.