<?xml version="1.0" encoding="UTF-8"?>
<project name="myPlugin" default="all">
<target name="artifact.myPlugin:jar" depends="init.artifacts, compile.module.myPlugin" description="Build 'myPlugin:jar' artifact">
<mkdir dir="${artifact.output.myplugin:jar}" />
<jar destfile="${temp.jar.path.myPlugin.jar}" duplicate="preserve" filesetmanifest="mergewithoutmain">
<zipfileset file="${basedir}/META-INF/MANIFEST.MF" prefix="META-INF" />
<zipfileset dir="${myPlugin.output.dir}" />
</jar>
<!--How would I add a version number to this that reflects my projects version -->
<copy file="${temp.jar.path.myPlugin.jar}" tofile="${artifact.output.myPlugin:jar}/plugin.company.jar" />
</target>
人们这样做的典型方式是什么?
示例(从上面提取)
<copy file="${temp.jar.path.myPlugin.jar}" tofile="${artifact.output.myPlugin:jar}/plugin.company{version}.jar" />