I am a novice, while building my project through ant, i am encountering the
following exception
[jmxdoclet] (XDocletMain.start 47 ) Running
<mbeaninterface/>
[jmxdoclet] Error parsing File
E:\GhostWorkspace\tryProject\audioTransfer\src\app\net\voicelog\fileTransfer\FileTransferDaemon.java:Encountered
"<" at line 42, column 27.
[jmxdoclet] Was expecting one of:
[jmxdoclet] <IDENTIFIER> ...
[jmxdoclet] "[" ...
[jmxdoclet] "." ...
[jmxdoclet] "(" ...
I am also attaching my build.xml the convenience.
Best regards
Ahmed.
<project name="AudioTransfer" default="build" basedir=".">
<property name="build.version" value="V2_5_0_0"/>
<property name="project" value="audioTransfer"/>
<!-- give the user a chance to override any properties -->
<property file="${user.home}/.ant.properties"/>
<property name="src" value="./src"/>
<property name="lib" value="./lib"/>
<property name="build" value="./build"/>
<property name="dist" value="./ataDist/ata"/>
<property name="docs" value="./docs"/>
<property name="test" value="./test"/>
<property name="scripts" value="./scripts"/>
<property name="sample.files" value="./sampleFiles"/>
<!--
stand-alone app properties
-->
<property name="app.build.dir" value="${build}/app"/>
<property name="app.dir" value="${src}/app"/>
<!--
J2EE related properties
-->
<property name="tomcat.home" value="/opt/tomcat"/>
<property name="tomcat.deploy.dir" value="${tomcat.home}/webapps"/>
<property name="jboss.home" value="e:/J2EE/JBOSS_HOME"/>
<property name="jboss.deploy.dir" value="${jboss.home}/server/default/deploy/"/>
<property name="war.build.dir" value="${build}/war"/>
<property name="jar.build.dir" value="${build}/jar"/>
<property name="webapp.dir" value="${src}/web"/>
<property name="j2ee.dir" value="${src}/j2ee"/>
<property name="config.dir" value="${src}/config"/>
<property name="jar.file" value="${project}.jar"/>
<property name="war.file" value="${project}-${build.version}.war"/>
<property name="ear.file" value="${project}.ear"/>
<property name="xdoclet.dir" value="e:/opt/xdoclet"/>
<property name="javadoc.dest" value="${docs}/api"/>
<property name="javadoc.deploy.dir" value="${user.home}/public_html/projects/${project}"/>
<!--
classpaths
-->
<path id="app.classpath">
<pathelement location="${app.dir}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${jar.build.dir}"/>
</path>
<path id="war.classpath">
<pathelement location="${webapp.dir}/WEB-INF/classes"/>
<pathelement location="${jboss.home}/server/default/lib/javax.servlet.jar"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="run.daemon.classpath">
<pathelement location="${app.build.dir}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<!--
init target
-->
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${app.build.dir}"/>
<mkdir dir="${war.build.dir}"/>
<mkdir dir="${war.build.dir}/WEB-INF/classes"/>
<mkdir dir="${src}/web/WEB-INF/classes"/>
<mkdir dir="${jar.build.dir}"/>
<mkdir dir="${jar.build.dir}/META-INF"/>
<path id="xdoclet.classpath">
<fileset dir="${xdoclet.dir}/lib">
<include name="*.jar"/>
</fileset>
</path>
<taskdef
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.classpath"/>
<taskdef name="jmxdoclet"
classname="xdoclet.modules.jmx.JMXDocletTask"
classpathref="xdoclet.classpath"/>
</target>
<!--
clean targets
-->
<target name="clean">
<delete dir="${build}"/>
<delete>
<fileset dir="${app.dir}" includes="**/*MBean.java"/>
</delete>
</target>
<target name="clean-all" depends="clean">
<delete dir="${dist}"/>
</target>
<!--
test target
-->
<target name="test" depends="build">
<javac srcdir="${test}"
destdir="${app.build.dir}"
debug="on"
includes="**/*.java">
<classpath>
<pathelement location="${app.build.dir}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<!--
build target
-->
<target name="build" depends="compile-app">
</target>
<!--
compile-app target
-->
<target name="compile-app" depends="init, generate-jmx">
<javac srcdir="${app.dir}"
destdir="${app.build.dir}"
deprecation="on"
debug="on"
includes="**/*.java">
<classpath refid="app.classpath"/>
</javac>
</target>
<!--
dist target
-->
<target name="dist" depends="build, war">
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/ata"/>
<mkdir dir="${dist}/ata/lib"/>
<mkdir dir="${dist}/ata/bin"/>
<mkdir dir="${dist}/ata/log"/>
<mkdir dir="${dist}/ata/conf"/>
<mkdir dir="${dist}/ata/doc"/>
<mkdir dir="${dist}/ata/deploy"/>
<mkdir dir="${dist}/ata/lib"/>
<jar destfile="${dist}/ata/lib/${project}-${build.version}.jar"
basedir="${app.build.dir}"
includes="**/*.class">
</jar>
<filter token="ANTbuildVersion" value="${build.version}"/>
<filter token="ANTproject" value="${project}"/>
<copy todir="${dist}/ata/lib">
<fileset dir="${lib}"
includes="*.jar"/>
<fileset dir="${build}" includes="${jar.file}"/>
</copy>
<copy todir="${dist}/ata/bin" filtering="true">
<fileset dir="${scripts}"/>
</copy>
<chmod dir="${dist}/ata/bin" perm="ugo+rx" includes="**/*.sh"/>
<copy todir="${dist}/ata/conf" filtering="true">
<fileset dir="${sample.files}/conf/"/>
</copy>
<copy file="${build}/${war.file}" todir="${dist}" />
<!-- keep this last, in case it fails -->
<copy todir="${dist}/ata/doc">
<fileset dir="${javadoc.dest}"/>
</copy>
<delete file="${dist}/${project}-${build.version}.jar"/>
</target>
<!--
disttar target
-->
<target name="disttar" depends="dist">
<tar destfile="${dist}/${project}-${build.version}.tar">
<tarfileset dir="${dist}" mode="755">
<include name="ata/bin/**"/>
</tarfileset>
<tarfileset dir="${dist}">
<include name="**"/>
<exclude name="ata/bin/**"/>
</tarfileset>
</tar>
</target>
<!--
jarsrc target
-->
<target name="jarsrc" depends="init">
<mkdir dir="${dist}"/>
<jar destfile="${dist}/${project}-src-${build.version}.jar"
basedir="${app.dir}"
includes="**/*.java"
/>
</target>
<target name="compile-war" depends="init">
<echo message="Compiling webapp" />
<javac srcdir="${webapp.dir}/WEB-INF/classes"
destdir="${war.build.dir}/WEB-INF/classes"
debug="on"
deprecation="off"
verbose="off"
optimize="on" >
<classpath refid="war.classpath" />
</javac>
</target>
<target name="war" depends="compile-war">
<filter token="buildVersion" value="${build.version}"/>
<copy todir="${war.build.dir}" filtering="true">
<fileset dir="${webapp.dir}" includes="**/*.jsp" />
</copy>
<copy todir="${war.build.dir}">
<fileset dir="${webapp.dir}" excludes="**/*.java,**/*.jsp"/>
</copy>
<copy todir="${war.build.dir}/WEB-INF">
<fileset dir="${config.dir}" includes="jboss-web.xml" />
</copy>
<war destfile="${build}/${war.file}"
webxml="${config.dir}/web.xml"
basedir="${war.build.dir}"
includes="**/*"/>
</target>
<!--
generate-jmx target
-->
<target name="generate-jmx" depends="init">
<!-- Generate the MBean interfaces and descriptions -->
<jmxdoclet destDir="${app.dir}"
excludedtags="@version,@author"
force="yes">
<fileset dir="${app.dir}">
<include name="**/*.java" />
</fileset>
<!-- Create the {0}MBean interface for the MBean -->
<mbeaninterface/>
</jmxdoclet>
</target>
<target name="javadoc">
<path id="javadoc.src.path">
<pathelement location="${webapp.dir}/WEB-INF/classes"/>
<pathelement location="${app.dir}"/>
</path>
<mkdir dir="${javadoc.dest}" />
<javadoc
sourcepathref="javadoc.src.path"
destdir="${javadoc.dest}"
stylesheetfile="${src}/config/javadoc.css"
packagenames="
net.voicelog.fileTransfer,
net.voicelog.fileTransfer.database,
net.voicelog.fileTransfer.fileSystem,
net.voicelog.fileTransfer.ftp,
net.voicelog.fileTransfer.session,
net.voicelog.jmx"
version="true"
protected="true"
author="true"
use="true"
doctitle="Audio Transfer Application version ${build.version}<br>API Specification"
windowtitle="Audio Transfer Application Version ${build.version}"
header="<b>Audio Transfer Application ${build.version}</b>"
bottom="Copyright 2004-2006 VoiceLog, LLC">
<link href="http://java.sun.com/j2se/1.5.0/docs/api"/>
<link href="http://java.sun.com/j2ee/1.4/docs/api"/>
<classpath refid="war.classpath"/>
</javadoc>
<copy todir="${javadoc.deploy.dir}">
<fileset dir="${javadoc.dest}"/>
</copy>
</target>
<target name="deploy" depends="war">
<copy file="${build}/${war.file}" todir="${jboss.deploy.dir}"/>
</target>
<target name="undeploy">
<delete file="${jboss.deploy.dir}/${war.file}"/>
</target>
<target name="scp">
<scp file="${dist}/${project}-${build.version}.tar" todir="jboss:[EMAIL PROTECTED]:ata/NEW/audioTransfer" />
</target>
<!--
production tag and build
-->
<target name="tag-build">
<!-- TODO: This doesn't work for production builds on branches -->
<!-- cvs rtag -r V2_2 V2_2_0_8 audioTransfer -->
<cvs command="rtag ${build.version} ${project}" />
</target>
<target name="production-build" depends="javadoc,disttar,tag-build,scp" />
</project>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user