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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to