Hallo,

I have followin target, which will I'm using with antcall task.

<target name="createejbjar" description="create jar file for ejb" if="jar.name">
<echo message="creating ${jar.name}"/>
<jar jarfile="${dir.jars.ejb}/${jar.name}">
<fileset dir="${src.ejb}">
<include name="**/*.class"/>
<include name="**/*.xml"/>
</fileset>
<!-- Manifest.mf file for jar-files -->
<manifest>
<attribute name="Built-By" value="${firm.name}"/>
<section name="Firm">
<attribute name="Firm-Name" value="${firm.name}"/>
<attribute name="Firm-URL" value="${firm.url}"/>
</section>
<section name="Product">
<attribute name="Product-Name" value="${project.name}"/>
<attribute name="Version" value="${project.version}"/>
<attribute name="JAR" value="${jar.name}"/>
<attribute name="Build-Revision" value="${build.revision}"/>
</section>
<section name="Java">
<attribute name="Java-Version" value="${java.version}"/>
</section>
<section name="Ant">
<attribute name="Ant-Version" value="${ant.version}"/>
</section>
</manifest>
</jar>
</target>

Now I working for other target which should generate the same manifest file. But I have no idea how. Only the one parameter jar.name is dynamically. All other are defined as no changable properties.


Best Regards,
Rafal


--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>

Reply via email to