ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MbX <martial.br...@ap2.be>
Subject Re: Transitive dependencies
Date Fri, 13 Jul 2007 15:52:05 GMT

I've included the different XML files:

ivyconf.xml

<ivyconf>
  <conf defaultResolver="chain-example" />
  <resolvers>
    <chain name="chain-example">
      
      <!--
      A pattern for publishing!!!
      -->
      <filesystem name="libraries">
        <ivy
pattern="${repository.dir}/app/[module]/[revision]/[module]-ivy.xml" />
        <artifact
pattern="${repository.dir}/app/[module]/[revision]/[artifact].jar" />
      </filesystem>
      
      <!--
      The find pattern is: <lib name>/<version>/<lib-name>.jar
      -->
      <filesystem name="libraries">
        <ivy
pattern="${repository.dir}/[module]/[revision]/[module]-ivy.xml" />
        <artifact
pattern="${repository.dir}/[module]/[revision]/[artifact].jar" />
      </filesystem>
      
      <!--
      The find pattern is: <lib name>-<version>.jar
      -->
      <filesystem name="libraries">
        <ivy
pattern="${repository.dir}/[module]/[module]-[revision]-ivy.xml" />
        <artifact
pattern="${repository.dir}/[module]/[artifact]-[revision].jar" />
      </filesystem>
            
      <!--
      Especially for aspectj
      -->
      <filesystem name="libraries">
        <ivy
pattern="${repository.dir}/[module]/[revision]/[module]-ivy.xml" />
        <artifact
pattern="${repository.dir}/[module]/[revision]/lib/[artifact]rt.jar" />
      </filesystem>

      <!--
      Fallback, will not work for now since there are no Ivy files there
      -->
      <ibiblio name="ibiblio" />
    </chain>
  </resolvers>


ivy.xml (used in the build file)

<ivy-module version="1.0">
    <info organisation="xxx" module="nnn">
        <description>
            nnn
        </description>
    </info>
    
    <configurations>
    	<conf name="default" description="xxx"/>
        <conf name="distrib" extends="default" description="xxx"/>
    	<conf name="test" extends="default" description="xxx"/>
    </configurations>
    
    <publications>
    	<artifact name="${ant.project.name}" type="jar" conf="distrib"
ext="jar"/>
    	<artifact name="${ant.project.name}-test" type="jar" conf="test"
ext="jar"/>    	
    </publications>
    
    <dependencies>
        <dependency org="xxx" name="base" rev="0.0"
conf="distrib->default;test->default"/>
        ...
    </dependencies>
</ivy-module>


base-ivy.xml (transitive dependencies)

<ivy-module version="1.0">
    <info organisation="xxx" module="base" revision="0.0" status="release"
publication="20070709222143">
        <description>
            The base library
        </description>
    </info>
    
    <configurations>
    	<conf name="default" description="xxx"/>
        <conf name="distrib" extends="default" description="xxx"/>
    	<conf name="test" extends="default" description="xxx"/>
    </configurations>
    
    <publications>
    	<artifact name="base" type="jar" conf="distrib" ext="jar"/>
    	<artifact name="base-test" type="jar" conf="test" ext="jar"/>    	
    </publications>
    
    <dependencies>
        <dependency org="apache" name="log4j" rev="1.2.13"
conf="test->default"/>
        ...
    </dependencies>
</ivy-module>

-- 
View this message in context: http://www.nabble.com/Transitive-dependencies-tf4069325.html#a11582286
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message