ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy Lambert <anto...@gmx.de>
Subject Re: Problems resolving paths in copy's "tofile" when combining multiple properties
Date Wed, 03 Mar 2010 14:19:12 GMT
Oliver Schrenk wrote:
>
>
> Here is an excerpt from the build file:
>
> <project name="Project" default="preview" basedir=".">
>
> <property name="build" location="build" />
> <property name="classes" location="${build}/classes" />
> <property name="properties-path"
> location="/acme/servlet/messages.properties" />
>
> <!-- snip -->
>
> <target name="compile" depends="init" description="compile the source ">
> <!-- Next line is line 86 -->
> <copy file="${properties-path}" tofile="${classes}${properties-path}" />
> <!-- snip -->
> </target>
>  <!-- snip -->
> </project>
>
>
>   
...
> Is this a known issue, expected behavior or just bland misuse of properties
> on my part?
>   
change just this line

<property name="properties-path"
value="/acme/servlet/messages.properties" />

when you use the <property location=""/> idiom, the property is converted to an absolute
path. ${classes} is also an absolute path.


> Best regards
> Oliver Schrenk
>
>   
Regards,

Antoine

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


Mime
View raw message