You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Torsten Schlabach <TS...@gmx.net> on 2004/12/09 18:04:02 UTC
Build Cocoon in Eclipse
Dear all,
I am not sure if this is an old topic, but searching the archive did not
really bring any solution.
I would like to build Cocoon in Eclipse (3.1 M3 to be exact) and I have
followed instructions on this page:
http://wiki.apache.org/cocoon/LoadInEclipse
What confuses me is this part:
<!-- =========================================================== -->
<!-- Use the Eclipse compiler if we are running in eclipse -->
<!-- =========================================================== -->
<target name="properties" if="eclipse.running">
<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
</target>
I am not sure where in build.xml to put this, but it does not seem to make a
difference. Also the page does not say anything about what this might be
good for at all.
With or without that piece, when I try to run an Ant build for the webapp
target:
Buildfile: C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build.xml
init:
init-tasks:
[copy] Copying 18 files to
C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build\cocoon-2.1.6\classes
[copy] Copied 60 empty directories to 32 empty directories under
C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build\cocoon-2.1.6\classes
[javac] Compiling 541 source files to
C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build\cocoon-2.1.6\classes
compile-deprecated:
[mkdir] Created dir:
C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build\cocoon-2.1.6\deprecated
BUILD FAILED: java.lang.ExceptionInInitializerError
Total time: 27 seconds
Is there anything obvious I am missing?
In fact, what I never understood about the Eclipse / Ant thing:
The philosophy of Eclipse is to compile a Java class as soon as it sees it.
And it decides itself where to but it. How is that compatible with the idea
of Ant where you specify on a very granular basis what to do when.
I know this is not an Eclipse support forum, but I think this is of
interested to a lot of other Cocoon users.
Regards,
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org