Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 92513 invoked from network); 4 Dec 2006 16:44:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2006 16:44:43 -0000 Received: (qmail 51548 invoked by uid 500); 4 Dec 2006 16:44:46 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51511 invoked by uid 500); 4 Dec 2006 16:44:46 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 51500 invoked by uid 99); 4 Dec 2006 16:44:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 08:44:46 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=MAILTO_TO_SPAM_ADDR,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 08:44:34 -0800 Received: from z011100.bk.fin.local (z011104.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.13.8/8.13.8) with ESMTP id kB4Gi9sp029687 for ; Mon, 4 Dec 2006 17:44:09 +0100 Received: from z011134.bk.fin.local ([130.11.7.134]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Mon, 4 Dec 2006 17:44:11 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: RE : AW: how to retrieve ant command line arguments on LINUX Date: Mon, 4 Dec 2006 17:44:11 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RE : AW: how to retrieve ant command line arguments on LINUX Thread-Index: AccXwGxd4p0bnW4OQkuH3Q5Fyq7g2wAAu3QQ From: To: X-OriginalArrivalTime: 04 Dec 2006 16:44:11.0624 (UTC) FILETIME=[6CE33680:01C717C3] X-Virus-Checked: Checked by ClamAV on apache.org Could you change the ant-script and export the variable for test? Maybe we can change that ...=20 Jan >-----Urspr=FCngliche Nachricht----- >Von: Bernard LUPIN [mailto:beal6226@yahoo.fr]=20 >Gesendet: Montag, 4. Dezember 2006 17:22 >An: Ant Users List >Betreff: RE : AW: how to retrieve ant command line arguments on LINUX > >Thank you for this advice. Unfortunately, the ant_exec_args is=20 >not exported, so it does not appear in the environment properties. > >I've made a diff beetween the output of > using "ant" and "ant -verbose". With this=20 >way, I've found the ANT_CMD_LINE_ARGS under windows. But under=20 >linux, there are no additional properties... > >Perhaps another way ? >Regards, >Bernard > >--- Jan.Materne@rzf.fin-nrw.de a =E9crit=A0: > >> On Windows the ANT_CMD_LINE_ARGS environment variable is set by the=20 >> launcher script bin\ant.bat. >> So the equivalent would be found in the unix >> launcher: bin/ant >>=20 >> bin/ant:0024: for arg in "$@" ; do >> bin/ant:0031: elif [ my"$arg" =3D my"--h" -o >> my"$arg" =3D my"--help" ] ; then >> bin/ant:0032: show_help=3Dtrue >> bin/ant:0033: ant_exec_args=3D"$ant_exec_args -h" >> bin/ant:0034: else >> bin/ant:0035: if [ my"$arg" =3D my"-h" -o=20 >> my"$arg" =3D my"-help" ] ; then >> bin/ant:0036: show_help=3Dtrue >> bin/ant:0037: fi >> bin/ant:0038: ant_exec_args=3D"$ant_exec_args >> \"$arg\"" >> bin/ant:0039: fi >> bin/ant:0040: done >> bin/ant:0322: ant_exec_command=3D"exec \"$JAVACMD\" >> $ANT_OPTS -classpath \"$LOCALCLASSPATH\"=20 >> -Dant.home=3D\"$ANT_HOME\" >> -Dant.library.dir=3D\"$ANT_LIB\" $ant_sys_opts=20 >> org.apache.tools.ant.launch.Launcher >> $ANT_ARGS -cp \"$CLASSPATH\" $ant_exec_args" >> bin/ant:0323: if $ant_exec_debug ; then >> bin/ant:0324: echo $ant_exec_command >> bin/ant:0325: fi >> bin/ant:0326: eval $ant_exec_command >>=20 >>=20 >> So try "ant_exec_command". >> I havent Linux, so let us know ;-) >>=20 >>=20 >> Jan >>=20 >>=20 >>=20 >> >-----Urspr=FCngliche Nachricht----- >> >Von: Bernard LUPIN [mailto:beal6226@yahoo.fr] >> >Gesendet: Montag, 4. Dezember 2006 16:44 >> >An: user@ant.apache.org >> >Betreff: how to retrieve ant command line arguments >> on LINUX >> > >> >Hi all, >> >Is it possible to retrieve the ant command line >> arguments >> >(like -verbose, -quiet, ...) within an ant task ? >> >On windows platforms, I've found that env.ANT_CMD_LINE_ARGS=20 >contains=20 >> >all the ant >> arguments, so I can >> >parse them with the contrib's propertyregex task. >> >But this don't work on my Linux platform, since ANT_CMD_LINE_ARGS=20 >> >seems to be not set. >> >Thanks a lot ! >> >Bernard >> > > > > >=09 > >=09 > =09 >_______________________________________________________________ >____________ >D=E9couvrez une nouvelle fa=E7on d'obtenir des r=E9ponses =E0 toutes=20 >vos questions !=20 >Profitez des connaissances, des opinions et des exp=E9riences=20 >des internautes sur Yahoo! Questions/R=E9ponses=20 >http://fr.answers.yahoo.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 >additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org