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
>> 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
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
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
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
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
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
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
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
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
---
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 ;-)
>
_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
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
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
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
[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
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
[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
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
: 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
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
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
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
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
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
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
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)
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
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]
> 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}
>
>
>
>
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
[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
--- 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
33 matches
Mail list logo