aspose file tools*
The moose likes Other Open Source Projects and the fly likes Where is the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Where is the "org.apache.bcel.*" in jakarta ant Watch "Where is the "org.apache.bcel.*" in jakarta ant New topic
Author

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

Junpour Guo
Greenhorn

Joined: Feb 18, 2003
Posts: 4
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

Joined: Jul 27, 2001
Posts: 1365
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

Joined: Feb 18, 2003
Posts: 4
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

Joined: Jul 27, 2001
Posts: 1365
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

Joined: Jun 25, 2001
Posts: 16308
    
  22

I got mine from http://jakarta.apache.org/builds/jakarta-bcel/release/v5.0/


Customer surveys are for companies who didn't pay proper attention to begin with.
Junpour Guo
Greenhorn

Joined: Feb 18, 2003
Posts: 4
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where is the "org.apache.bcel.*" in jakarta ant's source code?