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]>
> Subject: How to pass a file to an Ant build.xml process from command line?
> To: "Ant Users List" <[email protected]>
> Date: Saturday, November 1, 2008, 2:52 AM
> 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.xml
> D:\myproj\test222\somefile.java
>
> Can I do this somehow?
>
> If yes: how exactly would the command lokk like and how
> would I refer
> to the passed file (=parameter) from inside build.xml?
>
> Ben
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]