I have a directory with jars in it. I do not have their names, I have a target that takes name of the jar and its location and does operation on it.
<target name="addAttributes">
<mkdir dir="${folderName}/Temp"/>
<unzip src="${jarNamewtPath}" dest="${folderName}/Temp"/>
<delete file="${jarNamewtPath}"/>
<jar destfile="${jarNamewtPath}">
<manifest>
<attribute name="Application-Name" value="someValue"/>
<attribute name="Trusted-Only" value="true"/>
<attribute name="Codebase" value="*"/>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${folderName}/Temp" />
</jar>
<delete dir="${folderName}/Temp"/>
</target>
How can I get the names of the files and individually pass them over to this target.
<target name="getJars">
<fileset id="getJars" dir="${someDir}/Jars">
<include name="*.jar" />
</fileset>
..... get list of jars
<antcall target="addAttributes">
<param name="folderName" value="${path}"/>
<param name="jarNamewtPath" value="${path}/name.jar"/>
</antcall>
</target>
Any help/clue will be appreciated.