<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="+1"><font face="Courier New, Courier, monospace">Hi,<br>
<br>
when I tried to load plugins I downloaded from github and
compiled by "forge source-plugin" I could not load them.<br>
I found that the API-version string of the plugins did not
contain "SNAPSHOT" and a ConcurrentModificationException was
thrown in Bootstrap class.<br>
<br>
So I (pragmatically though) changed the lines starting from 174+
to:<br>
<br>
</font></font>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-15">
thomas@happy:~/java/git/forge> git difftool -y -t ctxdiff
shell/src/main/java/org/jboss/forge/shell/Bootstrap.java<br>
26a27<br>
> import java.util.Iterator;<br>
173,179c174,181<br>
< for (PluginEntry pluginEntry : incompatible) {<br>
< if
(pluginEntry.getApiVersion().contains("SNAPSHOT"))<br>
< {<br>
< toLoad.add(pluginEntry);<br>
< incompatible.remove(pluginEntry);<br>
< }<br>
< }<br>
---<br>
> Iterator<PluginEntry> incompIter =
incompatible.iterator();<br>
> while (incompIter.hasNext()) {<br>
> PluginEntry pluginEntry = incompIter.next();<br>
> if
(pluginEntry.getApiVersion().contains("SNAPSHOT") ||
pluginEntry.getSlot().contains("SNAPSHOT")) {<br>
> toLoad.add(pluginEntry);<br>
> incompIter.remove();<br>
> }<br>
> }<br>
<br>
<big>Silly?<br>
How should "forge source-plugin" work with plugins coming from
HEAD?</big><br>
<br>
Comments appreciated,<br>
Thomas<br>
</body>
</html>