Hi all,
I'm trying to use ivy to resolve ant4hg project dependencies... but I don't
understand everything !

For compiling ant4hg, I need :
- ant.jar
- ant-launcher.jar
- commons-cli.jar

For unit testing ant4hg, I also need :
- ant-unit.jar (not found on the maven repository :
http://repo2.maven.org/maven2)

For using ant4hg as an ant tool, we just need :
- ant4hg.jar (to put in ant lib directory)

For using ant4hg as a standalone command line tool, we need :
- ant4hg.jar
- ant.jar
- ant-launcher.jar
- commons-cli.jar

Here is my ivy.xml file.
I don't really know how to configure dependencies :
[<dependency...conf="standalone->default".../>].
What do you think about it ?

<ivy-module version="1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd";>
        <info organisation="org.sourceforge" module="ant4hg"
                revision="0.06" status="milestone" publication="20090925000000">
                <description homepage="http://ant4hg.free.fr/";>
                        ANT4HG is an ANT task for HG (mercurial) , a 
distributed source control
                        management system. 
                </description>
        </info>
        <configurations>
                <conf name="minimal" description="minimal package (ant4hg.jar) 
to deploy in ant home, without any dependencies" />
                <conf name="standalone" extends="minimal" description="full 
package to launch in standalone mode (from command line)"/>
                <conf name="test" extends="minimal" description="dependencies 
used for antunit testing ant4hg" visibility="private"/>
        </configurations>
        <publications>
                <artifact name="ant4hg-minimal" type="jar" conf="minimal" />
                <artifact name="ant4hg-standalone" type="jar" conf="standalone" 
/>
        </publications>
        <dependencies>
                <dependency org="ant" name="ant" rev="1.6.5" 
conf="standalone->default"/>
                <dependency org="ant" name="ant-launcher" rev="1.6.5" 
conf="standalone->default"/>
                <dependency org="commons-cli" name="commons-cli" rev="1.2" 
conf="standalone->default"/>
        </dependencies>
</ivy-module>

Reply via email to