ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Modha Kumar <>
Subject putting multiple ejb in a jar
Date Fri, 21 Feb 2003 00:51:19 GMT
I have a couple of session ejb's.

when i had only one i used to use this to generate jar

<target name="ejb-jar" depends="compile">
        <delete dir="${build.fnol.dir}/META-INF"/>
        <mkdir dir="${build.fnol.dir}/META-INF"/>
        <copy file="${src.dir}/com/a/b/server/ejb-jar.xml"
todir="${build.fnol.dir}/META-INF" />
        <copy file="${src.dir}/com/a/b/server/jboss.xml"
todir="${build.fnol.dir}/META-INF" />
        <jar jarfile="${build.fnol.dir}/commandserver.jar">
            <fileset dir="${build.classes.dir}">
			 <include name="com/a/b/server/CommandServer.class"
name="com/a/b/server/CommandServerBean.class" />
name="com/a/b/server/CommandServerHome.class" />
name="com/a/b/exceptions/CommandException.class" />
			 <include name="com/a/b/commandbeans/Command.class"
name="com/a/b/commandbeans/SearchPoliciesCommand.class" />
            <fileset dir="${build.fnol.dir}">
                <include name="META-INF/ejb-jar.xml" />
                <include name="META-INF/jboss.xml" />

now i need to put 2 ejb's and this number will grow
how do i manage build file
1. Do i create a new target for each session bean and create a new jar
2. Is there a better way.

If you can please point me to any documentation that will be good too. 

View raw message