~ 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]