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
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
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
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
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
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
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="
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
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
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 ?
-
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
-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
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:
13 matches
Mail list logo