ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harnisch, Henner" <Henner.Harni...@dresdnerKB.com>
Subject Patch for WeblogicTOPLinkDeploymentTool.java (more than 1 TopLink Descriptor File in an EJB)
Date Mon, 19 Mar 2001 10:42:40 GMT
Hi,

in our project we are using more than 1 TopLink Deploment XML file for one
EJB-Jar-file.

Therefore I patched the WeblogicTOPLinkDeploymentTool class by adding the
<fileset...>
tag, which allows to include any further deployment-descriptor as an
altervative to the
original <toplinkdescriptor> tag.

Here is the source-code of the patched java-file:
 <<WeblogicTOPLinkDeploymentTool.java>> 

... and here is an example, how to use it:

  <target name="ejb_app_constant" 
            description="Create the module (JAR-File) app_constant"
            depends="compile_app_constant" >  
  	<property name="ejb.jarname" 	value="app_constant" />
  	<echo message="   Generating the EJB-Beans for module:
${ejb.jarname}"   />
	<ejbjar
descriptordir="${limes.path.source}/dreba/prj/limes/app/constant/Meta-inf" 
	        srcdir="${limes.path.classes}" 
	        destdir="${limes.path.classes}" >
	   <weblogictoplink destdir="${limes.path.classes}">
		            <fileset
dir="${limes.path.source}/dreba/prj/limes/app/constant/Meta-inf">
		            	<include name="toplink-cmp-*.xml" />
		            </fileset>   
	   </weblogictoplink>	
	   <include name="**/${ejb.jarname}-ejb-jar.xml" />
	   <exclude name="**/${ejb.jarname}-weblogic-ejb-jar.xml" />
	</ejbjar>	
  </target>

It would be nice, if the next ant version 1.4 could include such a tag....

Best regards
Henner Harnisch








If you have received this e-mail in error or wish to read our e-mail disclaimer statement
and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.
Mime
View raw message