ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: Cannot bootstrap on JDK 1.1 any longer
Date Tue, 05 Feb 2002 17:32:03 GMT
--- Stephane Bailliez <stephane.bailliez@haht.com> wrote:
> > -----Original Message-----
> > From: Stefan Bodewig [mailto:bodewig@apache.org]
> 
> > On Tue, 5 Feb 2002, Stephane Bailliez <stephane.bailliez@haht.com>
> > wrote:
> > 
> > >> The other option I see is moving NoExitSecurityManager somewhere
> > >> where bootstrap doesn't pick it up
> > > 
> > > +1
> > 
> > org.apache.tools.ant.util.optional?
> 
> Sounds good.

If it's actually more appropriate there than where it currently lives, I'd
say go for it. But if you're moving it just to keep it out of the
bootstrap compile, and it would be inappropriate having it live in some
other location, you could instead just filter it out -- here's the diff:

Index: bootstrap.sh
===================================================================
RCS file: /home/cvs/jakarta-ant/bootstrap.sh,v
retrieving revision 1.61
diff -u -r1.61 bootstrap.sh
--- bootstrap.sh        27 Jan 2002 19:25:29 -0000      1.61
+++ bootstrap.sh        5 Feb 2002 16:58:11 -0000
@@ -107,13 +107,18 @@
 mkdir -p ${CLASSDIR}
 mkdir -p bin

+# Exclude NoExitSecurityManager, since it's not needed for the bootstrap
+# and JDK1.1 can't compile it.
+
+ANTTOOLS=`ls -1 $TOOLS/ant/*.java | grep -v NoExitSecurityManager.java`
+
 echo ... Compiling Ant Classes

 "${JAVAC}" -d ${CLASSDIR} ${TOOLS}/bzip2/*.java ${TOOLS}/tar/*.java
${TOOLS}/zip/*.java \
     ${TOOLS}/ant/util/regexp/RegexpMatcher.java \
     ${TOOLS}/ant/util/regexp/RegexpMatcherFactory.java \
     ${TOOLS}/ant/util/*.java ${TOOLS}/ant/types/*.java \
-    ${TOOLS}/ant/*.java ${TOOLS}/ant/taskdefs/*.java \
+    ${ANTTOOLS} ${TOOLS}/ant/taskdefs/*.java \
     ${TOOLS}/ant/taskdefs/compilers/*.java \
     ${TOOLS}/ant/taskdefs/condition/*.java
 ret=$?

I can put it through, if you'd rather go this way.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message