ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhatia Saurabh" <Bha...@OFAC.CH>
Subject ivy resolves only jar(s) type
Date Tue, 12 Jun 2007 07:00:44 GMT
Hello,

 

When I do a resolve, ivy always looks in /jars and my resolve fails. Is
there a way to specify the type of a module/dependency ? Specifying
type="" is illegal in the <dependency> element.

 

My ivy conf is :

<ivyconf>

      <conf defaultResolver="shared"/>

    <!-- on utilise un seul repertoire comme cellier -->

      <property name="cellier" value="I:/shared" />

      <resolvers>

            <filesystem name="shared">

                  <ivy
pattern="${cellier}/[organisation]/[module]/[revision]/[type]s/[artifact
].[ext]" />

                  <artifact
pattern="${cellier}/[organisation]/[module]/[revision]/[type]s/[artifact
].[ext]" />

            </filesystem>

      </resolvers>

 

      <classpath file
="I:/shared/ofac/OFACDependencies/HEAD/jars/OFACDependencies.jar"/>

 

    <!-- strategie qui considere que CURRENT est plus recent que HEAD
qui est plus recent que prod etc...

         OfacLatestStrategyTest donne une bonne idee de son
comportement. -->

      <typedef name="ofac-latest-strategy" classname =
"ch.ofac.ivy.latest.OfacLatestStrategy"/>

    <latest-strategies>

       <ofac-latest-strategy name="ofac-latest" />

      </latest-strategies> 

 

    <!-- Conflict manager qui utilise la strategie definie plus haut -->

    <conflict-managers>

       <latest-cm  name="ofac-cm" latest="ofac-latest"/>

       <latest-revision name="latest-revision"/>

    </conflict-managers>

 

</ivyconf>

 

For example, in the following ivy file, I want that for lowercase names,
it should search the repository for /wars and for uppercase names /jars.
How can I point ivy to the right directory in the repository ?

 

<ivy-module version="1.0">

 <info organisation="ofac" module="nr" />

 <dependencies>

    <dependency org="ofac" name="OFACDI" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACNR" rev="prod" changing="true"/>

    <dependency org="ofac" name="fa" rev="prod" changing="true"/>

    <dependency org="ofac" name="ph" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACFC" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACPool" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACFA" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACRM" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACTO" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACNF" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACCZ" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACCS" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACPage" rev="prod" changing="true"/>

    <dependency org="ofac" name="ad" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACCL" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACIM" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACAD" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACWeb" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACMN" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACWW" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACCA" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACGD" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACOF" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACFramework" rev="prod"
changing="true"/>

    <dependency org="ofac" name="OFACDO" rev="prod" changing="true"/>

    <dependency org="ofac" name="OFACCommon" rev="prod"
changing="true"/>

    <dependency org="ofac" name="OFACDL" rev="prod" changing="true"/>

 </dependencies>

 <conflicts>

    <manager name="ofac-cm" org="ofac"/>

    <manager name="latest-revision" org="(?!ofac).*"/>

 </conflicts>

</ivy-module>

 

Thanks

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message