ANT beginner here. I have a package called Neo, and in its build.xml I'm having a problem. While unzipping the Neo jar into this expanded directory,
<unzip src="${output.dir}/Scala2.11/Neo.jar" dest="${standalone.jar.expanded.jars.dir}"/>
there is a file in the expanded directory called "targetFile" that gets overwritten during the above mentioned unzip step by another file named "targetFile" that exists in the Neo.jar under the path
src/services/targetFile
I need to make sure that this "targetFile" in the Neo.jar doesn't overwrite the "targetFile" that already exists in the expanded directory, but instead concatenates itself to the already-existing "targetFile". This is my approach so far:
<unzip src="${output.dir}/Scala2.11/Neo.jar" dest="${standalone.jar.expanded.jars.dir}">
<patternset>
<include name="src/services/targetFile"/>
</patternset>
</unzip>
Once I've matched the file from patternset, how, syntactically, would I use ANT's Concat task when I don't know the path that "targetFile" exists in the expanded directory beforehand? Actually, looking at this again makes me think that now only "targetFile" will be unzipped due to the patternset, but essentially I need to unzip everything and just do something special for one of the files I'm unzipping.