ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: <javac> and properties file
Date Thu, 24 Apr 2003 01:02:40 GMT
Douglas Reames wrote:
> Hi Peter et all,
> I decided to set the value in '' file: "package=com/reames"
> Then write the copy task as:
> <copy todir="${basedir}/war/WEB-INF/classes/${package}">
>             <fileset dir="${basedir}/web/src">
>                 <include name="**/*.properties"/>
>             </fileset>
>         </copy>
> That at least gives me some of the flexibility I was looking for. I'd be 
> happy to hear a better suggestion.

That is the best solution. Some old versions of <javac> in ant1.1 did 
copy .properties files automatically, but it caused confusion. Too much 
stuff was getting into jars, and other things (like XML files) were 
being left out. The <copy> task is explicitly, and thats how its going 
to stay.

View raw message