Mark,
I managed to set up eclipse so that I can work with eclipse to compile the code and whenever I chose to so, go to ant to build/compile stuff. In other words, both eclipse and ant compile the same source files and output them to the same directories.
Here is how I have done it:
I have set up a project called 'log4j-1.3'. Got the files from CVS.
In project properties, select 'Java Build Path'.
Select the 'Source' tab.
I have the following source folders under 'source folders on build path'
log4j-1.3/examples output folder" default, i.e log4j-1.3/dist/classes
log4j-1.3/src/java output folder: default, i.e log4j-1.3/dist/classes
log4j-1.3/src/tests/java output folder: log4j-1.3/tests/classes
Do not forget to have the 'allow output folders for source folders' checked
I hope this helps.
ps: I am on irc.freenode.org:6667 channel #apache-log4j if need be.
At 01:15 PM 10/19/2003 -0700, Mark Womack wrote:
Tim and Michael, thanks for the info and links. My build.xml is now functioning.
One more question...the package explorer is showing me all of the packages in the project, but most of them have compile errors associated with the Eclipse attempt to build the project (which I still don't want to use). Is there any way to get it to not display all the error garbage?
<mini-rant> This is the thing I dislike most about IDE's. If you work and think in the same way as the folks that designed the IDE, everything is great. But, as soon as you try to step a little bit off the beaten down path, good luck. </mini-rant>
Of course, some of this is just the learning curve I am trying to climb at the same time I am trying to get useful work done.
thanks, -Mark
----- Original Message ----- From: "Tim Emiola" <[EMAIL PROTECTED]> To: "Log4J Developers List" <[EMAIL PROTECTED]> Sent: Sunday, October 19, 2003 4:37 AM Subject: Re: Help! - Eclipse! - Uncle!
> --- Mark Womack <[EMAIL PROTECTED]> wrote: > > OK, can someone tell me how they have their eclipse > > project set up for > > log4j? I was able to: > > > > - Create a respository location for the apache cvs > > - Create a java project and synchronize it with > > jakarta-log4j in the cvs > > - Update all of the source into the project > > workspace > > > > Now I want to get the build.xml to work, but it > > keeps complaining that the > > JAVA_HOME variable does not have the right value. > > The javac command in ant > > is failing. > > See http://eclipsewiki.swiki.net/118 > > I've opted for including tools.jar in the ANT runtime > classpath rather than the using the internal compiler, > otherwise rmic doesn't work for compiling the > examples. > > > > > And how in the heck do I get eclipse to not do its > > automatic build and just > > to the ant build instead? > > See http://eclipsewiki.swiki.net/126 > > > > > Uncle! > > > > thanks, > > -Mark > >
-- Ceki Gülcü
For log4j documentation consider "The complete log4j manual" ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
import org.apache.Facetime; ApacheCon US 2003, 18-21 November http://apachecon.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]