ant plugin only looks for jar files in directory named "target"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have the following build.xml for use with the ant plugin in snapcraft :
<project name="HelloWorld" basedir="." default="main">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="
<property name="jar.dir" value="lib"/>
<property name="main-class" value="
<target name="clean">
<delete dir="${
</target>
<target name="compile">
<mkdir dir="${
<javac srcdir="${src.dir}" destdir=
</target>
<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile=
</jar>
</target>
<target name="run" depends="jar">
<java jar="${
</target>
<target name="clean-build" depends=
<target name="main" depends=
</project>
After building the part which uses the ant plugin I get the error :
"Failed doing build for hello: could not find any built jar files for part".
If I change the line :
<property name="jar.dir" value="lib"/>
to
<property name="jar.dir" value="target"/>
the error goes away.
It would be useful to have a way to configure the location the ant plugin looks in for jar files.
tags: | added: bitesize |
tags: | added: plugin |
Changed in snapcraft: | |
status: | New → Confirmed |