Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35921 - Emerged ANT is lacking in the optional jar area due to dependencies not being installed
Summary: Emerged ANT is lacking in the optional jar area due to dependencies not being...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 35992 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-15 23:10 UTC by Bill Chmura
Modified: 2004-01-22 18:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of `ant -diagnostics' (ant-diagnostics.txt,8.27 KB, text/plain)
2004-01-22 11:31 UTC, Bert Van Vreckem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Chmura 2003-12-15 23:10:47 UTC
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.
Comment 1 Adrian Almenar 2003-12-19 21:55:23 UTC
Moving this again to java@gentoo.org, so everyone out there can help.
Comment 2 Adrian Almenar 2004-01-16 21:43:19 UTC
*** Bug 35992 has been marked as a duplicate of this bug. ***
Comment 3 Adrian Almenar 2004-01-20 18:57:13 UTC
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.
Comment 4 Bert Van Vreckem 2004-01-22 11:30:27 UTC
<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>
Comment 5 Bert Van Vreckem 2004-01-22 11:31:59 UTC
Created attachment 24249 [details]
Output of `ant -diagnostics'
Comment 6 Adrian Almenar 2004-01-22 18:40:48 UTC
"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