Re: How to pass a file to an Ant build.xml process from command line?

2008-10-31 Thread Sann Maung
You can use your tbuild.xml with -f $ ant -f tbuild.xml For parameter you can write inside your build file eg. ...="${yourFile}" ... $ ant -f tbuild.xml -DyourFile=someFile.java rgds, --- On Sat, 11/1/08, Ben Stover <[EMAIL PROTECTED]> wrote: > From: Ben Stover <[EMAIL PROTECTED]> > Subj

Re: How to pass a file to an Ant build.xml process from command line?

2008-10-31 Thread Morgan Kinne
First on the command line try: ant -help This will show you the command line options. You will notice: ant -buildfile myfavoritebuildfile.xml is the option you are looking for. Morgan From: "Ben Stover" <[EMAIL PROTECTED]> To: "Ant Users List" Date: 10/31/2008 02:55 PM Subject: How to pass a

Re: How to pass a file to an Ant build.xml process from command line?

2008-10-31 Thread Morgan Kinne
Oops. Never mind.. I missed the eclipse part of your question. Morgan From: Morgan Kinne/Raleigh/IBM To: "Ant Users List" Date: 10/31/2008 03:43 PM Subject: Re: How to pass a file to an Ant build.xml process from command line? First on the command line try: ant -help This will show you the c

How to pass a file to an Ant build.xml process from command line?

2008-10-31 Thread Ben Stover
Normally I use Ant by clicking on a pre-defined build.xml process inside e.g. Eclipse. However sometimes I would appreciate to have the chance to call Ant and an Ant build.xml script from command line and pass e.g. a file to it. Something like: java org.apache.ant.executescript D:\myproj\tbuild

Re: Conditional depends clause

2008-10-31 Thread Scot P. Floess
I think you'll need to define an unless attribute on each of the depends targets. So, for example: depends="copyDevConf,copyIntConf,copyQaConf,copyProdConf" /> ... On Fri, 31 Oct 2008, [EMAIL PROTECTED] wrote: Hi, I have this in my build.xml file What I would like, however, is to

Conditional depends clause

2008-10-31 Thread dave.alvarado
Hi, I have this in my build.xml file What I would like, however, is to only have one depends option depending on what a variable "env" is, which is passed to my script. So, for example, if env = "dev", I would like to execute only the "copyDevConf" option above. How do I configure this in

Re: Problem with executing aliases

2008-10-31 Thread Tyler Roscoe
On Fri, Oct 31, 2008 at 01:40:56AM -0700, azajac wrote: > I've several aliases defind in ~/.cshrc file > > when I'am trying to execute dem from sshexec it allways returns a message > then my command was not found i'am trying to do something like this : > > > > trust="

RE: ANT_OPTS programatically

2008-10-31 Thread Pascal Lalonde
Was this the right place to ask this ? - Pascal -Original Message- From: Pascal Lalonde [mailto:[EMAIL PROTECTED] Sent: October 31, 2008 9:45 AM To: user@ant.apache.org Subject: ANT_OPTS programatically Hi, Before, I was using the ANT_OPTS environment variable to give more memory t

ANT_OPTS programatically

2008-10-31 Thread Pascal Lalonde
Hi, Before, I was using the ANT_OPTS environment variable to give more memory to ant for the build to be done. Now, I am calling ant programmatically this way: File buildFile = new File("build.xml"); Project p = new Project(); DefaultLogger consoleLogger = new DefaultLogger(); consoleLogge

Problem with executing aliases

2008-10-31 Thread azajac
Hi I've several aliases defind in ~/.cshrc file when I'am trying to execute dem from sshexec it allways returns a message then my command was not found i'am trying to do something like this : what should be done to execute this ? -

RE: Multiple conditions satisfying in an ant target

2008-10-31 Thread sukanya
Hi Gilbert, It works!. I forgot to mention tat either one of these these conditions may be false and still should work. I replaced with and that also works :) thanks so much for your timely help. Rebhan, Gilbert wrote: > > > -Original Message- > From: sukanya [mailto:[EMAIL PROTECT

RE: Multiple conditions satisfying in an ant target

2008-10-31 Thread Rebhan, Gilbert
-Original Message- From: sukanya [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2008 8:48 AM To: user@ant.apache.org Subject: Multiple conditions satisfying in an ant target /* [...] Start something new Here how do i inclue isbad also as an unless conditio

Multiple conditions satisfying in an ant target

2008-10-31 Thread sukanya
Hi All, I have two separate conditions using equals operator. There is an ant call to a target. This target has a check for unless with one of the conditions. How do I include another unless such tat the second condition is also included in this single ant target. eg: