~ubuntu-branches/ubuntu/jaunty/ant/jaunty-proposed

« back to all changes in this revision

Viewing changes to build.bat

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Gybas
  • Date: 2002-02-14 14:28:48 UTC
  • Revision ID: james.westby@ubuntu.com-20020214142848-2ww7ynmqkj31vlmn
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@echo off
 
2
 
 
3
set OLDCLASSPATH=%CLASSPATH%
 
4
set REAL_ANT_HOME=%ANT_HOME%
 
5
set ANT_HOME=bootstrap
 
6
if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
 
7
call bootstrap.bat
 
8
if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
 
9
echo Bootstrap FAILED
 
10
goto cleanup
 
11
 
 
12
:runAnt
 
13
set LOCALCLASSPATH=lib\crimson.jar;lib\jaxp.jar;bootstrap\lib\ant.jar
 
14
for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat %%i
 
15
set CLASSPATH=lib\optional\xalanj1compat.jar;%LOCALCLASSPATH%;%CLASSPATH%
 
16
set LOCALCLASSPATH=
 
17
 
 
18
if not "%REAL_ANT_HOME%" == "" goto install_ant
 
19
call bootstrap\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9
 
20
goto cleanup
 
21
 
 
22
:install_ant
 
23
call bootstrap\bin\ant.bat -emacs -Dant.install="%REAL_ANT_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9
 
24
 
 
25
rem clean up
 
26
:cleanup
 
27
set ANT_HOME=%REAL_ANT_HOME%
 
28
set REAL_ANT_HOME=
 
29
set CLASSPATH=%OLDCLASSPATH%
 
30
set OLDCLASSPATH=