copying a jar file in Apache Ant
Posted
by synchronicity
on Stack Overflow
See other posts from Stack Overflow
or by synchronicity
Published on 2010-04-13T00:54:54Z
Indexed on
2010/04/13
1:42 UTC
Read the original article
Hit count: 378
apache-ant
|netbeans6.8
I need to copy a jar file from one directory to another when my project is built. Placing the statement:
<copy file="${test.dir}/MyFirstTest.jar" todir="${share.path}"/>
works fine when the project is built alone, but if I clean and build the project I get a warning informing me that the ${test.dir}/ directory hasn't been created yet. If I'm understanding properly I should be able to create a 'target' and specify a dependency for this operation but I'm unsure of what dependency to specify. What series of statements do I need to use to ensure this copy will occur whether I clean and build or just build the project?
Please let me know if any further clarification is needed.
FYI I am using Netbeans 6.8 to build my project.
© Stack Overflow or respective owner