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/15 17:42:50 UTC

Still challenged with building Cocoon in Eclipse

Hi all,

I still try to build Cocoon in Eclipse by following this howto:

http://wiki.apache.org/cocoon/Cocoon215TOC

and I still face this error:

Buildfile: C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build.xml
init:
init-tasks:
    [mkdir] Created dir:
C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build\cocoon-2.1.6\mocks
    [javac] Compiling 1 source file to
C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build\cocoon-2.1.6\mocks
compile-deprecated:
BUILD FAILED: java.lang.ExceptionInInitializerError
Total time: 30 seconds

Someone pointed me at

http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16

But having read this through I think it cannot be the answer as it is based
on heavily changing the build.xml and properties files and if I get it right
talks about building it through on the command line first and then just use
Eclipse as and editor / viewer.

So my question still is: Did anyone ever successfully:

- Download and extract the tar
- Run ant eclipse-project
- Imported and built the project in Eclipse

When I say "build in Eclipse" I am talking about locating the top build.xml
file in Eclipse, right-clicking on it and choosing "Run as ..." and "Ant
build".

Especially, what I don't understand in the "LoadInEclipse" Wiki page is this
section:

To run the Ant build from within Eclipse you have to add something like this
to the build.xml:

  <!-- =========================================================== -->
  <!-- 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>


Where should I put this?

Regards,
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Still challenged with building Cocoon in Eclipse

Posted by Christofer Dutz <du...@c-ware.de>.
I hope this helps. I ran into the same problems and the problem is in 
fact the Ant version or the settings of it. After a long time of messing 
around with several settings, is changed my build-file to exec-the 
regular cocoon build. Except of some not very pretty [EXEC] prefixes 
cocoon builds nicely and I am able to use and debug cocoon as if I built 
it with the regular Eclipse ant.

        <exec dir="3rd-party/cocoon-2.1.6" executable="build.bat" 
vmlauncher="false">
            <arg line="war"/>
        </exec>

Hope this helps.
Chris

Torsten Schlabach wrote:

>Gregor,
>
>  
>
>>>i would advise to disable deprecation support in local.build.properties
>>>      
>>>
>
>I am not really sure what "compile-deprecated" does in Cocoon, but from what
>I found in between my initial posting and now this would be circumventing
>and not solving the problem.
>
>The problem seems to be that the built-in Ant in Eclipse has a problem with
>the custom tasks used in Cocoon, for example the XPatchTask. I guess this
>would hit us later, wouldn't it? ;-((
>
>One challenge with Eclipse is that it is always doing a lot of things in the
>background that you are not aware of. For example, it sometimes seems to
>keep the state of individual ant tasks, so if you just trigger the same ant
>task twice you will not necessarily see the same behaviour.
>
>Anyway ... I am sure I will fix that and then be able to turn to what I
>really want to achive. But I decided I get nowere if I don't manage to use
>Eclipse for my development tasks over there in Lenya and I don't want a
>mixed setup with editing in Eclipse and building from the command line. 
>
>Regards,
>Torsten
>
>  
>
>>Torsten Schlabach wrote:
>>
>>    
>>
>>>compile-deprecated:
>>>BUILD FAILED: java.lang.ExceptionInInitializerError
>>>      
>>>
>>i would advise to disable deprecation support in local.build.properties
>>
>>it's a good check for any custom code anyway, helped me spot a couple 
>>problems in lenya that way.
>>
>>-gregor
>>
>>
>>
>>---------------------------------------------------------------------
>>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
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Still challenged with building Cocoon in Eclipse

Posted by Torsten Schlabach <TS...@gmx.net>.
Gregor,

>> i would advise to disable deprecation support in local.build.properties

I am not really sure what "compile-deprecated" does in Cocoon, but from what
I found in between my initial posting and now this would be circumventing
and not solving the problem.

The problem seems to be that the built-in Ant in Eclipse has a problem with
the custom tasks used in Cocoon, for example the XPatchTask. I guess this
would hit us later, wouldn't it? ;-((

One challenge with Eclipse is that it is always doing a lot of things in the
background that you are not aware of. For example, it sometimes seems to
keep the state of individual ant tasks, so if you just trigger the same ant
task twice you will not necessarily see the same behaviour.

Anyway ... I am sure I will fix that and then be able to turn to what I
really want to achive. But I decided I get nowere if I don't manage to use
Eclipse for my development tasks over there in Lenya and I don't want a
mixed setup with editing in Eclipse and building from the command line. 

Regards,
Torsten

> Torsten Schlabach wrote:
> 
> > compile-deprecated:
> > BUILD FAILED: java.lang.ExceptionInInitializerError
> 
> i would advise to disable deprecation support in local.build.properties
> 
> it's a good check for any custom code anyway, helped me spot a couple 
> problems in lenya that way.
> 
> -gregor
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Still challenged with building Cocoon in Eclipse

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Torsten Schlabach wrote:

> compile-deprecated:
> BUILD FAILED: java.lang.ExceptionInInitializerError

i would advise to disable deprecation support in local.build.properties

it's a good check for any custom code anyway, helped me spot a couple 
problems in lenya that way.

-gregor



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org