Re: Setting a property based on a command-line parameter

2006-07-24 Thread cknell
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".

RE: Re: Setting a property based on a command-line parameter

2006-07-24 Thread Anderson, Rob (Global Trade)
... ... ... -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

Re: Re: Setting a property based on a command-line parameter

2006-07-21 Thread Dominique Devienne
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

RE: Re: Setting a property based on a command-line parameter

2006-07-21 Thread cknell
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

Re: Setting a property based on a command-line parameter

2006-07-21 Thread Joe Moore
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

RE: Setting a property based on a command-line parameter

2006-07-21 Thread cknell
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

Setting a property based on a command-line parameter

2006-07-21 Thread cknell
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

AW: Command line parameter

2006-06-19 Thread Jan.Materne
>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

Re: Command line parameter

2006-06-17 Thread Juan Jimenez
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

AW: Command line parameter

2006-06-16 Thread Jan.Materne
>> >> >> >> would be better Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Command line parameter

2006-06-16 Thread deepali sharma
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

Re: Command line parameter

2006-06-16 Thread deepali sharma
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

AW: Command line parameter

2006-06-16 Thread Jan.Materne
- 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

Command line parameter

2006-06-16 Thread deepali sharma
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

Re: Which command line parameter could get all targets' name in build.xml ?

2006-01-05 Thread ajax chelsea
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

Re: Which command line parameter could get all targets' name in build.xml ?

2006-01-03 Thread Yves Martin
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 --

Re: Which command line parameter could get all targets' name in build.xml ?

2005-12-31 Thread Rhino
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

Re: Which command line parameter could get all targets' name in build.xml ?

2005-12-31 Thread Wascally Wabbit
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

Which command line parameter could get all targets' name in build.xml ?

2005-12-31 Thread ajax chelsea
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

Passing command line parameter to ant and reading them from within JUnit

2003-02-12 Thread Steve
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