当我在build.xml中使用“声明类路径”时,我在Ant中遇到了上面提到的问题。
我在窗口遇到的问题是;
没有合适的相对路径. C:\Users\TOSH\Desktop\sampleserver\repository\components\plugins\XmlSchema_1.4.7.wso2v2.jar
我的build.xml如下;
<path id="jar.classpath">
<pathelement path="${class.dir}"/>
<fileset dir="${basedir}/../../../repository/components/plugins">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="${class.dir}"/>
<manifestclasspath property="tem.classpath" jarfile="pathing.jar">
<classpath refid="jar.classpath"/>
</manifestclasspath>
<jar destfile="pathing.jar" basedir="target/classes">
<manifest>
<attribute name="Class-Path" value="${tem.classpath}"/>
</manifest>
</jar>
<path id="javac.classpath">
<pathelement path="${class.dir}"/>
<pathelement path="pathing.jar"/>
</path>
</target>有人知道原因吗?
发布于 2014-08-23 18:54:25
我在本教程中的SimpleStockQuote示例中也发现了这一点。如果您修改了build.xml文件(对于本教程,在samples/axis2Client/build.xml下),并更改明显类路径任务以添加属性maxParentLevels="5“(或一些适当的值,默认值2是不够的),则可能解决您的问题。
https://stackoverflow.com/questions/19514228
复制相似问题