Dear Pierrick and listers,
Thx for your help, but in my case of almost total ignorance in this
matter it wasn't enough :P
Already tried to read some Ant manuals with Pierrick's hints, but... I
simply cannot succeed.
Can anyone please help me correct these errors? I'll attach once again a
log file resulting from running ant in debug mode.
Thx very much
Nuno
Pierrick Brihaye wrote:
>Hi,
>
>
>
>>compile-javax:
>>Could not load a dependent class
>>
>>
>(com/sun/media/jai/codec/FileSeekableStream) for type image
>
>
>>Could not load a dependent class (com/jcraft/jsch/UserInfo) for type
>>
>>
>sshexec
>
>
>>Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
>>Could not load a dependent class (org/apache/commons/net/SocketClient) for
>>
>>
>type rexec
>
>
>>Could not load a dependent class (com/starbase/starteam/Item) for type
>>
>>
>stlist
>
>
>>Could not load a dependent class (org/apache/commons/net/SocketClient) for
>>
>>
>type telnet
>
>
>>Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type
>>
>>
>ftp
>
>
>>Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
>>Could not load a dependent class (junit/framework/TestListener) for type
>>
>>
>junit
>
>
>>Could not load a dependent class (com/starbase/starteam/Item) for type
>>
>>
>stcheckin
>
>
>>Could not load a dependent class (com/starbase/starteam/Item) for type
>>
>>
>stcheckout
>
>
>>fileset: Setup scanner in dir /home/ucfsngr/deegree/src with patternSet{
>>
>>
>includes: [org/deegree_impl/model/resources/Utilities.java,
>org/deegree_impl/model/resources/XArray.java,
>org/deegree_impl/model/resources/WeakHashSet.java,
>org/deegree_impl/model/resources/ResourceBundle.java,
>org/deegree_impl/tools/StringExtend.java, javax/**/*.java] excludes: [] }
>
>Well :
>
><javac srcdir="${src}" destdir="${classes}">
> <include name="org/deegree_impl/model/resources/Utilities.java"/>
> <include name="org/deegree_impl/model/resources/XArray.java"/>
> <include name="org/deegree_impl/model/resources/WeakHashSet.java"/>
> <include name="org/deegree_impl/model/resources/ResourceBundle.java"/>
> <include name="org/deegree_impl/tools/StringExtend.java"/>
> <include name="javax/**/*.java"/>
></javac>
>
>It looks like that this target forgets to use a classpath/classpathref
>attribute/child element that would allow access to :
>JAI
>(http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/com/s
>un/media/jai/codec/FileSeekableStream.html)
>JCSH (http://www.jcraft.com/jsch/index.html)
>Commons net
>(http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/Socket
>Client.html)
>JDepend (http://www.clarkware.com/software/JDepend.html)
>JUnitX
>(http://www.extreme-java.de/junitx/api/junit/framework/class-use/TestListene
>r.html)
>...
>
>It should certainly be worth to add those librairies in the properties
>definition ; something like :
>
><!-- ArcSDE API comment this property to avoid compiling arcsde
>ort -->
><property name="esrilibs" value="${libPath}/esri/jsde82_sdk.jar"/>
><!-- Oracle JDBC driver + SDO comment this property to avoid compiling
>oracle support -->
><property name="oraclelibs"
>value="${libPath}/oracle/ojdbc14.jar:${libPath}/oracle/sdoapi.jar"/>
>
>... and to build a javax dedicated classpathes that could be referenced (see
>other javac targets, just below)
>
>Notice however that the reference to the JAI librairies is *already* set :
>
><!-- Sun JAI (tested: 1.1.1_01) -->
><property name="jailibs"
>value="${libPath}/jai/jai_core.jar:${libPath}/jai/jai_codec.jar"/>
>
>... but remains unused.
>
>
>
>>compile-interfaces:
>>Property ${classpath} has not been set
>>fileset: Setup scanner in dir /home/ucfsngr/deegree/src with patternSet{
>>
>>
>includes: [org/deegree/**/*.java] excludes: [] }
>
>Reference to a non-defined property :
><pathelement path="${classpath}"/>
>
>
>
>>compile-classes:
>>Property ${classpath} has not been set
>>
>>
>
>Idem
>
>
>
>>compile-arcsde-support:
>>Property ${classpath} has not been set
>>
>>
>
>The like
>
>
>
>>compile-oracle-support:
>>Property ${classpath} has not been set
>>
>>
>
>Ditto
>
>
>
>>compile-mysql-support:
>>Property ${classpath} has not been set
>>
>>
>
>See above
>
>
>
>>compile-postgis-support:
>>Property ${classpath} has not been set
>>
>>
>
>Guess what :-)
>
>
>
>>compile:
>>
>>jar:
>>fileset: Setup scanner in dir /home/ucfsngr/deegree/out/classes with
>>
>>
>patternSet{ includes: [] excludes: [] }
>
>
>> [jar] Building jar: /home/ucfsngr/deegree/out/lib/deegree.jar
>> [jar] adding directory META-INF/
>> [jar] adding entry META-INF/MANIFEST.MF
>>
>>all:
>>
>>BUILD SUCCESSFUL
>>Total time: 1 second
>>
>>
>
>Well... what's the problem ? Sorry, just kidding :-)
>
>I think it should be quite easy to correct this well designed build file.
>
>BTW :
>
>Isn't the required librairies list to be updated (why not include Ant) ?
>
>Please correct this comment :
>
><!-- MySQL JDBC driver comment this property to avoid compilingoracle
>support -->
><property name="mysqllibs"
>value="${libPath}/mysql/mysql-connector-java-3.0.8-stable-bin.jar"/>
>
>And a suggestion :
>
>Why not include a "war" target ?
>
>Cheers,
>
>p.b.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
>_______________________________________________
>deegree-devel mailing list
>deegree-devel@...
>https://lists.sourceforge.net/lists/listinfo/deegree-devel
>
>
|