Re: Feature request: if/unless on command line arguments

2012-02-17 Thread Steele, Richard
On Fri, Feb 17, 2012 at 8:30 AM, Dominique Devienne wrote: > >> From: "Steele, Richard" > >> I think it would be convenient to have command-line arguments take > optional > >> if/unless attributes that work much like those on targets. > > On F

Re: Feature request: if/unless on command line arguments

2012-02-17 Thread Dominique Devienne
>>  From: "Steele, Richard" >> I think it would be convenient to have command-line arguments take optional >> if/unless attributes that work much like those on targets. On Fri, Feb 17, 2012 at 2:06 PM, Vimil Saju wrote: > Can't you use the if task from

Re: Feature request: if/unless on command line arguments

2012-02-17 Thread Vimil Saju
Can't you use the if task from ant-contrib?  From: "Steele, Richard" To: user@ant.apache.org Sent: Friday, February 17, 2012 4:34 AM Subject: Feature request: if/unless on command line arguments I think it would be convenient to have command

Feature request: if/unless on command line arguments

2012-02-17 Thread Steele, Richard
I think it would be convenient to have command-line arguments take optional if/unless attributes that work much like those on targets. My use case is with the task where I want to conditionally pass in an -Xlint option

Re: command line arguments

2008-02-09 Thread Mansour
I am looking for something like this, but without modifying the source code. I am wondering if it can be done through the build.xml file only. Dominique Devienne wrote: On Feb 8, 2008 3:53 PM, Mansour <[EMAIL PROTECTED]> wrote: Is there a way to pass command line arguments to ant

Re: command line arguments

2008-02-09 Thread Tim Meals
Dominique -- Actually, I would have appreciated some sort of way to get at the command line arguments to the right on the target, although could never resolve a way to do it. Alas, it doesn't matter to me now, as I'm changing jobs and won't have involvement with this particu

Re: command line arguments

2008-02-08 Thread Dominique Devienne
On Feb 8, 2008 3:53 PM, Mansour <[EMAIL PROTECTED]> wrote: > Is there a way to pass command line arguments to ant build file without > using the jvm paramets (ie. without -Dsome.option=some.value). > > I need something like: > ant target option. > > Thank you. I hacke

command line arguments

2008-02-08 Thread Mansour
Is there a way to pass command line arguments to ant build file without using the jvm paramets (ie. without -Dsome.option=some.value). I need something like: ant target option. Thank you. - To unsubscribe, e-mail: [EMAIL

RE : AW: RE : AW: how to retrieve ant command line arguments on LINUX

2006-12-05 Thread Bernard LUPIN
le for test? > Maybe we can change that ... > > Jan > > >-Ursprüngliche Nachricht- > >Von: Bernard LUPIN [mailto:[EMAIL PROTECTED] > >Gesendet: Montag, 4. Dezember 2006 17:22 > >An: Ant Users List > >Betreff: RE : AW: how to retrieve ant command lin

Re: RE : AW: how to retrieve ant command line arguments on LINUX

2006-12-04 Thread Dominique Devienne
On 12/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Could you change the ant-script and export the variable for test? Maybe we can change that ... If we do this, we should be doing it in Launcher.java, not the .bat or .sh or .py or whatever else scripts, IMHO. --DD ---

AW: RE : AW: how to retrieve ant command line arguments on LINUX

2006-12-04 Thread Jan.Materne
uot; $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 >> >> >> So try "ant_exec_command". >> I havent Linux, so let us know ;-) >

RE : AW: how to retrieve ant command line arguments on LINUX

2006-12-04 Thread Bernard LUPIN
_opts > 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 > > > So try &quo

AW: how to retrieve ant command line arguments on LINUX

2006-12-04 Thread Jan.Materne
mand So try "ant_exec_command". I havent Linux, so let us know ;-) Jan >-Ursprüngliche Nachricht- >Von: Bernard LUPIN [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 4. Dezember 2006 16:44 >An: user@ant.apache.org >Betreff: how to retrieve ant command line argume

how to retrieve ant command line arguments on LINUX

2006-12-04 Thread Bernard LUPIN
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 contains all the ant arguments, so I can parse them with the contrib's propertyregex task. But this don't w

Re: Passing command line arguments to the "run" target??

2006-08-27 Thread johann . petrak
On 8/27/06, Mathieu Champlon <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] a écrit : > > So I want to do something like > ant run -a -b -c > which should result in "-a -b -c" to be passed to the task. > Next time I want to do > ant run -x a 12 23 > and now "-a a 12 23" should be used by the ja

Re: Passing command line arguments to the "run" target??

2006-08-26 Thread Mathieu Champlon
[EMAIL PROTECTED] a écrit : So I want to do something like ant run -a -b -c which should result in "-a -b -c" to be passed to the task. Next time I want to do ant run -x a 12 23 and now "-a a 12 23" should be used by the java task. A property can be set from the command line, like this : an

Re: Passing command line arguments to the "run" target??

2006-08-26 Thread johann . petrak
On 8/26/06, Mathieu Champlon <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] a écrit : > (...) > I would like to run the program from within an ant task so that I can > make > use of how ant can collect the classpath etc., but I would like to > pass such > command line parameters on the program bei

Re: Passing command line arguments to the "run" target??

2006-08-26 Thread Mathieu Champlon
[EMAIL PROTECTED] a écrit : (...) I would like to run the program from within an ant task so that I can make use of how ant can collect the classpath etc., but I would like to pass such command line parameters on the program being called in the run task. (...) How do you run the program ? Don

Passing command line arguments to the "run" target??

2006-08-26 Thread johann . petrak
I am using ant to compile a Java program that depends on quite a large number of other libraries. This program handles command line parameters of the form "--opt1 value1 -v --opt2 val2 arg1 arg2" etc. I would like to run the program from within an ant task so that I can make use of how ant can c

RE: Re: Command line arguments with task.

2006-08-08 Thread cknell
: Tue, 8 Aug 2006 10:16:56 -0500 To: "Ant Users List" Subject: Re: Command line arguments with task. > So far that problem is still unresolved. Have you tried using -lib saxon.jar on the command line? This puts saxon first on the classpath, which makes Trax load it inst

Re: Command line arguments with task.

2006-08-08 Thread Dominique Devienne
So far that problem is still unresolved. Have you tried using -lib saxon.jar on the command line? This puts saxon first on the classpath, which makes Trax load it instead of the default JDK-provided XSLT engone. To my eye, these appear to be indentical. Which one is wrong? the 'value' on

Command line arguments with task.

2006-08-08 Thread cknell
irectly. So I looked at the ANT manual concerning the task where I found this: Examples is a single command-line argument containing a space character. represents two separate command-line arguments. To my eye, these appear to be indentical. Which one is wrong? The test case task in

Re: How to access command line arguments passed to Ant. How to search Ant manual

2006-03-09 Thread Ninju Bohra
To: user@ant.apache.org Sent: Wednesday, March 8, 2006 7:07:14 AM Subject: RE: How to access command line arguments passed to Ant. How to search Ant manual I have a .bat file that starts Ant with the parameters that the user specifies. The reason I want to use the argument instead of using -D is that d

RE: How to access command line arguments passed to Ant. How to search Ant manual

2006-03-08 Thread Mehdi.Rakhshani
813-496-3624 -Original Message- From: notify@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of schmaxelander Sent: Wednesday, March 08, 2006 7:51 AM To: Rakhshani, Mehdi (GXS) Subject: Re: How to access command line arguments passed to Ant. How to search Ant manual Hi Mehdi

Re: How to access command line arguments passed to Ant. How to search Ant manual.

2006-03-06 Thread Jeffrey E Care
Google with the "site:" option. Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer <[EMAIL PROTECTED]> wrote on 03/06/20

How to access command line arguments passed to Ant. How to search Ant manual.

2006-03-06 Thread Mehdi.Rakhshani
I went through as much of the Ant manual as I could and did not find any information that tells me how to use a command line argument that was passed to Ant (I am sure it is there and I missed it). 1- Is there a way to search the Ant manual? 2- If I call Ant with "target argumen

Command Line arguments with spaces

2005-01-17 Thread Daniel Kalcevich
I know this has probably been asked a lot, but is there any way I can pass a command line argument with spaces in it, and not have it be wrapped in double quotes by ANT? I have code similar to the following: private void getStreamCommand(Commandline cmd) { if (getStream() != null)

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread George Dibi
Let me try the other version you just gave me. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:44 PM To: Ant Users List Subject: RE: Ant file command-line arguments WAS nested "fileset" error (why?) > From: George

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread George Dibi
Thanks, That works. -Original Message- From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:41 PM To: Ant Users List Subject: RE: Ant file command-line arguments WAS nested "fileset" error (why?) ant ivcommon_isoft -DBUILDVIEW=[insert here]

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread Dominique Devienne
> From: George Dibi [mailto:[EMAIL PROTECTED] > > Where the ${BUILDVIEW} ${IVC_VER} ${IVC_BLD} would past in from command > line. > > > > Building ivcommon... >${perl.bin.dir} ${ivc.perl.target} ${drive} ${BUILDVIEW} > > > >

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread RADEMAKERS Tanguy
ant ivcommon_isoft -DBUILDVIEW=[insert here] -DIVC_VER=[insert here] -DIVC_BLD=[insert here] >-Original Message- >From: George Dibi [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 28, 2004 9:30 PM >To: Ant Users List >Subject: RE: Ant file command-line arguments WAS ne

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread George Dibi
[mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:16 PM To: Ant Users List Subject: RE: Ant file command-line arguments WAS nested "fileset" error (why?) --- George Dibi <[EMAIL PROTECTED]> wrote: > Can someone tell me how to have build.xml file to > take a comman

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread Matt Benson
--- George Dibi <[EMAIL PROTECTED]> wrote: > Can someone tell me how to have build.xml file to > take a command line > arguments? An example file would be appreciated. Kind of depends on what you want to do, post a problem, someone will probably solve it. Even a hypotheti