You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ron Wheeler <rw...@artifact-software.com> on 2005/07/27 21:14:28 UTC

Build error using Eclipse

I am trying to build Cocoon under Eclipse.
This is the output that I get from Ant.
I have got the Problem window down to 100 warnings - mostly about 
depricated functions with a few small erors about properties never being 
referenced and returns not declared.

I did not create any local. files nor have I changed anything in the 
distribution.

What have I missed?

<Console Output>

Buildfile: C:\eclipse\workspace\Cocoon\build.xml
init:
clean-webapp:
   [delete] Deleting directory C:\eclipse\workspace\Cocoon\build\webapp
init:
Overriding previous definition of reference to classpath
init-tasks:
  [taskdef] Could not load definitions from resource 
net/sf/antcontrib/antcontrib.properties. It could not be found.
prepare:
     [echo] 
======================================================================
     [echo] Apache Cocoon 2.1.7 [1999-2005]
     [echo] 
======================================================================
     [echo] Building with Apache Ant version 1.6.5 compiled on June 2 2005
     [echo] 
----------------------------------------------------------------------
     [echo] Using build file C:\eclipse\workspace\Cocoon\build.xml
     [echo] 
----------------------------------------------------------------------
     [echo] Compiler options:
     [echo] - debug ......... [on]
     [echo] - optimize ...... [on]
     [echo] - deprecation ... [off]
     [echo] 
======================================================================
compile-mocks:
clover:
clover.init:
clover.on:
compile-core:
clover.off:
compile-deprecated:
compile-tests:
compile:
prepare-blocks:
     [copy] Copying 1 file to 
C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp
     [xslt] Processing 
C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\gump.xml to 
C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\blocks-build.xml
     [xslt] Loading stylesheet 
C:\eclipse\workspace\Cocoon\tools\src\blocks-build.xsl
blocks:
init:
unstable:

BUILD FAILED
C:\eclipse\workspace\Cocoon\tools\targets\compile-build.xml:244: The 
following error occurred while executing this line:
C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\blocks-build.xml:373: 
Could not create task or type of type: if.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
 - You have misspelt 'if'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
     and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
     implementing the functionality were not found at the time you
     yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
     If all it contains is the manifest, then rebuild Ant with the needed
     libraries present in ${ant.home}/lib/optional/ , or alternatively,
     download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task
     and needs to be declared using <taskdef>.
 - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
   defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 31 seconds

</Console Output>
<C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\blocks-build.xml:373 
to 408:>

<if>
<istrue value="${unstable.blocks.present}"/>
<then>
<echo message="==================== WARNING ======================="/>
<echo message=" Block 'apples' should be considered unstable."/>
<echo message=" Block 'asciiart' should be considered unstable."/>
<echo message=" Block 'axis' should be considered unstable."/>
<echo message=" Block 'cron' should be considered unstable."/>
<echo message=" Block 'deli' should be considered unstable."/>
<echo message=" Block 'eventcache' should be considered unstable."/>
<echo message=" Block 'faces' should be considered unstable."/>
<echo message=" Block 'forms' should be considered unstable."/>
<echo message=" Block 'javaflow' should be considered unstable."/>
<echo message=" Block 'jms' should be considered unstable."/>
<echo message=" Block 'linotype' should be considered unstable."/>
<echo message=" Block 'mail' should be considered unstable."/>
<echo message=" Block 'midi' should be considered unstable."/>
<echo message=" Block 'petstore' should be considered unstable."/>
<echo message=" Block 'proxy' should be considered unstable."/>
<echo message=" Block 'qdox' should be considered unstable."/>
<echo message=" Block 'querybean' should be considered unstable."/>
<echo message=" Block 'repository' should be considered unstable."/>
<echo message=" Block 'serializers' should be considered unstable."/>
<echo message=" Block 'slide' should be considered unstable."/>
<echo message=" Block 'slop' should be considered unstable."/>
<echo message=" Block 'stx' should be considered unstable."/>
<echo message=" Block 'taglib' should be considered unstable."/>
<echo message=" Block 'tour' should be considered unstable."/>
<echo message=" Block 'webdav' should be considered unstable."/>
<echo message="----------------------------------------------------"/>
<echo message="         This means that its API, schemas "/>
<echo message="  and other contracts might change without notice."/>
<echo message="===================================================="/>
</then>
</if>
</C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\blocks-build.xml:373 
to 408:>

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


Re: Build error using Eclipse

Posted by Ron Wheeler <rw...@artifact-software.com>.
That was it.
I had to add the ant-contrib.jar to the Eclipse Ant Preferences runtime 
list of libraries.

Ron

Joerg Heinicke wrote:

> On 27.07.2005 21:14, Ron Wheeler wrote:
>
>>  [taskdef] Could not load definitions from resource 
>> net/sf/antcontrib/antcontrib.properties. It could not be found.
>
>
> You obviously need ant-contrib.jar.
>
> Joerg
>
> ---------------------------------------------------------------------
> 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: Build error using Eclipse

Posted by Joerg Heinicke <jo...@gmx.de>.
On 27.07.2005 21:14, Ron Wheeler wrote:
>  [taskdef] Could not load definitions from resource 
> net/sf/antcontrib/antcontrib.properties. It could not be found.

You obviously need ant-contrib.jar.

Joerg

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