Hi,

We’ve been wondering if the workspace resolver which exists for IvyDE could be 
transposed to the Ant world. I think I have made a working one. And I just 
pushed it.

The main issue in the design was about how Ant would be able to describe to Ivy 
the projects to take into account, and which would then be their artifacts. As 
a principle, I didn’t want to declare the workspace resolver in the 
ivysettings. Because the settings, for me, should be quite independent of the 
environment is it used. For instance I want it to work both within an Ant build 
file and in Eclipse with IvyDE. And IvyDE’s workspace resolver doesn’t need a 
modification of the end user's ivysettings in order to properly work.

To describe the modules, I just used a fileset of the ivy.xml files of the 
projects. Then everything would be relative to them, just like the buildlist 
ant task is working.

Then about declaring the artifacts, I have made them explicit. This might not 
be the most flexible. I’m not sure how to do better though.

Then the integration with Ant would be done via the configure task. Here an 
exemple.

<ivy:configure file="ivysettings.xml">
   <workspaceResolver name="myresolver">
       <fileset dir="${basedir}" includes="*/ivy.xml" />
       <artifact type="dir" ext="" path="target/classes" />
   </workspaceResolver>
</ivy:configure>


I have only did some small unit tests for now. This need some proper 
integration test to be fully validated.

Any comment is welcomed.

Nicolas


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to