ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praveen babu <topravee...@yahoo.com>
Subject How can we download a jar without a version number using ivy?
Date Fri, 07 Mar 2008 01:18:05 GMT
Hi,

I wanted to download a jar without any version from a shared repository. Can anyone suggest
me how to do this?
Right now I'm using simple steps given below: 

My repository is under C:\Tools:\Eval folder, and folder are is as follows:
 
- repositary
    +local
    -share 
            axis.jar

Whenever I run the build file It is downloading a "axis-.jar" instead of "axis.jar". 

Can anyone please have a look below files and let me know what to be done to get proper jar
file?
Is this one is limitation of ivy or what? 

Thanks,
-Praveen

ivysettings.xml
---------------------

<ivysettings>
  <property name="ivy.local.default.root" value="C:\Tools\Eval"/>
  <property name="ivy.repositary" value="repositary"/>
  <property name="ivy.local" value="local"/>
  <property name="ivy.share" value="share"/>
  
  <property name="ivy.local.repo.path" value="${ivy.repositary}/${ivy.local}"/>
  <property name="ivy.share.repo.path" value="${ivy.repositary}/${ivy.share}"/>
  
  <settings defaultResolver="chain"/>
  
  <resolvers>
    <chain name = "chain" returnFirst="true" dual="true">
        <filesystem name="local">
          <artifact pattern="${ivy.local.default.root}/${ivy.local.repo.path}/[artifact]-[revision].[ext]"
/>
        </filesystem>
        <filesystem name="share">
            <ivy pattern="${ivy.local.default.root}/${ivy.share.repo.path}/[artifact].[ext]"/>
            <artifact pattern="${ivy.local.default.root}/${ivy.share.repo.path}/[artifact].[ext]"
/>
        </filesystem>
<!--        <ibiblio name="ibiblio" m2compatible="true" />-->
    </chain>    
  </resolvers>
</ivysettings>

--------------
ivy.xml
--------------

<ivy-module version="2.0">
    <info organisation="org.apache" module="hello-ivy"/>
    
        <configurations>
           <conf name="build" visibility="private" description="compilation only need api
jar" />
        <conf name="noexternaljar" description="use only company jar" />
        <conf name="withexternaljar" description="use company jar and third party jars"
/>    
    </configurations>
    
    <dependencies>
        <dependency org="test" name="test" rev="1.0"/>
        <dependency org="axis" name="axis" rev="">
        </dependency>        
    </dependencies>
</ivy-module>

-------------------
build.xml
--------------------

<project name="hello-ivy" default="resolve" xmlns:ivy="antlib:org.apache.ivy.ant">
    <!-- some variables used -->
    
    <ivy:settings file="ivysettings..xml" />
    <!-- ================================= 
          target: resolve              
         ================================= -->
    <target name="resolve" description="--> retreive dependencies with ivy">
        <ivy:retrieve />
    </target>    
</project>







      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message