ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: EAR files
Date Mon, 13 Sep 2004 05:45:22 GMT
Why dont you specify the "earfile" attribute as you need?

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Anthony Bisong [mailto:abisong@yahoo.com]
> Gesendet am: Samstag, 11. September 2004 18:18
> An: Ant Users List; Travis Quarterman
> Betreff: Re: EAR files
> 
> Use the following tasks:
>  
> 1. "Mkdir" task to make your new directory
> 2. "Move" task to move the ear file to the new directory you 
> just created.
> 
> 
> 
> --- Travis Quarterman <travisq@gmail.com> wrote:
> 
> > Hi,
> > 
> > I am wanting to create an EAR with the following:
> > 
> > <!-- **************** JAR *********************************** -->
> > 
> >  <!--
> >  ***   jar up web application to a .war file
> >  -->
> >  <target name="jar">
> >     <jar jarfile="${build}.war" basedir="${builddir}" update="yes">
> >     </jar>
> >  </target>
> > 
> > <!-- *********************** CREATE EAR FILE ***************** -->
> > 
> >  <!--
> >  *** create ear file for weblogic deployment
> >  -->
> >  <target name="ear">
> >    <ear earfile="${build}/${build}.ear" 
> appxml="${meta}/application.xml">
> >      <fileset dir="${base}">
> >         <include name="*.war"/>
> >         <include name="${meta}/weblogic-application.xml"/>
> >      </fileset>
> >    </ear>
> >    <delete file="${build}/${build}.war"/>
> >  </target>
> > 
> > The output:
> > Buildfile: 1
> > 
> > clean:
> >   [delete] Deleting: /usr/local/build_apps/blah.ear
> > 
> > jar:
> >      [jar] Building jar: /usr/local/build_apps/blah.war
> > 
> > ear:
> >      [ear] Building ear: /usr/local/build_apps/blah.ear
> >   [delete] Deleting: /usr/local/build_apps/blah.war
> > 
> > all:
> > 
> > BUILD SUCCESSFUL
> > Total time: 6 seconds
> > 
> > I am wanting the EAR placed in 
> /usr/local/build_apps/somedir/blah.ear,
> > what must a change? Basically, I am needing to inside "blah"
> > subdirectory.
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> 
> 
> =====
> Anthony Bisong
> CELL: 770-827-5941
> abisong@yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message