ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Klop <ronald-mailingl...@base.nl>
Subject Re: putting multiple ejb in a jar
Date Fri, 21 Feb 2003 10:43:55 GMT
Hello,

With the task antcall you can reuse a target with different parameters.

Greetings,

Ronald.

On Thu, 20 Feb 2003 17:51:19 -0700
Modha Kumar <MKumar@calcas.com> wrote:

> 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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
View raw message