Support multiple external jar
As far as I can see, I can only set one external jar for Spoofax plugins. In the WebDSL project, we have two. Would be nice if multiple external jars (or an external jar file set) is supported.
Submitted by Sander Vermolen on 29 November 2010 at 10:08
Issue Log
At this point you can only copy one jar file, using the
externaljar
property inbuild.main.xml
. Copying more is a special use case, if you want to do that then you just have to add acopy
task to the Ant file (look at copy-jar inbuild.generated.xml
for an example). What Spoofax does support, however, is importing multiple jar files, using theexternaljarflags
property. You can specify multiple jars there, separated by:
.
Yes, I implemented the copying ‘manually’ using a copy task. The reason to request the feature, is to standardize as much of the WebDSL plugin build as possible. The WebDSL jar is currently copied by Spoofax, other jars are not. Copying all jars automatically would ease the build.
I don’t think you can parametrize everything; there’s always cases that will not be supported. This is one of those cases :) Ant provides you with a lot of flexibility, and indeed, in many plugins various extensions to the default Ant file have been written.
:p ok, I’ll adapt WebDSL build file to make the changes permanent.
Log in to post comments