Hi, this is driving me nuts - is there anyway to use a path-like structure in a copy task?
Scenario is I have a classpath reference which I use for compiling. I'm building a war, so I also need to copy these files into WEB-INF/lib. It would be nice if I only had to define the list of jars once, but as afar as I can determine, if the jars are in multiple directories I cannot use any ant type which can be both path-like and input to <copy> .
I can get around it by copying the files first, then referencing the WEB-INF/lib during the compiling. But to my mind it would be much neater to have a single <files id="externaljars" .... definition.
In fact, the copy task supports resource collections as inner elements, so you can use a path inside the copy task, too.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Ilja, Is that from the resource framework that was introduced with Ant 1.7? Some people are still on 1.6. I infer that John is from his description of the problem.
Joined: Jul 11, 2001
Originally posted by Jeanne Boyarsky: Ilja, Is that from the resource framework that was introduced with Ant 1.7? Some people are still on 1.6. I infer that John is from his description of the problem.