ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EXT / FOCAL MALAPRADE Roland <ext.focal.malapr...@sncf.fr>
Subject RE: ant install
Date Wed, 15 Jan 2003 14:55:23 GMT
Hi,

Supposing you created your own buildfile "install", and you install by
copying the files to your Tomcat folder:

Instead of copying your project folder (the one which contains your
"src","build",etc. folders), copy everything in your build folder. So the
FileSet which defines the files you copy should not be rooted at your
project base folder, but rather at the "build" folder.

For ex, supposing ${projectbase} contains your project folder and
${tomcatfolder} contains your tomcat installation:

instead of:

<copy todir="${tomcatfolder}/webapps">
  <fileset dir="${projectbase}">
    <include name="**/*.class"/>
  </fileset>
</copy>

use:

<copy todir="${tomcatfolder}/webapps">
  <fileset dir="${projectbase}/build">
    <include name="**/*.class"/>
  </fileset>
</copy>


Hope this helps.
Roland.


> -----Message d'origine-----
> De : Donglu Xie [mailto:dxie@aecom.yu.edu]
> Envoye : mercredi 15 janvier 2003 15:44
> A : ant-user@jakarta.apache.org
> Objet : ant install
> 
> 
> I use Ant 1.5.1 in Tomcat 4.1.Tomcat server is starting up. 
> Then I use "ant 
> install" to set up my application which is organized 
> hierarchy. Everything 
> goes well except that ant create a new fold name "build" 
> which contains all 
> the compiled classes instead of putting those files into 
> "web/WEB-INF".  So, when I try to call the servlet, the 
> server complains 
> that the classes cannot be found.
> 
> Any help are appreciated.
> -------------------------------------------------------------
>   Donglu Xie
>   Programmer, Data Analyst, Webmaster
>   Biotechnology Center of AECOM
>   http://biotech.aecom.yu.edu
>   Tel: (718) 405-8380
>   Email: dxie@aecom.yu.edu
> --------------------------------------------------------------
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message