build.xmlで「manifestclasspath」を使用すると、Antで上記の問題に直面しています。
Windowsで発生する問題は次のとおりです。
適切な相対パスがありません ..........
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>
理由を知っている人はいますか?