当前位置: 代码迷 >> J2SE >> Ant出错有关问题请问,是<java节点出的错
  详细解决方案

Ant出错有关问题请问,是<java节点出的错

热度:561   发布时间:2016-04-24 17:09:36.0
Ant出错问题请教,是<java节点出的错
<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>
  相关解决方案