This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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

 
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.
 
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
 
Saloon Keeper
Posts: 21126
131
Android Eclipse IDE Tomcat Server Redhat Java 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!
 
I just had the craziest dream. This tiny ad was in it.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!