Good :) Now Debian folks could add the debmode to include their specs ...
- Henri Gomez ___[_]____ EMAIL : [EMAIL PROTECTED] (. .) PGP KEY : 697ECEDD ...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Monday, April 29, 2002 1:45 PM >To: [EMAIL PROTECTED] >Subject: cvs commit: jakarta-ant/src/script ant > > >bodewig 02/04/29 04:45:06 > > Modified: src/script ant > Log: > Help getting the wrapper scripts that ship with Ant's "normal" > distributions and the RPMs closer to each other by (1) allowing a > system wide configuration file in /etc and (2) using some environment > variables to enable RPM specific behavior. > > Submitted by: Henri GOMEZ <[EMAIL PROTECTED]> > > Revision Changes Path > 1.18 +37 -5 jakarta-ant/src/script/ant > > Index: ant > =================================================================== > RCS file: /home/cvs/jakarta-ant/src/script/ant,v > retrieving revision 1.17 > retrieving revision 1.18 > diff -u -r1.17 -r1.18 > --- ant 8 Apr 2002 00:45:28 -0000 1.17 > +++ ant 29 Apr 2002 11:45:06 -0000 1.18 > @@ -3,6 +3,20 @@ > # Copyright (c) 2001-2002 The Apache Software Foundation. > All rights > # reserved. > > +# load system-wide ant configuration > +if [ -f "/etc/ant.conf" ] ; then > + . /etc/ant.conf > +fi > + > +# provide default values for people who don't use RPMs > +if [ -z "$rpm_mode" ] ; then > + rpm_mode=false; > +fi > +if [ -z "$usejikes" ] ; then > + usejikes=false; > +fi > + > +# load user ant configuration > if [ -f "$HOME/.antrc" ] ; then > . $HOME/.antrc > fi > @@ -84,10 +98,22 @@ > LOCALCLASSPATH="$CLASSPATH" > fi > > -# add in the dependency .jar files > -DIRLIBS="${ANT_HOME}"/lib > -for i in "${DIRLIBS}"/*.jar > -do > +# in rpm_mode get ant/optional/xml parser&api from JAVALIBDIR > +if $rpm_mode; then > + JAVALIBDIR=/usr/share/java > + for i in ant ant-optional jaxp_parser xml_apis > + do > + if [ -z "$LOCALCLASSPATH" ] ; then > + LOCALCLASSPATH=$JAVALIBDIR/$i.jar > + else > + LOCALCLASSPATH="$i.jar":"$LOCALCLASSPATH" > + fi > + done > +else > + # add in the dependency .jar files in non-RPM mode (the default) > + DIRLIBS="${ANT_HOME}"/lib > + for i in "${DIRLIBS}"/*.jar > + do > # if the directory is empty, then it will return the >input string > # this is stupid, so case for it > if [ "$i" != "${DIRLIBS}/*.jar" ] ; then > @@ -97,7 +123,8 @@ > LOCALCLASSPATH="$i":"$LOCALCLASSPATH" > fi > fi > -done > + done > +fi > > if [ -n "$JAVA_HOME" ] ; then > if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then > @@ -132,6 +159,11 @@ > JIKESPATH=`cygpath --path --windows "$JIKESPATH"` > fi > ANT_OPTS="$ANT_OPTS -Djikes.class.path=$JIKESPATH" > +fi > + > +# Allow Jikes support (off by default) > +if $usejikes; then > + ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes" > fi > > # For Cygwin, switch paths to Windows format before running java > > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
