On Fri, 11 Apr 2008 20:49:55 +0200, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote
Simple... :-)
Oh .. it's my failure. (ivy use ssh plugin, but library does not downloaded during ivy bootstrap) You can manually download jsch and put into ivy jars directory. (Option 1) or apply patch to Details: 1. just manually download jsch-0.1.37.jar from http://www.jcraft.com/jsch/ and put one into <you-home-dir>/.ivy/jars/jsch.jar and start ant again 2. If you don't want to download jar by hands, apply patch from attachment and run ant again.
rssh wrote:
It's very simple ;)
1. download 2. start ant 'ant' (it will automatically fetch all dependencies and start build) 3. clean all 'ant clean' 4. to change target JDK, set "target" attribute of javac in "build" ant target. (consult with javac ant task documentation if needed).
I've downloaded xwiki-plugin-sql-src-1.4.tar.gz <http://xwikisql.googlecode.com/files/xwiki-plugin-sql-src- 1.4.tar.gz>, extracted it, changed build.xml by adding target="1.5" to ...
***** <target name="build" depends="retrieve-libs"> <javac srcdir="src/main/java" includes="**/*.java" deprecation="on" debug="${debug}" target="1.5"> <classpath refid="std.build.path" /> </javac> <jar basedir="src/main/java" includes="**/*.class" destfile="target/xwiki-plugin-sql-${version}.jar" index="true"> <include name="build"/> <manifest> <attribute name="Build-By" value="${user-name}"/> </manifest> </jar> </target> *****
and...
***** <target name="build-tests" depends="build,retrieve-test-libs"> <javac srcdir="src/test/java" includes="**/*.java" deprecation="on" debug="${debug}" target="1.5"> <classpath refid="test.std.build.path" /> </javac> </target> *****
Then, started ant. And build failed recording the following messages:
***** sh-3.2# ant Buildfile: build.xml
download-ivy: [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta2/ivy- 2.0.0-beta2.jar [get] To: /var/root/.ivy/jars/ivy.jar [get] Not modified - so not downloaded
declare-ivy:
init-ivy: No ivy:settings found for the default reference 'ivy.instance'. A default instance will be used [null] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ :: [null] :: loading settings :: file = /Users/rrodriguez/Downloads/xwiki-plugin-sql-src-1.4/ivysettings.xml [null] DEPRECATED: 'checkUpToDate' is deprecated, use 'caches[@checkUpToDate]' instead
(file:/Users/rrodriguez/Downloads/xwiki-plugin-sql-src- 1.4/ivysettings.xml)
BUILD FAILED /Users/rrodriguez/Downloads/xwiki-plugin-sql-src-1.4/build.xml:39: java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException
Total time: 1 second sh-3.2# *****
Please, does this any sense for your? What I am doing wrong?
Thank you so much for your help,
Ricardo
-- Ricardo Rodri'guez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ruslan Shevchenko GradSoft. http://www.gradsoft.ua