Here is how I decided to do it. If the command-line parameter "span" is
supplied with the value "week", "start.date" is assigned the value of
"weekly.start.date". Otherwise, it is assigned the value of "daily.start.date".
...
...
...
-Rob A
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 21, 2006 1:11 PM
> To: user@ant.apache.org
> Subject: RE: Re: Setting a property based on a command-line parameter
>
> is almost right, but it doesn't
L PROTECTED] - email
-Original Message-
From: Joe Moore <[EMAIL PROTECTED]>
Sent: Fri, 21 Jul 2006 12:56:39 -0700 (PDT)
To: Ant Users List
Subject: Re: Setting a property based on a command-line parameter
Charles,
Look at the Conditions task, Supported conditions
00 (PDT)
To: Ant Users List
Subject: Re: Setting a property based on a command-line parameter
Charles,
Look at the Conditions task, Supported conditions in the Ant manual. This has a
test to see if a property is set or not.
The Tstamp task has an offset attribute that you can use to chan
Moore
[EMAIL PROTECTED]
- Original Message
From: [EMAIL PROTECTED]
To: user@ant.apache.org
Sent: Friday, July 21, 2006 3:41:05 PM
Subject: Setting a property based on a command-line parameter
I'm using Ant to orchestrate a processing pipeline that begins with a query to
an Oracle dat
D] - email
-Original Message-
From: [EMAIL PROTECTED]
Sent: Fri, 21 Jul 2006 15:41:05 -0400
To: user@ant.apache.org
Subject: Setting a property based on a command-line parameter
I'm using Ant to orchestrate a processing pipeline that begins with a query to
an Oracle database
value for the low end of the
date range in Ant, triggered by passing the command line parameter -Dweek=true.
Based on this (either the parameter is set or it is not), I'd like to set a
property to one or another value.
If week=true then I'd like to set the value of start.date to t
>Easy...I use this trick to run/not run my unit tests:
>
>command line to run my unit tests:
>
>ant -Dunit.test=true build.all
But dont wonder with-Dunit.test=false
Jan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Easy...I use this trick to run/not run my unit tests:
command line to run my unit tests:
ant -Dunit.test=true build.all
command line to skipt my unit tests:
ant build.all
ANT Script:
...
...
Juan
On 16/06/06, deepali sharma <[EMAIL PROTECTED]> wrote:
Hi
We have requirement like thi
>>
>>
>>
>>
would be better
Jan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ks in a HelloWorld
> - give that target a name
> - call that target from the commandline
> ant foo
>
>
> Jan
>
> >-Ursprüngliche Nachricht-
> >Von: deepali sharma [mailto: [EMAIL PROTECTED]
> >Gesendet: Freitag, 16. Juni 2006 11:49
> >An: user@an
pache.org
>Betreff: Command line parameter
>
>Hi
>We have requirement like this.
>I want to give a command line argument and based on this
>argument I want run some task.
>Can this is possible.
>If possible how we can
- bundle your tasks in a HelloWorld
- give that target a name
- call that target from the commandline
ant foo
Jan
>-Ursprüngliche Nachricht-
>Von: deepali sharma [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 16. Juni 2006 11:49
>An: user@ant.apache.org
>Betref
Hi
We have requirement like this.
I want to give a command line argument and based on this argument I want run
some task.
Can this is possible.
If possible how we can achieve this???
--
cheers
deepali
Got it ! Thanks for all helps
2006/1/3, Yves Martin <[EMAIL PROTECTED]>:
>
> Wascally Wabbit <[EMAIL PROTECTED]> writes:
>
> > ant -projecthelp gives list of public targets for build.xml in current
> > directory. (Use -f to name alternative build script.)
>
> You may also use ant -v -projecthelp
Wascally Wabbit <[EMAIL PROTECTED]> writes:
> ant -projecthelp gives list of public targets for build.xml in current
> directory. (Use -f to name alternative build script.)
You may also use ant -v -projecthelp
to get all targets (public and internal)
Regards,
--
Yves Martin
--
ECTED]>
To: "Ant Users List"
Sent: Saturday, December 31, 2005 4:12 AM
Subject: Which command line parameter could get all targets' name in
build.xml ?
hi all:
anybody could give any suggestions ?
ant [options] [target [target2 [target3] ...]]
Options:
-help, -h
ant -projecthelp gives list of public targets for build.xml in current
directory. (Use -f to name alternative build script.)
At 04:12 AM 12/31/2005, you wrote:
hi all:
anybody could give any suggestions ?
ant [options] [target [target2 [target3] ...]]
Options:
-help, -h prin
hi all:
anybody could give any suggestions ?
ant [options] [target [target2 [target3] ...]]
Options:
-help, -h print this message
-projecthelp, -p print project help information
-version print the version information and exit
-diagnostics pri
Hi,
I know how to pass command line parameters into ANT using the -D option.
But how can I pick up these parameters from within a JUnit test script
Started from within ANT.
Regards
Steve
-
To unsubscribe, e-mail: [EMAIL PROTEC
20 matches
Mail list logo