Eclipse, Cocoon, Ant

This one’s for David. Building Cocoon projects in Eclipse from the build.xml making use of Cocoon’s XConfPatch task, you need to:

  • Right-click on build.xml, select “Run Ant”
  • In “Classpath”, select “Add Folder…” and navigate to /path/to/your/cocoon/tools/anttasks
  • Optionally set Ant Home to /opt/local/java/apache-ant or wherever it is
  • In “Properties”, add a property with name “cocoon.home” and value /path/to/your/cocoon

You probably also need to add a few Jars. Right-click on the project, in “Java Build Path” under Libraries, click “Add JARs…”. Add whatever you need (such as commons-lang or junit) from /path/to/your/cocoon/lib/core/, or /path/to/your/cocoon/tools/lib, etc.

… wonder if there’s a better way to do all this?

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.