Here is a sticky one for you. I emerged ANT and ran into a problem with alot of the functionality of the ANT optional.jar was not included. I think this is due to the fact that many of the libraries ANT's optional tasks rely on must be present for them to be included in the build. So basically, if you wanted the Optional ftp component, you would need to have netcomponents.jar on your machine already. Now, including all those would be problematic - and I am not 100% sure that this is the problem - so maybe a notice before the emerge starts that says "if you want much of the optional parts, you better go see ant.apache.org and see the requirements before emerging ant". Reproducible: Always Steps to Reproduce: 1. Emerge ant 2. Try to use ftp from the Optional.jar 3. Actual Results: Error about ftp not available Expected Results: run the ftp. This is the ant page that talks about the dependencies... http://ant.apache.org/manual/install.html#buildingant I am not sure what the best way to handle this would be... I leave it in your capable hands. Thanks PS. I selected Major because of the description. Pretty much all of Ants optional features would be unavailable because of this. If you downgrade it I would not be insulted however.
Moving this again to java@gentoo.org, so everyone out there can help.
*** Bug 35992 has been marked as a duplicate of this bug. ***
I made a major rework on ant ebuilds, ant-1.6.0-r2 should fix a lot of things, maybe all the optional tasks will not be available. Patches to add new tasks support are welcome, please try this ebuild. An also before i forget, check the use flags of ant and ant-optional ebuilds.
<quote>maybe all the optional tasks will not be available.</quote> None of the optional tasks is more likely... ;-) Below a transcript of my second try. During the first try, some packages from the Jakarta Commoms project were also installed: dev-java/commons-logging-1.0.3 * dev-java/commons-beanutils-1.6.1-r1 * dev-java/commons-collections-2.1-r3 * dev-java/commons-net-1.0.0 * Without further ado, here's what I did: jethro root # ACCEPT_KEYWORDS="~x86" emerge -p ant junit jdepend ant-optional These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-java/ant-1.6.0-r2 [ebuild R ] dev-java/junit-3.8.1 [ebuild R ] dev-java/jdepend-2.6 [ebuild R ] dev-java/ant-optional-1.6.0-r2 jethro root # ACCEPT_KEYWORDS="~x86" emerge ant junit jdepend ant-optional <lots and lots of output> jethro root # ant -diagnostics <output: see attachment>
Created attachment 24249 [details] Output of `ant -diagnostics'
"Check the use flags of ant and ant-optional ebuilds" "Unmerge ant check ant-optional and ant USE FLAGS" 1.- emerge -C ant 2.- emerge -pv ant 3.- Activate the use flags you want.( On ant and ant-optional) 4.- Emerge ant. Also you dont need to install by hand junit and jdepend if you dont need them, they will be automatically pulled in the build process. ant-optional has this USE FLAGS antlr bcel bsh doc javamail jdepend jsch junit jython log4j oro regexp rhino xalan xerces "Also ant -diagnostics" ------- Ant diagnostics report ------- Apache Ant version 1.6.0 compiled on January 18 2004 ------------------------------------------- Implementation Version (JDK1.2+ only) ------------------------------------------- core tasks : 1.6.0 optional tasks : 1.6.0 ------------------------------------------- ANT_HOME/lib jar listing ------------------------------------------- ant.home: /usr/share/ant ant-jai.jar (353 bytes) ant-antlr.jar (5676 bytes) ant-starteam.jar (353 bytes) ant-icontract.jar (353 bytes) ant-jdepend.jar (7986 bytes) ant-jakarta-oro.jar (47961 bytes) ant-trax.jar (67002 bytes) ant-jmf.jar (6617 bytes) ant-jsch.jar (21419 bytes) ant-apache-bsf.jar (353 bytes) ant-netrexx.jar (353 bytes) ant-swing.jar (6634 bytes) ant-jakarta-log4j.jar (3033 bytes) ant-stylebook.jar (353 bytes) ant-jakarta-regexp.jar (3724 bytes) ant-javamail.jar (6776 bytes) jdepend.jar (57536 bytes) ant-junit.jar (67677 bytes) ant-xalan1.jar (353 bytes) ant-xalan2.jar (2482 bytes) ant-commons-net.jar (353 bytes) ant-commons-logging.jar (3867 bytes) ant-weblogic.jar (353 bytes) ant.jar (944182 bytes) ant-vaj.jar (353 bytes) ant-xslp.jar (353 bytes) ant-nodeps.jar (393446 bytes) ant-launcher.jar (8167 bytes) junit.jar (184623 bytes) ant-apache-resolver.jar (353 bytes) ------------------------------------------- Tasks availability ------------------------------------------- image : Not Available wlrun : Not Available icontract : Not Available vajload : Not Available rexec : Not Available stlist : Not Available telnet : Not Available netrexxc : Not Available ftp : Not Available starteam : Not Available stylebook : Not Available stlabel : Not Available script : Not Available stcheckin : Not Available vajexport : Not Available stcheckout : Not Available ejbc : Not Available vajimport : Not Available wlstop : Not Available scriptdef : Not Available ddcreator : Not Available