forked from olap4j/olap4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a few problems with the build script and JDK versions.
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@481 c6a108a4-781c-0410-a6c6-c2d559e19af0
- Loading branch information
1 parent
4c0f311
commit c3370ac
Showing
3 changed files
with
85 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,65 @@ | ||
@echo off | ||
rem $Id: buildJdk16.bat 207 2009-05-05 14:58:00Z lucboudreau $ | ||
rem Called recursively from 'ant release' to build the files which can only be | ||
rem built under JDK 1.6. | ||
rem $Id: //open/mondrian/buildOnJdk.bat#2 $ | ||
|
||
rem **** This program takes 1 argument and a series of other arguments to pass to Ant. | ||
rem **** - buildOnJdk.bat [jdk version] [ant arguments] | ||
|
||
rem **** The value of [jdk version] must be one of: | ||
rem **** - jdk1.5 | ||
rem **** - jdk1.6 | ||
rem **** - jdk1.7 | ||
|
||
rem **** It assumes the following environment variables are set. | ||
rem **** - JAVA_HOME_15: Home directory of a JDK 1.5.X. | ||
rem **** - JAVA_HOME_16: Home directory of a JDK 1.6.X. | ||
rem **** - JAVA_HOME_17: Home directory of a JDK 1.7.X. | ||
|
||
rem **** It also assumes that Ant is on the classpath. | ||
|
||
rem ============================================================================= | ||
rem ===== You can set some environment variables right here if needed =========== | ||
|
||
rem Change the following line to point to your JDK 1.5 home. | ||
set JAVA_HOME_15=C:\apps\java\jdk1.5.0_22 | ||
|
||
rem Change the following line to point to your JDK 1.6 home. | ||
set JAVA_HOME=C:\jdk1.6.0_11 | ||
rem set JAVA_HOME=C:\java\jdk1.6.0_13 | ||
set JAVA_HOME_16=C:\apps\java\jdk1.6.0_27 | ||
|
||
rem Change the following line to point to your JDK 1.7 home. | ||
set JAVA_HOME_17=C:\apps\java\jdk1.7.0_01 | ||
|
||
rem Change the following line to point to your ant home. | ||
set ANT_HOME=C:\open\thirdparty\ant | ||
rem set ANT_HOME=C:\ant\ant-1.7.0 | ||
rem set ANT_HOME=C:\apps\ant\1.7.1 | ||
rem set ANT_HOME=C:\apps\ant\1.8.1 | ||
|
||
rem ====================================================== | ||
rem ===== Don't touch anything below this line =========== | ||
|
||
if %1==jdk1.5 ( | ||
set JAVA_HOME=%JAVA_HOME_15% | ||
) | ||
if %1==jdk1.6 ( | ||
set JAVA_HOME=%JAVA_HOME_16% | ||
) | ||
if %1==jdk1.7 ( | ||
set JAVA_HOME=%JAVA_HOME_17% | ||
) | ||
|
||
set ANT_ARGUMENTS= | ||
for %%A in (%*) do ( | ||
set ANT_ARGUMENTS=%ANT_ARGUMENTS% %%A | ||
) | ||
|
||
rem We set JAVACMD for the benefit of Ant. | ||
set JAVACMD=%JAVA_HOME%\bin\java.exe | ||
|
||
rem Some debug info | ||
echo Using ANT_HOME: %ANT_HOME% | ||
echo Using JAVA_HOME: %JAVA_HOME% | ||
echo Using JAVACMD: %JAVACMD% | ||
echo Using Ant arguments: %ANT_ARGUMENTS% | ||
|
||
ant %ANT_ARGUMENTS% | ||
|
||
set PATH=%JAVA_HOME%\bin;%PATH% | ||
%ANT_HOME%\bin\ant compile.compile | ||
rem End buildJdk16.bat | ||
|
||
# End buildJdk16.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters