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

Reply via email to