ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bojke2000 <bojke2...@yahoo.com>
Subject Re: ivy-retrieve && class.path
Date Wed, 14 Nov 2007 16:18:32 GMT


I resolved it putting "path id="class.path" stuff into a new task. Thanks 


bojke2000 wrote:
> 
> Hi
> It seems that ant resolves and creates class.path/classpath before the
> Ivy-retrieve retrieved jars.
> Any idea?
> 
> <target name="resolve" description="Resolves dependencies">
>     <tstamp/>
>    <ivy-configure file="../../Ivy/ivysettings.xml" />
>    <ivy-resolve  />
>    <ivy-retrieve pattern="${lib.dir}/[artifact].[ext]" conf="util"
> useOrigin="true"  />
>   </target>
>  
>   
>   <target name="prepare" depends="resolve" description="Create your
> deployment directory structure">
>     <tstamp/>
>     <delete dir="${build.dir}" />
>     <mkdir dir="${build.dir}"/>
>     <mkdir dir="${class.dir}"/>
>     <mkdir dir="${deploy.dir}"/>
>     <mkdir dir="${javadoc.dir}"/>
>   </target>
> 
>    <property name="classpath" refid="class.path" />
>    <path id="class.path">
>          <fileset dir="${3rd.lib.dir}">
>            <include name="*.jar" />
>          </fileset>
>          <fileset dir="${lib.dir}">
>            <include name="fnx-util.jar" />
>            <include name="fnx-util-comm.jar" />
>          </fileset>
>    </path>
> 
>   <!-- ********************************************************  -->
>   <!--  This target is responsible for compiling all the classes -->
>   <!-- ******************************************************** -->
>   <target name="compile" depends="prepare" description="Compile the java
> code">
>       <antcall target="clean_classes" />
>       <javac classpath="${classpath}" debug="on" destdir="${class.dir}"
> srcdir="${src.dir}">
>       </javac>
> 
> 
> [ivy-configure] :: Ivy 2.0.0-alpha2-incubating - 20070712142751 ::
> http://incubator.apache.org/ivy/ ::
> [ivy-configure] ivy:configure is deprecated, please use the data type
> ivy:settings instead
> [ivy-resolve] :: loading settings :: file =
> /ironside/u5/bzivkov/work/research/fnx/Ivy/ivysettings.xml
> [ivy-resolve] WARNING: problem while setting JAXP validating property on
> SAXParser... XML validation will not be done: Property:
> http://java.sun.com/xml/jaxp/properties/schemaLanguage
> [ivy-resolve] :: resolving dependencies :: [ fnx | FNXData |
> working@stella.wayne.fnx.com ]
> [ivy-resolve]   confs: [util]
> [ivy-resolve]   found [ fnx | FNXUtility | 1.0 ] in local_repository
> [ivy-resolve]   [1.0] [ fnx | FNXUtility | latest.integration ]
> [ivy-resolve] :: resolution report ::
>        
> ---------------------------------------------------------------------
>         |                  |            modules            ||   artifacts  
> |
>         |       conf       | number| search|dwnlded|evicted||
> number|dwnlded|
>        
> ---------------------------------------------------------------------
>         |       util       |   1   |   1   |   0   |   0   ||   10  |   0  
> |
>        
> ---------------------------------------------------------------------
> [ivy-retrieve] :: retrieving :: [ fnx | FNXData ]
> [ivy-retrieve]  confs: [util]
> [ivy-retrieve]  10 artifacts copied
> 
> prepare:
>    [delete] Deleting directory
> /ironside/u5/bzivkov/work/research/fnx/FNXData/build
>     [mkdir] Created dir:
> /ironside/u5/bzivkov/work/research/fnx/FNXData/build
>     [mkdir] Created dir:
> /ironside/u5/bzivkov/work/research/fnx/FNXData/build/classes
>     [mkdir] Created dir:
> /ironside/u5/bzivkov/work/research/fnx/FNXData/build/javadocs
> 
> compile:
> Warning: Reference class.path has not been set at runtime, but was found
> during
> build file parsing, attempting to resolve. Future versions of Ant may
> support
>  referencing ids defined in non-executed targets.
> 
> clean_classes:
>      [echo] Removing directory ../build/classes/com
>     [javac] Compiling 701 source files to
> /ironside/u5/bzivkov/work/research/fnx/FNXData/build/classes
>     [javac]
> /ironside/u5/bzivkov/work/research/fnx/FNXData/src/com/fnx/sierradata/DataInterface.java:25:
> package com.fnx.util.datasearch does not exist
>     [javac] import com.fnx.util.datasearch.KeyedObject;
>     [javac]                                ^
>     [javac]
> /ironside/u5/bzivkov/work/research/fnx/FNXData/src/com/fnx/sierradata/DataInterface.java:32:
> cannot resolve symbol
>     [javac] symbol  : class KeyedObject
>     [javac] location: interface com.fnx.sierradata.DataInterface
>     [javac] public interface DataInterface extends KeyedObject {
>     [javac]                                        ^
>     [javac]
> /ironside/u5/bzivkov/work/research/fnx/FNXData/src/com/fnx/sierradata/DataQueryObj.java:15:
> package com.fnx.util.comm does not exist
>     [javac] import com.fnx.util.comm.RequestReplyObject;
>     [javac]                          ^
>     [javac]
> /ironside/u5/bzivkov/work/research/fnx/FNXData/src/com/fnx/sierradata/DataQueryObj.java:17:
> cannot resolve symbol
>     [javac] symbol  : class RequestReplyObject
>     [javac] location: class com.fnx.sierradata.DataQueryObj
>     [javac] public abstract class DataQueryObj extends RequestReplyObject
> {
>     [javac]                                            ^
>     [javac]
> /ironside/u5/bzivkov/work/research/fnx/FNXData/src/com/fnx/sierradata/ExchangableData.java:15:
> package com.fnx.util.comm does not exist
>     [javac] import com.fnx.util.comm.CommunicationInterface;
>     [javac]                          ^
>     [javac]
> /ironside/u5/bzivkov/work/research/fnx/FNXData/src/com/fnx/sierradata/ExchangableData.java:26:
> cannot resolve symbol
>     [javac] symbol  : class CommunicationInterface
>     [javac] location: interface com.fnx.sierradata.ExchangableData
>     [javac] public interface ExchangableData extends
> CommunicationInterface {
>     [javac]                                          ^
>     [javac]
> /ironside/u5/bzivkov/work/research/fnx/FNXData/src/com/fnx/sierradata/JExchangableData.java:15:
> package com.fnx.util.comm does not exist
>     [javac] import com.fnx.util.comm.JCommunicationInterface;
> 
> 

-- 
View this message in context: http://www.nabble.com/ivy-retrieve----class.path-tf4806169.html#a13750146
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message