I am using Ant 1.5. How can I get the ejbjar task to use a local DTD instead of the DTD referenced on the web?
I have tried using the <xmlcatalog> node but it doesn't seem to work. The ant documentation says you can use this node at the project level. Thanks in advance for your help! Here is my build.xml: <project name="borg-warner" default="ear" basedir="." > <xmlcatalog> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="etc/ejb-jar_2_0.dtd"/> </xmlcatalog> <property name="app.name" value="borg-warner" /> <property environment="env" /> <property name="catalina.home" value="${env.CATALINA_HOME}"/> <property name="servlet.jar" value=" ${catalina.home}/common/lib/servlet.jar"/> <property name="build.dir" value="build" /> <property name="war.dir" value="${basedir}/borg_warner_wars"/> <property name="ear.dir" value="${basedir}/borg_warner_ears"/> <property name="jar.dir" value="${basedir}/borg_warner_jars"/> <property name="descriptor.dir" value="${basedir}/descriptor"/> <property name="ear.dist" value="${ear.dir}/${app.name}.ear"/> <property name="utility.dist" value="${jar.dir}/Utility.jar"/> <property name="business.dist" value="${jar.dir}/Business.jar"/> <property name="db.dist" value="${jar.dir}/DB.jar"/> <property name="war.dist" value="${jar.dir}/borg-warner.war"/> <property name="ear.dist" value="${jar.dir}/borg-warner.ear"/> <!-- Setup directories required for remaining steps --> <target name="prepare"> <mkdir dir="${build.dir}"/> <copy todir="${build.dir}"> <fileset dir="src" /> </copy> <mkdir dir="${jar.dir}" /> <mkdir dir="${build.dir}/WEB-INF"/> <copy todir="${build.dir}/WEB-INF"> <fileset dir="etc" /> </copy> <mkdir dir="${build.dir}/WEB-INF/classes" /> <copy todir="${build.dir}/WEB-INF/classes"> <fileset dir="src" /> </copy> <mkdir dir="${build.dir}/WEB-INF/lib" /> <copy todir="${build.dir}/WEB-INF/lib"> <fileset dir="lib" /> </copy> </target> <!-- compiles all classes in src directory which have been changed --> <target name="compile" depends="prepare"> <javac srcdir="src" destdir="${build.dir}"> <classpath> <pathelement path="${servlet.jar}" /> <pathelement path="${build.dir}" /> <fileset dir="${basedir}/lib"> <include name="**/*.jar" /> </fileset> </classpath> </javac> </target> <!-- target name="war-prepare" depends="compile"> <copy todir="${build.dir}/WEB-INF/classes"> <fileset dir="${build.dir}" /> </copy> </target--> <!-- Create ejb jar files --> <target name="jar" depends="compile"> <ejbjar srcdir="build" descriptordir="descriptor" naming="ejb-name"> <include name="**/*ejb-jar*.xml"/> <exclude name="**/*jboss*.xml"/> <jboss destdir="${jar.dir}"/> </ejbjar> </target> <target name="utility" depends="jar"> <jar jarfile="${utility.dist}" basedir="${build.dir}" includes="com/canopyint/component/**" /> </target> <target name="business" depends="jar"> <jar jarfile="${business.dist}" basedir="${build.dir}" includes="com/canopyint/app/bw/business/**" /> </target> <target name="db" depends="jar"> <jar jarfile="${db.dist}" basedir="${build.dir}" includes="com/canopyint/app/bw/db/**" /> </target> <target name="war" depends="compile"> <jar jarfile="${war.dist}" basedir="${build.dir}" includes="com/canopyint/app/bw/servlet/**, WEB-INF/web.xml WEB-INF/lib/**" /> </target> <!--ear file containing application war and jar files --> <target name="ear" depends="prepare, compile, jar, utility, business, db, war"> <ear earfile="${ear.dist}" appxml="descriptor/application.xml"> <fileset dir="${basedir}" includes="${jar.dir}/*.jar"/> </ear> </target> <target name="clean"> <delete dir="${build.dir}"/> </target> </project> -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>