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