Discussion:
[Middlegen-user] build.xml (cvs-version) failure
T-Online
2002-08-12 17:29:05 UTC
Permalink
'Hello all
I receive the following trying to build; in task plugin the tag xdoclet misses the sourcepath; "sourePath attribute must be present; but to
which value does it need to be set! I added "sourcePath="${plugin.src.path}"
but afterwards when trying to build the airline example i get the error that the cmp20 tag is unknown;
anyone knows help?......

i use ant version 1.6beta (tried also 1.5)
and the cvs version from 12.08.02

thanks in advance!


====================================================================================================================================
====================================================================================================================================
<target name="plugin">
<property name="plugin.dir" value="${basedir}/plugins/${plugin-name}"/>
<property name="plugin.src.dir" value="${plugin.dir}/src"/>
<property name="plugin.classes.dir" value="${plugin.dir}/classes"/>
<property name="plugin.jar.file" value="${samples.lib.dir}/${name}-${plugin-name}.jar"/>

<mkdir dir="${plugin.classes.dir}"/>

<!-- Run the prettytask twice to have the inserted todo tags aligned on new line -->
<pretty settingsDir="${etc.dir}" cvs="yes" compileDir="${plugin.classes.dir}">
<fileset dir="${plugin.src.dir}">
<include name="**/*.java" />
</fileset>
</pretty>
<pretty settingsDir="${etc.dir}" cvs="yes" compileDir="${plugin.classes.dir}">
<fileset dir="${plugin.src.dir}">
<include name="**/*.java" />
</fileset>
</pretty>

<javac srcdir="${plugin.src.dir}" destdir="${plugin.classes.dir}">
<classpath refid="classpath"/>
</javac>

<!-- Generate middlegen-plugin.xml -->
<taskdef
name="xdoclet"
classname="xdoclet.DocletTask"
classpathref="classpath"
/>
<mkdir dir="${plugin.classes.dir}/META-INF"/>
<xdoclet destdir="${plugin.classes.dir}/META-INF">
<fileset dir="${plugin.src.dir}">
<include name="**/*Plugin.java" />
</fileset>
<template
templateFile="${basedir}/etc/middlegen-plugin.xdt"
destinationFile="middlegen-plugin.xml"
/>
</xdoclet>

<jar
jarfile="${plugin.jar.file}"
manifest="${src.dir}/manifest"
<fileset dir="${plugin.classes.dir}"/>
<fileset dir="${plugin.src.dir}">
<exclude name="**/*.java"/>
</fileset>
</jar>
</target>

====================================================================================================================================
====================================================================================================================================
Aslak Hellesøy
2002-08-12 17:49:01 UTC
Permalink
You have an old xdoclet on your classpath. Get rid of it. A newer xdoclet is
included in Middlegen. The simplest is to do
SET CLASSPATH=

before you invoke Ant

(Or whatever equivalent in your Unix shell)

HTH,
Aslak
-----Original Message-----
From: middlegen-user-***@lists.sourceforge.net
[mailto:middlegen-user-***@lists.sourceforge.net]On Behalf Of T-Online
Sent: 12. august 2002 21:27
To: middlegen-***@lists.sourceforge.net
Subject: [Middlegen-user] build.xml (cvs-version) failure


'Hello all
I receive the following trying to build; in task plugin the tag xdoclet
misses the sourcepath; "sourePath attribute must be present; but to
which value does it need to be set! I added
"sourcePath="${plugin.src.path}"
but afterwards when trying to build the airline example i get the error
that the cmp20 tag is unknown;
anyone knows help?......

i use ant version 1.6beta (tried also 1.5)
and the cvs version from 12.08.02

thanks in advance!



============================================================================
========================================================

============================================================================
========================================================
<target name="plugin">
<property name="plugin.dir"
value="${basedir}/plugins/${plugin-name}"/>
<property name="plugin.src.dir" value="${plugin.dir}/src"/>
<property name="plugin.classes.dir"
value="${plugin.dir}/classes"/>
<property name="plugin.jar.file"
value="${samples.lib.dir}/${name}-${plugin-name}.jar"/>

<mkdir dir="${plugin.classes.dir}"/>

<!-- Run the prettytask twice to have the inserted todo tags aligned
on new line -->
<pretty settingsDir="${etc.dir}" cvs="yes"
compileDir="${plugin.classes.dir}">
<fileset dir="${plugin.src.dir}">
<include name="**/*.java" />
</fileset>
</pretty>
<pretty settingsDir="${etc.dir}" cvs="yes"
compileDir="${plugin.classes.dir}">
<fileset dir="${plugin.src.dir}">
<include name="**/*.java" />
</fileset>
</pretty>

<javac srcdir="${plugin.src.dir}" destdir="${plugin.classes.dir}">
<classpath refid="classpath"/>
</javac>

<!-- Generate middlegen-plugin.xml -->
<taskdef
name="xdoclet"
classname="xdoclet.DocletTask"
classpathref="classpath"
/>
<mkdir dir="${plugin.classes.dir}/META-INF"/>
<xdoclet destdir="${plugin.classes.dir}/META-INF">
<fileset dir="${plugin.src.dir}">
<include name="**/*Plugin.java" />
</fileset>
<template
templateFile="${basedir}/etc/middlegen-plugin.xdt"
destinationFile="middlegen-plugin.xml"
/>
</xdoclet>

<jar
jarfile="${plugin.jar.file}"
manifest="${src.dir}/manifest"
<fileset dir="${plugin.classes.dir}"/>
<fileset dir="${plugin.src.dir}">
<exclude name="**/*.java"/>
</fileset>
</jar>
</target>


============================================================================
========================================================

============================================================================
========================================================

Loading...