i'm having problems building the current xdoclet v1.2 version from CVS
(with Ant v1.5.3, Blackdown Java2, JRE v1.4.1 on Red Hat Linux v7.3).

i checked out the source code using:
cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/xdoclet co xdoclet-all

then i set CLASSPATH to: 
$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.jar:$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/optional.jar:$ANT_HOME/lib/xml-apis.jar:$ANT_HOME/lib/xercesImpl.jar

but when i run ant in the xdoclet-all/xdoclet directory the build fails
with the following results:
...
  [xdoclet]   Generating output for 'xjavadoc.SourceClass' using template file 
'file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j'.
    [mkdir] Created dir: 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/test-classes
    [javac] Compiling 11 source files to 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/test-classes

junit:
    [mkdir] Created dir: 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/test-reports

BUILD FAILED
file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/build.xml:136: Could not create 
task or type of type: junit.


i tried following the instructions on the Download/Installation page - am
i doing something wrong during the build process? i'm attaching a
typescript of the build in this email.

best regards,
-- 
        aspa                                    http://www.kronodoc.fi/

Script started on Sun Jun  8 14:35:50 2003
[EMAIL PROTECTED] xdoclet]$ ant


Buildfile: build.xml



xjavadoc-determine-presence:



xjavadoc-determine-uptodate:

     [echo] XJavaDoc sources are available. Checking against 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xdoclet/lib/xjavadoc-1.0.jar



build-xjavadoc:

     [echo] XJavaDoc sources modified after jar file. Building XJavaDoc...



init:



prepare:

    [mkdir] Created dir: /home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src

    [mkdir] Created dir: /home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/junit

    [mkdir] Created dir: 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/classes

     [copy] Copying 75 files to 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src

     [copy] Copying 4 files to 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/junit



jjtree:



copy-grammar:

     [copy] Copying 1 file to 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc

   [jjtree] Java Compiler Compiler Version 2.1 (Tree Builder)

   [jjtree] Copyright (c) 1996-2001 Sun Microsystems, Inc.

   [jjtree] Copyright (c) 1997-2001 WebGain, Inc.

   [jjtree] (type "jjtree" with no arguments for help)

   [jjtree] Reading from file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/nodeparser.jjt . 
. .

   [jjtree] File 
"/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/Node.java" does 
not exist.  Will create one.

   [jjtree] Annotated grammar generated successfully in 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/nodeparser.jj



generate-node-parser:

   [javacc] Java Compiler Compiler Version 2.1 (Parser Generator)

   [javacc] Copyright (c) 1996-2001 Sun Microsystems, Inc.

   [javacc] Copyright (c) 1997-2001 WebGain, Inc.

   [javacc] (type "javacc" with no arguments for help)

   [javacc] Reading from file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/nodeparser.jj . 
. .

   [javacc] File "TokenMgrError.java" does not exist.  Will create one.

   [javacc] File "ParseException.java" does not exist.  Will create one.

   [javacc] File "Token.java" does not exist.  Will create one.

   [javacc] File "JavaCharStream.java" does not exist.  Will create one.

   [javacc] Parser generated successfully.



generate-simple-parser:



copy-grammar:

     [copy] Copying 1 file to 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc

   [javacc] Java Compiler Compiler Version 2.1 (Parser Generator)

   [javacc] Copyright (c) 1996-2001 Sun Microsystems, Inc.

   [javacc] Copyright (c) 1997-2001 WebGain, Inc.

   [javacc] (type "javacc" with no arguments for help)

   [javacc] Reading from file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/simpleparser.jj 
. . .

   [javacc] Parser generated successfully.



generate-parsers:



compile:

    [javac] Compiling 88 source files to 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/classes



generate-tests:

  [xdoclet] 
ASLAK.templateFile:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j

  [xdoclet] Generating Javadoc

  [xdoclet] Javadoc execution

  [xdoclet] Loading source file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/AbstractClass.java...

  [xdoclet] Loading source file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/XJavaDoc.java...

  [xdoclet] Loading source file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/AbstractExecutableMember.java...

  [xdoclet] Loading source file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/XClass.java...

  [xdoclet] Loading source file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/DefaultXTag.java...

  [xdoclet] Loading source file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/XDoc.java...

  [xdoclet] Loading source file 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/src/xjavadoc/SourceClass.java...

  [xdoclet] Constructing Javadoc information...

  [xdoclet] Running <template/>

  [xdoclet]   Generating output for 'xjavadoc.AbstractClass' using template file 
'file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j'.

  [xdoclet]   Generating output for 'xjavadoc.XJavaDoc' using template file 
'file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j'.

  [xdoclet]   Generating output for 'xjavadoc.AbstractExecutableMember' using template 
file 'file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j'.

  [xdoclet]   Generating output for 'xjavadoc.XClass' using template file 
'file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j'.

  [xdoclet]   Generating output for 'xjavadoc.DefaultXTag' using template file 
'file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j'.

  [xdoclet]   Generating output for 'xjavadoc.XDoc' using template file 
'file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j'.

  [xdoclet]   Generating output for 'xjavadoc.SourceClass' using template file 
'file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/etc/xjavadoctest.j'.

    [mkdir] Created dir: 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/test-classes

    [javac] Compiling 11 source files to 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/test-classes



junit:

    [mkdir] Created dir: 
/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/target/test-reports



BUILD FAILED

file:/home/aspa/projects/ntlm/tmp/xdoclet-all/xjavadoc/build.xml:136: Could not create 
task or type of type: junit.



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 'junit'.

   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 optional.jar is absent

   Fix: look for optional.jar in ANT_HOME/lib, download if needed

 - The task was not built into optional.jar as dependent

   libraries were not found at build time.

   Fix: look in the JAR to verify, then rebuild with the needed

   libraries, or download a 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>.



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: 40 seconds

[EMAIL PROTECTED] xdoclet]$ exit


exit


Script done on Sun Jun  8 14:39:41 2003

Reply via email to