tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject RE: Ant build broken + Shell issues
Date Mon, 06 Dec 1999 14:12:02 GMT
> Hi,
> There are few problems :-)

I can give a few more for trying to bootstrap ant on NT. (I wonder why there
is no file for Unix?)

There is the continuing problem of classpaths which contain spaces causing
boostrap.bat to misbehave. For every usage of %C% in a -classpath option, it
should be quoted "%C%"

The bootstrap fails because it cannot find the file. I
guess this is because it is not copied over to the tmp directory during the
bootstrap. Adding the following line

%COPYCMD% src\main\org\apache\tools\ant\

will fix that. Then the default manifest file cannot be found. Adding

%COPYCMD% src\main\org\apache\tools\ant\

will fix that.

Once the properties file is found, it points to a parser which doesn't exist

Changing that to

fixes things.

Finally the bootstrap fails because the chmod taskdef only works on Unix at
the moment. In fact the ant build.xml file seems to have become quite a bit
more Unix specific recently; the package.dir value "/home/ftp/pub/tomcat"
will fail on most NT systems. Also, I would prefer to see ${dist.dir} be a
dist directory created as part of the build (similar to the build directory
and similar to the tomcat build.xml file). I'm not sure of the motivation
behind ${user.home}/opt as the ${dist.dir} value. Finally the build.xml file
will create a Unix shell script in {my NT "home" directory}/opt/ant/bin. I'm
not sure how desirable that is.

In general, I feel that OS specific stuff should perhaps be moved from the
build.xml files to the build.bat and files. These scripts could
pick up stuff from the "dist" directory created by ant and place it in OS
appropriate locations.

What do you think?


Below are the diffs for my ant area

Index: bootstrap.bat
RCS file: /home/cvspublic/jakarta-tools/ant/bootstrap.bat,v
retrieving revision 1.2
diff -r1.2 bootstrap.bat
< javac -classpath %C% -d %TMPDIR% %SRCDIR%\*.java
> javac -classpath "%C%" -d %TMPDIR% %SRCDIR%\*.java
< javac -classpath %C% -d %TMPDIR% %SRCDIR%\taskdefs\*.java
> javac -classpath "%C%" -d %TMPDIR% %SRCDIR%\taskdefs\*.java
> %COPYCMD% src\main\org\apache\tools\ant\
> %COPYCMD% src\main\org\apache\tools\ant\
< java -classpath %C% dist %1 %2 %3 %4 %5
> java -classpath "%C%" dist %1 %2 %3 %4 %5
< java -classpath %C% clean %1 %2 %3 %4 %5
> java -classpath "%C%" clean %1 %2 %3 %4 %5

Index: build.bat
RCS file: /home/cvspublic/jakarta-tools/ant/build.bat,v
retrieving revision
diff -r1.1.1.1 build.bat
< java -classpath ..\ant.jar;..\projectx-tr2.jar;%CLASSPATH% %1 %2 %3 %4 %5
\ No newline at end of file
> java -classpath "..\ant.jar;..\projectx-tr2.jar;%CLASSPATH%" %1 %2 %3 %4 %5
\ No newline at end of file

Index: src/main/org/apache/tools/ant/
RCS file:
retrieving revision 1.1
diff -r1.1
\ No newline at end of file
\ No newline at end of file

Conor MacNeill
M64 Pty Limited

View raw message