ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: todir does not accept FQPN???
Date Sun, 09 Nov 2008 13:04:41 GMT
~ is a special shell character and is not understood by java and by ant.

${user.home} is the ant property for the user's home directory.
Peter


On Sun, Nov 9, 2008 at 9:26 AM, Patrick Waugh <ptwaugh@gmail.com> wrote:
> In a properties file I have:
>
> # rapc and sigtool tasks require location of RIM JDE
> jde.home=/home/patrick/lib/jde-4.2.1
>
> # Default simulator
> #simulator.home="$(jde.home}/simulator"
> simulator.home="~/lib/jde-4.2.1/simulator"
>
> and I first ran into a problem with the commented line, and so I began
> experimenting a bit.  I am using this ANT TASK:
>
>        <!-- Copy files to simulator -->
>        <target name="load-simulator" depends="-build">
>                <copy verbose="true" overwrite="true" todir="${simulator.home}">
>                        <fileset dir="${build.dir}" includes="*.cod,*.csl,*.cso,*.debug,*.jar"
/>
>                </copy>
>                <echo message="Load to simulator complete." />
>        </target>
>
> but it seems todir treats ALL directories as relative!!!!  Is there a
> way around this?  Seems crazy to have the copy depend on the location
> of the build.xml!!!
>
> Patrick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message