ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Scokart" <gscok...@gmail.com>
Subject RE: IvyDE - add ivy library
Date Wed, 20 Jun 2007 07:56:19 GMT
I don't know for IvyDE.  But in your ant script, you should fill the type
attribute in your task.  See [1].

[1] http://incubator.apache.org/ivy/doc/use/resolve.html


Gilles

> -----Original Message-----
> From: Bhatia Saurabh [mailto:Bhatia@OFAC.CH]
> Sent: mercredi 20 juin 2007 9:48
> To: ivy-user@incubator.apache.org
> Subject: IvyDE - add ivy library
> 
> Hello,
> 
> 
> 
> I am using IBM RAD 7 IDE (Eclipse) and have integrated ivy successfully.
> 
> The following are my resolve and retrieve targets. The retrieve works
> fine downloading all dependencies (both jar and war) into my war
> project's /WEB-INF/lib directory.
> 
> When I do a "add ivy library" on my ivy file, IvyDE creates an ivy
> library in Eclipse. Clicking right on it, I do a "resolve" and I get all
> my jar dependencies but not the war. In my ivy repository which is well
> in synch with my cache, the ivy file clearly specifies the "artifact"
> element.
> 
> 
> 
> In the following ivy file, I can get all my dependencies in my ivy
> library in Eclipse, except the war dependency. The same dependency I am
> able to get from a retrieve though into my /WEB-INF/lib.
> 
> 
> 
> <ivy-module version="1.0">
> 
>  <info organisation="ofac" module="ad" revision="prod"/>
> 
>  <publications>
> 
>             <artifact name="ad" type="war">
> 
>                   <conf name="*"/>
> 
>             </artifact>
> 
>       </publications>
> 
>  <dependencies>
> 
>     <dependency org="ofac" name="OFACAD" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACWeb" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACRS" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACCD" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACSurcoucheGDD" rev="prod"
> changing="true"/>
> 
>     <dependency org="ofac" name="OFACBA" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACGD" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACGNU" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACPool" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACPH" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACPC" rev="prod" changing="true"/>
> 
>     <dependency org="ofac" name="OFACCT" 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="di" rev="prod" changing="true">
> 
>       <artifact name="di" type="war" />
> 
>     </dependency>
> 
>     <dependency org="ofac" name="OFACFramework" rev="prod"
> changing="true"/>
> 
>     <dependency org="ofac" name="OFACCommon" rev="prod"
> changing="true"/>
> 
>  </dependencies>
> 
>  <conflicts>
> 
>     <manager name="ofac-cm" org="ofac"/>
> 
>     <manager name="latest-revision" org="(?!ofac).*"/>
> 
>  </conflicts>
> 
> </ivy-module>
> 
> 
> 
> In the common.xml, I have defined the resolve and retrive targets as
> follows :
> 
> 
> 
> <target name="resolve" depends="init" description="-> copy jars from
> cellar to cache">
> 
>                         <fail>
> 
>                           Il n'y a pas de fichier ivy.xml dans ce projet
> 
>                           <condition>
> 
>                                    <not>
> 
>                                          <available
> file="${basedir}/ivy.xml" type="file" />
> 
>                                    </not>
> 
>                              </condition>
> 
>                         </fail>
> 
>             <ivy:resolve/>
> 
>       </target>
> 
> 
> 
>       <!-- war: imports all deps in /WEB-INF/lib -->
> 
>       <!-- jar: imports all deps in C:/RAD7/workspace/lib -->
> 
>       <target name="retrieve" depends="init" description="retrive war ou
> ear selon le type de projet">
> 
>             <fail>
> 
>               Il n'y a pas de fichier ivy.xml dans ce projet
> 
>               <condition>
> 
>                         <not>
> 
>                              <available file="${basedir}/ivy.xml"
> type="file" />
> 
>                         </not>
> 
>                   </condition>
> 
>             </fail>
> 
>             <echo>Ivy.lib.dir = ${ivy.lib.dir}</echo>
> 
>             <ivy:retrieve pattern="${ivy.lib.dir}/[artifact].[ext]" />
> 
>       </target>
> 
> 
> 
> Would appreciate your inputs. I cant compile my project until I am able
> to get my war deps too !!
> 
> 
> 
> Thanks



Mime
View raw message