Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Other Build Tools
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other Build Tools
The <jar> type doesn't support the nested "copy" element.
miguel lisboa
Ranch Hand
Posts: 1282
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i'm using
ant
i would like to save a copy of my created jar in another location
i tried:
<target name = "jar" depends = "build, cleanJar, initJar"> <jar destfile = "jars/Mercados v2.1.jar" basedir = "${basedir}" manifest = "META-INF/MANIFEST.MF" excludes = "**/*.java **/*.tws **/*.db **/*.xml **/*.txt **/*.jar* src/img/* src/img/*/*" update = "true"> <fileset dir = "${basedir}\bin" /> <copy todir = "."> <fileset dir = "${basedir}"> </fileset> </copy> </jar> </target>
but got the title's error
as a turnaround i added:
<target name = "jar backUp" depends = "jar"> <jar destfile = "${basedir}/Mercados v2.1.jar" basedir = "${basedir}" manifest = "META-INF/MANIFEST.MF" excludes = "**/*.java **/*.tws **/*.db **/*.xml **/*.txt **/*.jar* src/img/* src/img/*/*" update = "true"> <fileset dir = "${basedir}\bin" /> </jar> </target>
is there a better way of doing this back up?
thanks in advance
java amateur
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Put the copy task outside of the jar task?
miguel lisboa
Ranch Hand
Posts: 1282
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
David Newton wrote:
Put the copy task outside of the jar task?
ant isnt one of my strong points :wink:
<target name = "jar backUp" depends = "jar"> <copy todir = "${basedir}"> <fileset dir = "${jar.dir}"> </fileset> </copy> </target>
so its a case solved
thank you
java amateur
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
could not find the main class
how to tell ant that some packages are needed?
need help to find the right path to images
jaring an images folder
image is missing when jaring
More...