I’m trying to use Apache Commons Configuration and using ant for my build tool. I have one namespaced class, and when ant builds it of course sub-directories. I need to put my .xml configuration file in the leaf directory (ie: ${build}/com/cross/xxx/). Is there an automated way to do this, or do I just manually configure the path of the leaf folder?
Share
Check out the Ant
copytask. You’ll want to do something like this (assuming a nameconfig.xmlfor your XML config file):Of course,
preservelastmodifiedis optional. The copy task is very powerful; above is the simplest possible sample of what it can do.