You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dean Holdren <dh...@timecruiser.com> on 2000/11/17 17:50:30 UTC

ddcreator/ejbc and "args attribute deprecated"

Hello,
When I use the format for the ddcreator and ejbc tasks as described in the
EJB/ANT documentation, I get the following warnings (it still works ok):

[java] The args attribute is deprecated. Please use nested arg elements.

for example, this is my ddcreator task:
  
  <ddcreator descriptors="${src}/${dd.dir}" dest="${src}/${dd.dir}"
classpath="${classpath}">
    <include name="*DD.txt" />
  </ddcreator>


How should I change this so it does not produce this warning?

Dean Holdren
Timecruiser Computing Corp.
(973)244-7856 x154 
Business: dholdren@timecruiser.com
Personal: DeanHoldren@netzero.net


RE: ddcreator/ejbc and "args attribute deprecated"

Posted by Dean Holdren <dh...@timecruiser.com>.
PROBLEM--> Using ejbc, the generated manifest file does not put the proper
path in front of the .ser file, it puts no path info, since the manifest and
.ser file are in the same directory.  But after I jar this stuff up, the
manifest file needs to reference the .ser file as Junk/deployment/JunkDD.ser
since that is the .ser's location in the jar file
What should I do?

Here is the background:

Lets say I have a bean located in the Junk dir under a root which has the
build.xml
the bean's directory consists of 3 directories, deployment, interfaces, and
server.

The deployment dir contains:    	JunkDD.txt (deployment descriptor)
The interfaces dir contains: 	Junk.java
			   	JunkHome.java
				JunkPK.java
The server dir contains:		JunkBean.java

currently, after compiling all classes (from ant), I do the following:
  
  <ddcreator descriptors="${src}${dd.dir}" dest="${src}${dd.dir}"
classpath="${classpath}">
    <include name="*DD.txt" />
  </ddcreator>

Where  ${src} = "./Junk"
	${dd.dir}="/deployment"

It does what I want it to, namely, put the generated .ser file in the same
dir as the .txt.  
Then I do this:
  <ejbc descriptors="${src}${dd.dir}" src="${src}" dest="${build}"
manifest="${src}${dd.dir}/manifest" classpath="${classpath}">
    <include name="*DD.ser" />
  </ejbc>

Where ${build} = "." (I want the .class files in the same dirs as the
source)

now, this works fine also, it places the ejbc-generated files in the server
dir where I want them, and places the manifest file into ./Junk/deployment/.


>  -----Original Message-----
> From: 	Dean Holdren [mailto:dholdren@timecruiser.com] 
> Sent:	Friday, November 17, 2000 11:51 AM
> To:	ant-user@jakarta.apache.org
> Subject:	ddcreator/ejbc and "args attribute deprecated"
> 
> Hello,
> When I use the format for the ddcreator and ejbc tasks as described in the
> EJB/ANT documentation, I get the following warnings (it still works ok):
> 
> [java] The args attribute is deprecated. Please use nested arg elements.
> 
> for example, this is my ddcreator task:
>   
>   <ddcreator descriptors="${src}/${dd.dir}" dest="${src}/${dd.dir}"
> classpath="${classpath}">
>     <include name="*DD.txt" />
>   </ddcreator>
> 
> 
> How should I change this so it does not produce this warning?
> 
> Dean Holdren
> Timecruiser Computing Corp.
> (973)244-7856 x154 
> Business: dholdren@timecruiser.com
> Personal: DeanHoldren@netzero.net
>