Currently the WebDSL editor plugin includes strategoxt.jar, because it is needed on the classpath of an Ant build; however, strategoxt.jar is already present as a plugin in Eclipse.

This page provides a way for plugins to define Ant classpath contribution. The contributed jar must however be relative to the plugins installation directory. So, this would have to be defined in the strj plugin.

Submitted by Nathan Bruning on 24 April 2010 at 18:05

On 26 April 2010 at 11:51 Lennart Kats commented:

Sounds like a good idea. If you want it now, just go ahead and try it; otherwise I can probably add it next week or so. Note that I also do this in org.strategoxt.imp.metatooling/plugin.xml.


On 27 April 2010 at 13:17 Nathan Bruning commented:

Tested this with the WebDSL plugin, works fine.

So the property should be moved from the metatooling plugin to the strj plugin then? Metatooling uses strj so inherits the property anyway.


On 27 April 2010 at 13:26 Lennart Kats commented:

@Nathan:
Well, not moved, the dummy.jar thing deals with classes in the metatooling plugin (that are not actually in the jar, it’s a bit of a hack). But feel free to add such a property to the strj plugin.


On 4 May 2010 at 17:19 Nathan Bruning commented:

Added in r20830.

(the metatooling plugin can probably be migrated to use this property)


On 4 May 2010 at 17:40 Lennart Kats commented:

Nice. But I thought you wanted to use org.eclipse.ant.core.extraClasspathEntries? Well, this is probably safer anyway, because this way we’re sure the contributed JAR is not loaded every time when Spoofax calls the Stratego compiler build.generated.xml. Come to think of it … wasn’t STRJ already on the Ant classpath?

Log in to post comments