tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dun...@hyperreal.org
Subject cvs commit: jakarta-tools/ant bootstrap.bat
Date Sun, 31 Oct 1999 09:27:58 GMT
duncan      99/10/31 01:27:58

  Modified:    ant      bootstrap.bat
  Log:
  Update to bootstrap.bat file to make sure that it works ok on NT as well as win9x.
  I did massage the result file from the submitted diff a bit, but overall it's as
  contributed.
  
  Thanks Matt!
  
  Obtained from: Matt (no last name given)
  Submitted by: Matt
  Reviewed by: duncan
  
  Revision  Changes    Path
  1.2       +63 -9     jakarta-tools/ant/bootstrap.bat
  
  Index: bootstrap.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/ant/bootstrap.bat,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- bootstrap.bat	1999/10/09 00:05:57	1.1
  +++ bootstrap.bat	1999/10/31 09:27:57	1.2
  @@ -1,12 +1,66 @@
   @ECHO OFF
  -echo Bootstrapping
  -deltree /Y build
  -mkdir foo
  -set B=src\main\org\apache\tools\ant
  -javac -classpath ..\projectx-tr2.jar;..\javac.jar -d foo %B%\BuildException.java %B%\Main.java
%B%\Project.java %B%\ProjectHelper.java %B%\Target.java %B%\Task.java %B%\taskdefs\Jar.java
%B%\taskdefs\Javac.java %B%\taskdefs\Mkdir.java %B%\taskdefs\Deltree.java
  -copy src\main\org\apache\tools\ant\taskdefs\defaults.properties foo\org\apache\tools\ant\taskdefs\defaults.properties
  -copy src\main\org\apache\tools\ant\defaultManifest.mf foo\org\apache\tools\ant\defaultManifest.mf
  -java -classpath ..\javac.jar;..\projectx-tr2.jar;foo org.apache.tools.ant.Main dist
  -deltree /Y foo
  +echo BOOTSTRAPPING ANT DISTRIBUTION
   
  +set C=%CLASSPATH%;..\projectx-tr2.jar;..\javac.jar
  +set SRCDIR=src\main\org\apache\tools\ant
  +set TMPDIR=tmp
  +
  +if "%OS%" == "Windows_NT" goto nt
  +goto windows
  +
  +:doneOs
  +
  +rem Delete temp directory if it exists
  +if exist %TMPDIR%\nul %RMDIRCMD% %TMPDIR% nul
  +
  +rem make the temp directory
  +mkdir %TMPDIR%
  +
  +echo ** COMPILING ANT CLASSES
  +
  +rem Compile the classes into the temp directory
  +javac -classpath %C% -d %TMPDIR% %SRCDIR%\*.java
  +
  +rem Reset classpath to include base ant class files
  +set C=%TMPDIR%;%C%
  +
  +rem Compile sub classes into the temp directory
  +javac -classpath %C% -d %TMPDIR% %SRCDIR%\taskdefs\*.java
  +
  +echo ** COPYING REQUIRED FILES
  +
  +rem Copy all the property/manifest files into the temp directory
  +
  +%COPYCMD% src\main\org\apache\tools\ant\taskdefs\defaults.properties %TMPDIR%\org\apache\tools\ant\taskdefs
  +
  +echo ** BUILDING ANT DISTRIBUTION
  +
  +rem Build the distribution using the newly compiled classes in the temp directory
  +java -classpath %C% org.apache.tools.ant.Main dist %1 %2 %3 %4 %5
  +
  +echo ** CLEANING UP BUILD DIRECTORIES
  +
  +java -classpath %C% org.apache.tools.ant.Main clean %1 %2 %3 %4 %5
  +
  +rem remove the temp directory
  +%RMDIRCMD% %TMPDIR%
  +
  +goto end
  +
  +rem Set system dependent commands below
  +:windows
  +echo ** CONFIGURING COMMANDS FOR WINDOWS 9x SYSTEM
  +set RMDIRCMD=deltree /Y
  +set COPYCMD=copy
  +goto doneOs
  +
  +:nt
  +echo ** CONFIGURING COMMANDS FOR NT SYSTEM
  +set RMDIRCMD=rmdir /s /q
  +set COPYCMD=copy
  +goto doneOs
  +
  +:end
  +
  +echo ** DONE BOOTSTRAPPING ANT DISTRIBUTION
   
  
  
  

Mime
View raw message