<target name="buildBbastJarFromXsd">
<echo message="Generating jar from xsd for RestService"/>
<java classname="com.sun.tools.internal.xjc.XJCFacade">
<arg value="-d" />
<arg value="${dev.location}"/>
<arg "${dev.location}/path/dev.xsd" />
</java>
<javac srcdir="${dev.location}" destdir="${dev.location}"
debug="on" includeantruntime="false"
>
<classpath refid="dev.classpath"/>
</javac>
<jar
destfile="${dev.location}/WebContent/WEB-INF/rest.jar"
basedir="${bbct.location}"
includes="**/*.class"
/>
</target>
如何编辑build.xml中的上述Ant任务,以确保上述java(XJCFacade)脚本仅在xsd命名的dev.xsd被修改时运行?
我还想确保javac和jar只在java(XJCFacade)运行时运行。