<target name= "pguard " description= "build new release jar " depends= "oldjar ">
<java fork= "true " classname= "proguard.ProGuard " classpath= "${basedir}/lib/proguard.jar ">
<arg line= "-libraryjars ${lib.path} " />
<arg line= "-injar ${basedir}/pack/${oldapp}.jar " />
<arg line= "-outjar ${basedir}/pack/${newapp}.jar " />
</java>
</target>
出错提示:
BUILD FAILED
build.xml:81: The <java> type doesn 't support nested text data.
偶是用eclipse作开发环境,eclipse里自带的ant打包。
------解决方案--------------------
up
------解决方案--------------------
类似:
<java classname= "com.icl.saxon.StyleSheet " fork= "true " dir= "${doc.ref.dir} ">
<classpath>
<fileset dir= "${basedir}/${doc.ref.dir}/lib ">
<include name= "**/*.jar "/>
</fileset>
</classpath>
<arg value= "-o "/>
<arg value= "${basedir}/${dist.ref.dir}/pdf/docbook_fop.tmp "/>
<arg value= "${basedir}/${doc.ref.dir}/src/index.xml "/>
<arg value= "${basedir}/${doc.ref.dir}/styles/fopdf.xsl "/>
</java>