View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/experimental/sant/trunk/sant/bin/santq.cmd
Revision: 2192
Committed: Tue May 9 12:35:53 2006 UTC (14 years, 2 months ago) by jstuyts
File size: 1452 byte(s)
Log Message:
Changed SAnt so JDK-specific libraries can be used for Ant. A project domain can also add and/or override libraries for Ant now.

File Contents

# Content
1 @echo off
2 setlocal
3
4 if "%SANT_HOME%" == "" goto environmentNotSetUp
5 if "%JAVA_HOME%" == "" goto environmentNotSetUp
6
7 set ANT_SCRIPT=%SANT_HOME%\sant\ant\bin\ant
8 if exist "%SANT_HOME%\local-sant-scripts\ant\bin\ant.bat" set ANT_SCRIPT=%SANT_HOME%\local-sant-scripts\ant\bin\ant
9
10 set APPEND_TO_CLASSPATH_SCRIPT=%SANT_HOME%\sant\bin\append-to-classpath
11 if exist "%SANT_HOME%\local-sant-scripts\bin\append-to-classpath.cmd" set APPEND_TO_CLASSPATH_SCRIPT=%SANT_HOME%\local-sant-scripts\bin\append-to-classpath
12
13 set ANT_HOME=%SANT_HOME%\sant\ant
14
15 set SANT_CLASSPATH=
16 for %%j in ("%SANT_HOME%\sant\lib\*.jar") do call "%APPEND_TO_CLASSPATH_SCRIPT%" "%%j"
17 "%JAVA_HOME%\bin\java" -cp "%SANT_CLASSPATH%" nl.hippo.sant.WriteProjectSettingsScriptForWindows
18
19 call project-settings.cmd
20 del project-settings.cmd
21
22 set SANT_CLASSPATH=
23 for %%j in ("%SANT_HOME%\project-domains\%PROJECT_DOMAIN%\ant-lib-%PROJECT_JAVA_VERSION%\*.jar") do call "%APPEND_TO_CLASSPATH_SCRIPT%" "%%j"
24 for %%j in ("%SANT_HOME%\project-domains\%PROJECT_DOMAIN%\ant-lib\*.jar") do call "%APPEND_TO_CLASSPATH_SCRIPT%" "%%j"
25 for %%j in ("%SANT_HOME%\sant\ant\lib-%PROJECT_JAVA_VERSION%\*.jar") do call "%APPEND_TO_CLASSPATH_SCRIPT%" "%%j"
26 set CLASSPATH=%SANT_CLASSPATH%
27
28 call "%ANT_SCRIPT%" -nouserlib -q -f sbuild.xml %*
29
30 goto end
31
32
33
34 :environmentNotSetUp
35 echo ERROR: environment not set up. Run 'sant-admin setup-environment' first.
36
37 goto end
38
39
40
41 :end