You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sachin Shah <Sa...@kaleconsultants.com> on 2001/10/22 06:42:56 UTC

Building EJB JARs.

Hi,

	I have this problem. I want to build the EJB Jar for weblogic and
infact i was able to build the same individually. What i want is the way to
automise the same. The scenario is like below. We are using PVCS for version
control. All the xml files are checked in, after zipping them in to a file.
Out of these files some of them are in the same directory and the name of
the xml files are as original i.e ejb-jar.xml etc. So it would be like
folow.

\dir1
  |___	abc.zip
	xyz.zip

Both abc.zip and xyz.zip contains ejc-jar.xml and weblogic-ejb-jar.xml and
the name of the xml files are not in the form as required by ANT. I want to
generate the EJB Jar for all the files which are in a particular directory.
For this i will also have to rename the file as required by ant.
abc-ejb-jar.xml and abc-weblogic-ejb-jar.xml. Any idea how can i achive
this. 

Please mark a cc to this id since i m a x ant-user forum member. 

Thanks in advance.


Re: Building EJB JARs.

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Sachin Shah wrote:

> Hi,
> 
> 	I have this problem. I want to build the EJB Jar for weblogic and
> infact i was able to build the same individually. What i want is the way to
> automise the same. The scenario is like below. We are using PVCS for version
> control. All the xml files are checked in, after zipping them in to a file.
> Out of these files some of them are in the same directory and the name of
> the xml files are as original i.e ejb-jar.xml etc. So it would be like
> folow.
> 
> \dir1
>   |___	abc.zip
> 	xyz.zip
> 
> Both abc.zip and xyz.zip contains ejc-jar.xml and weblogic-ejb-jar.xml and
> the name of the xml files are not in the form as required by ANT. I want to
> generate the EJB Jar for all the files which are in a particular directory.
> For this i will also have to rename the file as required by ant.
> abc-ejb-jar.xml and abc-weblogic-ejb-jar.xml. Any idea how can i achive
> this. 
> 



You will need to unzip since <ejbjar> needs to find the descriptors. You are not required to rename the descriptors. Please refer to the naming convention section of the <ejbjar> doco here

http://jakarta.apache.org/ant/manual/OptionalTasks/ejb.html#ejbjar

The naming attribute is new to Ant 1.4

Conor