you can use the ear task to accomplish this objective
you will need to specify the
input (as seen here) with fileset
destfile (the .ear)
appxml
    <ear destfile="${build.dir}/myapp.ear" 
appxml="${src.dir}/metadata/application.xml">
      <fileset dir="${build.dir}" includes="*.jar,*.war"/>
    </ear>
http://ant.apache.org/manual/CoreTasks/ear.html

Martin Gainty 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Sun, 5 Oct 2008 10:52:39 -0700
> From: [EMAIL PROTECTED]
> To: user@ant.apache.org
> Subject: about the ear task
> 
> 
> Hello, sorry for my bad english.
> 
> Apparently, when I create an ear with the <ear> task, I have to specify the
> location of application.xml. But in reality, an enterprise application
> doesn't really need this file, and personally, I don't use it (try to do an
> j2ee project with eclipse or netbeans)
> So sure, I can't specify its path!
> What could I do? (maybe use the "jar" task, no?, is there a better
> solution).
> 
> Thanks in advance.
> -- 
> View this message in context: 
> http://www.nabble.com/about-the-ear-task-tp19827268p19827268.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Reply via email to