Cocoon and Eclipse

I’ve been taking yet another look at Eclipse, as I’m growing increasingly dissatisfied with JEdit under Mac OS X. I know there’s some irony in swapping one bloated java memory hogging editor for an even bigger one wrapped up in an IDE, but I have good reasons, honest.

Being a bleeding edge kind of fool, I’m running Eclipse 3 Milestone 6. It seems to be behaving now that I’ve got this bugfix which cures erroneous additional icons in the dock.

The first two things I’ve tried to sort out in Eclipse were finding a decent editor and getting Cocoon building and running within it. I’ve had moderate success so far.

For editors, I’m giving <oXygen/> a whirl. They ship a version that runs as an Eclipse plugin. It’s full-featured and compares well with JEdit, and at $74 it’s significantly cheaper than BBEdit which seems the only viable alternative and is double the price at $149.95. I’ll see how the 30 day trial goes.

As for Cocoon, well, I’ve got as far as getting it to compile. After doing the initial work of creating an eclipse project following the notes on the Cocoon wiki, I needed to replace the default copy of Ant (1.5.4) with Ant 1.6. I did this using the excellent, fantastic and generally brilliant fink-beating darwinportssudo port install apache-ant.

I then had to tell Eclipse about the new Ant. Here, the Eclipse documentation really impressed me: it had a section on using a different version of Ant (link should work if you have Eclipse running locally). Nice. Basically, I set the Ant Home to /opt/local/java/apache-ant. (Yes, I know, I should probably use the version of Ant that comes with Cocoon, but I’m with the bileblog on this.)

And then I finally just saw what I was looking for:
webapp:
BUILD SUCCESSFUL
Total time: 18 minutes 9 seconds

Now I’m trying to figure out how to launch Jetty from within Eclipse. Once I’ve done that, I’ll tidy up the notes I pasted into the Cocoon wiki page from the mailing list.

Currently listening to Us and Them from the album Dark Side Of The Moon by Pink Floyd

Related posts:

  1. More link chasing!
  2. Diary of a switcher #8
  3. On XSLT and Cocoon
  4. Urgh
  5. Diary of a switcher #10
This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.