ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Run time commands - a Solution
Date Thu, 18 Apr 2002 07:25:08 GMT
On Wed, 17 Apr 2002, Oisin Kim <oisin.kim@aurium.net> wrote:

>       <arg value="some.properties"/> 	<!--a paramter, a properties file-->
>       <arg value="somefilename.txt"/>	<!--a paramter, some file name-->

> Since this java command no longer uses the option "fork=true" you
> can't define a Path to run java from, everything is run relative to
> the folder the Ant build script is contained (if you run Ant from
> the command line) in or if you're using something like netbeans,
> relative to the netbeans bin directory, although this may be just a
> config issue!

Use

   <arg file="some.properties"/> 	<!--a paramter, a properties file-->
   <arg file="somefilename.txt"/>	<!--a paramter, some file name-->

instead

Ant will pass the absolute pathname of the files on the command line
and assume that relative paths are relative to your project's basedir.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message