Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where is the "org.apache.bcel.*" in jakarta ant's source code?

 
Junpour Guo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have anybody studied the source code of jakarta ant? I use the version 1.5.1 of jakarta ant, When i tried to import the source code of ant to my IDE(Eclipse), i found the IDE can't found classes in org.apache.bcel.* package. but when i use the build.xml to build the source code, it worked well!
anyone know the reason? Please help me.
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BCEL is not part of Ant. It's a seperate project that keeps its source code in a seperate CVS module. There's probably a file somewhere named something like lib/bcel.jar that needs to be in your classpath to build.
 
Junpour Guo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks anyway.
I know that bcel is a sub-project of jakarta,but i can't find any libraries of bcel in ant's release package.And when i build the source code using my previous ant, it worked well! I don't know the reason.I think there must be some tricks in the build.xml, can somebody help me?
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First make sure that the code using BCEL actually gets compiled then. I suspect it might not because of stuff I see in the Ant buildfile like:

and
 
Tim Holloway
Saloon Keeper
Posts: 18302
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got mine from http://jakarta.apache.org/builds/jakarta-bcel/release/v5.0/
 
Junpour Guo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to David Weitzman:
Thank u very much! I have read the build.xml carefully, as is what u have said, some conditions are set to check if the libraries exist, if true, the java file will be compiled and if not, the file won't be compiled!
besides bcel package, some mail package and log package are handled in the same way!
Thank u very much!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic