ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Modha Kumar <MKu...@calcas.com>
Subject putting multiple ejb in a jar
Date Fri, 21 Feb 2003 00:51:19 GMT
Hi
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"
/>
		       <include
name="com/a/b/server/CommandServerBean.class" />
		       <include
name="com/a/b/server/CommandServerHome.class" />
			 <include
name="com/a/b/exceptions/CommandException.class" />
			 <include name="com/a/b/commandbeans/Command.class"
/>
			 <include
name="com/a/b/commandbeans/SearchPoliciesCommand.class" />
            </fileset>
            <fileset dir="${build.fnol.dir}">
                <include name="META-INF/ejb-jar.xml" />
                <include name="META-INF/jboss.xml" />
            </fileset>
        </jar>
    </target>

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. 
Thanks


Mime
View raw message