From: Matthieu C. <cho...@gm...> - 2012-02-29 18:18:16
|
2012/2/29 Jarek Czekalski <jar...@po...> Matthieu, you forced me to say it: it's not the first time when you answer a question without reading it. Try to walk in my shoes: I have simple questions, ask them, but Matthieu answers only his own questions repeatedly. It's not comfortable for me. It always requires several emails for one question. The question was: Sorry that I didn't understood that there was a trap. We were talking about ivy dependencies in plugins and suddenly you changed your subject to talk about how the plugin manager works. If you already had the answer about how jEdit was getting rhino.jar why asking ? I'm trying to be kind, I would appreciate that you change your tone. "how is jedit able to fetch rhino.jar?" But more important is the last question. Will you be able to answer it? I am asking you because you introduced ivy to plugin builds and you are the author of ivy settings.xml. Having one expert on a given subject in a team is enough, so I'm not trying to learn all the details about ivy. Instead I'm asking you to analyze it and say: possible or not? If it is not possible, I will be fetching whole zips through ivy and unzipping them locally. Not a very complicated solution, but maybe you have a better idea. To make it clear what I am asking for I'll repeat it: Jedit simply fetches RhinoPlugin.zip and unpacks it. Is this task too complicated to be done by ivy? Can't you replace the formula <artifact pattern="jar:http://${mirror}. dl.sourceforge.net/sourceforge/jedit-plugins/[artifact]-[revision]-bin.zip!/[artifact].jar" /> with something else? With something that would be good for all plugins? It is possible but it require a trick (easy trick) One attribute of that list http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html could be used in our dependencies as the name of the jar file that is in the plugin. I would suggest that we use "branch" attribute. So the dependency would be for rhino.jar <dependency org="jedit-plugins-lib" name="RhinoPlugin" branch="rhino" rev="1.7R3"/> It requires a new resolver in ivysettings.xml <url name="jedit-plugins-lib"> <artifact pattern="jar:http://${mirror}. dl.sourceforge.net/sourceforge/jedit-plugins/[artifact]-[revision]-bin.zip!/[branch].jar" /> </url> and a new module : <module organisation="jedit-plugins-lib" name=".*" resolver="jedit-plugins-lib"/> Matthieu |