1
当我在蚂蚁配置的全球条目中没有kodo jar时,我的kodoc jdo增强粘连失败。由于类路径导致Ant任务失败
在我的eclipse环境中,我可以使用ant构建代码。但是当我在ant外面运行ant时,kodo jar文件没有找到。
build.xml:106: taskdef class kodo.ant.PCEnhancerTask cannot be found
的任务是在我在classpath中的jar文件com.bea.core.kodo_1.0.0.0_4-2-0.jar。我已经用这个技巧打印出来了http://blog.andrewbeacock.com/2005/08/pretty-printing-java-classpaths-using.html。
我尝试重新排序蚂蚁<path id="cp">
中的项目,但似乎没有效果。
我不知道如何使构建文件一般。
<target name="enhance">
<available property="propfile" file="../../config/pebig.jdo.properties"/>
<echo>base dir is ${basedir} props is ${propfile}</echo>
<echo message="|-- compile classpath"/>
<echo message="| |"/>
<echo message="| |-- ${echo.path.compile}"/>
<taskdef name="kodoc" classname="kodo.ant.PCEnhancerTask">
<classpath refid="cp"/>
</taskdef>
<kodoc>
<classpath refid="cp"/>
<config propertiesFile="${configProperties}"/>
<fileset dir="${srcdir}">
<include name="**/*.jdo" />
</fileset>
</kodoc>
</target>
这应该是一条评论。 –
答案中的代码需要被格式化为代码以便于阅读。 – Aaron
将类路径添加到任务def yield java.util.MissingResourceException:C:\ Documents and Settings \ am4896 \ workspace \ blue ebig \ ebig \ config \ pebig.jdo.properties#null – Aaron