Reputation: 651
I have next trouble. I have one folder("FirstFolder") and 3 subfolders("1", "2", "3"). I want to archive this folders in next - 1.acp, 2.acp, 3.acp and placed in other folder. It's important - I do not know what are called sub-folders and their number!!! I don't found solutions for this and write simple ant task-
<target name="start">
<foreach target="zipAcp" param="Files">
<path>
<dirset dir="src/main/bootstrap"/>
</path>
</foreach>
</target>
<target name="zipAcp">
<zip destfile="target/classes/alfresco/extension/agilent/${Files}.acp" basedir="src/main/bootstrap"/>
</target>
But i don't know how get directory name(1), but not full path as now(D:\test\1).
Upvotes: 1
Views: 385