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: problem with copy task
Date Thu, 27 Mar 2008 13:46:00 GMT
 if="${src.lib.dir}">
should be if="src.lib.dir"
as the if attribute uses the presence or absence of the property and
not on the value of the property.

also, you may need to do **/*.jar instead of "*.jar" to get jars in
sub-directories.

Peer
On Thu, Mar 27, 2008 at 12:48 PM, Luca Ferrari <fluca1978@infinito.it> wrote:
> Hi all,
>  I've got the following task in my ant build file:
>
>  <target name="_copyDependencies" depends="_createDirectoryStructure"
>  description="Copies all the jars this project depdends on contained in
>  ${src.lib.dir}"  if="${src.lib.dir}">
>                 <copy todir="${build.lib.dir}" >
>                         <fileset dir="${src.lib.dir}">
>                                 <include name="*.jar" />
>                         </fileset>
>                 </copy>
>         </target>
>
>  the idea is to copy all the jars in the src-lib file directory to the
>  destination directory. ${src.lib.dir} points to the lib directory (that
>  exists and is not empty), while the ${build.lib.dir} is build/lib (that
>  exists). I've tried several time, and the same task into another build file
>  with the same project layout works.
>
>  Any idea?
>
>  Thanks,
>  Luca
>
>  ---------------------------------------------------------------------
>  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