ANT plugin - location of jar files.
didrocks at ubuntu.com
Mon Jun 27 08:50:26 UTC 2016
Le 27/06/2016 10:24, Jenny Murphy a écrit :
> I am building a java application under snapcraft using the ant plugin.
> My build.xml file puts the created jar files in a directory called
> *lib*. The ant plugin complains about this because it was expecting to
> find jar files in a directory called *jar*.
> Is it possible to tell the ant plugin to look elsewhere?
> I don't think the copy plugin is the solution because this errors at
> the end of the ant part build step.
> Thanks in advance for any suggestions.
I'm by no mean a java expert and it doesn't seem that "snapcraft help
ant" shows up any options for achieving this.
The line of the plugin itself seems guilty: "files =
glob.glob(os.path.join(self.builddir, 'target', '*.jar'))"
Before advising you to inheirt/create your own plugin, I'm CCing Sergio
who might have another idea or may want to grow a plugin options for this.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Snapcraft