# cocoon-users mailing list archives

##### Site index · List index
Message view
Top
From H.vanderLin...@MI.unimaas.nl
Subject RE: Build Cocoon in Eclipse
Date Thu, 09 Dec 2004 19:13:23 GMT
```Torsten,

I just checked. I can build my SVN revision in Eclipse when I do the things
below. The only thing I have to figure out now is how to tell Eclipse to use
the build.properties/block.properties files.

Hmm, quarter just fell: do you mean "build" using the Project, build option
in Eclipse? I usually use the build tag of Ant. (the context menu of
build.xml and then run, ant build).

Because my own project in Eclipse depends on my Cocoon SVN revision I can
debug my own code as well as the Cocoon files.

Is that what you mean?

Bye, Helma

> -----Original Message-----
> From: Torsten Schlabach [mailto:TSchlabach@gmx.net]
> Sent: Thursday, 09 December 2004 18:31
> To: users@cocoon.apache.org
> Subject: RE: Build Cocoon in Eclipse
>
>
> This is interesting as well, but it does not really answer my
> question.
>
> My question is rather: Who is (successfully) using Eclipse to
> build / debug
> Cocoon? And what does that person that I don't do?
>
> I can build Cocoon from the command line and then continue
> with Eclipse, but
> I think this is not the concept, is it?
>
> Regards,
> Torsten
>
> > Although I don't do a full Cocoon build in Eclipse I do
> build part of it
> > for
> > my project in Eclipse. In this I followed the setup in
> > http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16
> >
> > > I would like to build Cocoon in Eclipse (3.1 M3 to be exact)
> > > and I have
> > >
> > >
> > > 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"
> > >   </target>
> >
> > Note that the wiki page describes Eclipse 2.1 and there are big
> > differences
> > between 2.1 and 3.X. If I understand correctly, there is a
> target in the
> > build.xml to create Eclipse files so Cocoon can be set up
> in Eclipse.
> >
> > > With or without that piece, when I try to run an Ant build
> > > for the webapp
> > > target:
> > >
> > > Buildfile:
> > > init:
> > >      [copy] Copying 18 files to
> > > n-2.1.6\classes
> > >      [copy] Copied 60 empty directories to 32 empty
> directories under
> > > n-2.1.6\classes
> > >     [javac] Compiling 541 source files to
> > > n-2.1.6\classes
> > > compile-deprecated:
> > >     [mkdir] Created dir:
> > > n-2.1.6\deprecated
> > > BUILD FAILED: java.lang.ExceptionInInitializerError
> > > Total time: 27 seconds
> >
> > This error is due to the fact that Eclipse uses ant 1.6.2
> and Cocoon uses
> > ant 1.6.1. This error has been mentioned before on either
> this list or the
> > dev list. I myself solve the problem by having Eclipse
> point to  the ant
> > 1.6.1 home, but in those messages you can also read someone else's
> > approach.
> >
> > > 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.
> >
> > If you setup Eclipse to build into the same build structure
> that Ant does,
> > it works. If I'm not mistaken that is exactly what the
> eclipse target in
> > the
> > build.xml does.
> >
> > HTH.
> >
> > Bye, Helma
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org