I have a xdoclet 1.2beta1 build script that runs under standalone ant
nicely, but not under netbeans v3.4, upgraded with ant 1.5.1. 

Excerpts from the script;

<property name="xdocletlib.path"
  value="/opt/download/xdoclet-1.2.0beta1/lib"/>

<path id="ant-opt-classpath">
  <fileset dir="${xdocletlib.path}" includes="*.jar"/>
</path>

<taskdef name="webdoclet"
  classname="xdoclet.modules.web.WebDocletTask"
  classpathref="xdoclet.path"/>

<webdoclet destdir="${generated.web}" 
        force="${xdoclet.force}" 
        verbose="on">
        
        <fileset dir="${common}/web/WEB-INF/classes">
                <include name="**/*.java"/>
        </fileset>
        <fileset dir="${custom}/web/WEB-INF/classes">
                <include name="**/*.java"/>
        </fileset>
        
        <deploymentdescriptor destdir="${web.meta.dir}" 
                        validatexml="true"
                        sessiontimeout="240"
                        servletspec="2.2"
                        mergedir="${custom}/web/WEB-INF/xml/">
                <welcomefile file="index.html" />
        </deploymentdescriptor> 

                        
        <strutsconfigxml destdir="${web.meta.dir}"
                validatexml="true"
                version="1.1"
                mergedir="${custom}/web/WEB-INF/xml/" />
</webdoclet>

I've tried placing the jars under the
.netbeans/3.4/modules/patches/org-apache-tools-ant-module directory with
sutiable classpath as well, but it doesn't work. 

The error I get is                              

xdoclet-web:
file:/home/torgeir/java/src/idesk/abn/webtier-build.xml:215: Can't
create a deploymentdescriptor element under webdoclet. Make sure the jar
file containing the corresponding subtask class is on the classpath
specified in the <taskdef> that defined webdoclet.
BUILD FAILED

so it seems that the first taskdef is fine, but the subsequent subtasks
aren't found. If I comment the subtasks away, it runs, but then the task
is quite useless. It runs fine outside of netbeans. I've tried running
with J-Dorg.apache.tools.ant.module=0, but it doesn't work any better
still.

Any ideas? I'd really like to get things running under netbeans.

-- 
Torgeir Veimo <[EMAIL PROTECTED]>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to