ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mindspin311 <connoc.minds...@gmail.com>
Subject Getting dependencies without versions
Date Thu, 26 Jun 2008 20:19:36 GMT

I have some projects that'll use jars without a version. For instance, we
have mx4j-jmx.jar where mx4j-jmx is the module/name.. 

I got this in ivy.xml

<dependency org="mx4j" name="mx4j-jmx" rev="" conf="core->default"/>


In ivyconf.xml, I was hoping this would work

<resolvers>

    <filesystem name="shared-lib">
      <artifact
pattern="${ivy.shared.default.root}/[organisation]/[module]/[type]s/[artifact](-[revision]).[ext]"
/>
      <ivy
pattern="${ivy.shared.default.root}/[organisation]/[module]/[artifact](-[revision])-ivy.xml"
/>
    </filesystem>
    
    <!-- For when there is no version -->
    <filesystem name="shared-lib-no-rev">
      <artifact
pattern="${ivy.shared.default.root}/[organisation]/[module]/[type]s/[artifact].[ext]"
/>
      <ivy
pattern="${ivy.shared.default.root}/[organisation]/[module]/[artifact]-ivy.xml"
/>
    </filesystem>
    
    <chain name="projects" returnFirst="true">
      <chain name="project-projects" returnFirst="true">
        <resolver ref="shared-lib-no-rev"/>
        <resolver ref="shared-lib"/>
      </chain>
      ..... other ivyrep and ibiblio resolvers.....


Is there a way to do this and have it return mx4j-jmx.jar in the lib
directory? right now it adds an extra '-' after jmx and renaming the file.

The file I'm trying to get is located here:

/usr/local/dev/ivy-shared-rep/mx4j/mx4j-jmx/jars/mx4j-jmx.jar
-- 
View this message in context: http://www.nabble.com/Getting-dependencies-without-versions-tp18142346p18142346.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message