Results 1 to 1 of 1
- 03-27-2012, 11:27 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 1
- Rep Power
- 0
How to reference XMLCatalog from a custom task in a build.xml
Hi,
I have defined an XMLCatalog as below in my build.xml file. I have a custom task 'EJB_build' to build all the EJB files. How do I reference the xmlCatalog from the EJB_Build task ? Thanks.
<xmlcatalog id="commonDTDs">
<dtd
publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
location="ejb-jar_1_1.dtd"/>
<dtd
publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
location="ejb-jar_2_0.dtd"/>
<dtd
publicId="-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN"
location="weblogic-ejb-jar.dtd"/>
</xmlcatalog
//Custom task 'EJB_build' to build all the EJB files
<taskdef name="EJB_build" classname="CustomTask" >
-------
</taskdef >
<javac debug="${debug.fl}" srcdir="${ejb_source_dir};" destdir="${output.dir}/tmp" failonerror="true">
-----------
</javac>
<name="EJB_build" srcRootDir="${source_dir}"
packagePrefix=""
buildDir="${output_dir}"
jarDistDir="${dest_dir}"
beanDeployDir="${deploy_dir}"
weblogicHome="${wl.home}"
makeJar = "yes" />
</target>
Similar Threads
-
Build Vs Clean Build
By kroy in forum EclipseReplies: 0Last Post: 01-16-2012, 05:59 PM -
Public API for Custom XML Parts & Custom Parts, Graphics Rendering
By sherazam in forum Java SoftwareReplies: 0Last Post: 09-12-2011, 01:06 PM -
task
By boys21 in forum Advanced JavaReplies: 6Last Post: 05-28-2010, 01:59 PM -
Help with a task.
By checho in forum New To JavaReplies: 5Last Post: 01-14-2010, 11:29 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks