ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Stockall <je...@cryptocard.com>
Subject Re: MDB, Ant 1.4.1, and <ejbjar>
Date Thu, 09 May 2002 20:43:01 GMT
On Thu, 2002-05-09 at 14:20, Andrew C. Oliver wrote:
> Why that would be excellent.  I got it working but I HATE what I did.
> 
> Thank you very much,
> 
>
This works for me (it also builds Weblogic & Websphere, but I removed
them from this example)

<target name="ejb-jar" depends="ejb-prep" description="Build the EJB's">
			
	<mkdir dir="${build}/lib/Borland"/>
		        
	<ejbjar srcdir="${build}/ejb"
		basejarname="CAServer"
		descriptordir="${descriptors}/${ant.project.name}">
			
		<include name="**/ejb-jar.xml"/>
		<support dir="${build}/ejb"/>
			
		<borland destdir="${build}/lib/Borland" 
			verify="on" 
			generateclient="true" 
			debug="false"
			suffix=".jar">
							
			<classpath refid="borland.class.path"/>
			<classpath location="${build}/ejb"/>
		</borland>
			
		<dtd 	publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
			location="${dtd}/ejb-jar_1_1.dtd"/>
		<dtd 	publicId="-//Inprise Corporation//DTD Enterprise JavaBeans
1.1//EN"
				location="${dtd}/ejb-inprise.dtd"/>	
			
	</ejbjar>
</target>

The deployment descriptors are named ejb-jar.xml & ejb-inprise.xml

Hope this helps, let me know if you have any questions.

-- 
 Jesse Stockall			|	Tel: 1+ 613.599.2441 ext. 243
 CRYPTOCard Corporation		|	Fax: 1+ 613.599.2442	 	
 Suite 304, 300 March Rd.	|	email: jesse@cryptocard.com
 Ottawa, ON, Canada K2K 2E2	|	web: www.cryptocard.com 
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message