I have been using the same thing. The only downside is the download 
time, but, IMO it would be great to have this included and encouraged 
for use with the Tomcat 5 build file.

Way to go Bob!

Jayson Falkner
[EMAIL PROTECTED]

Bob Herrmann wrote:
> Yea, I liked your script, this one builds Tomcat 5.
> 
> BUILDING.TXT could almost just say "All you need is JDK1.4 and Ant1.5
> then just type 'ant' and a working Tomcat 5 development tree is built.
> (If you are behind a firewall, you may need to adjust proxy settings.)"
> 
> This should be cross platform (haven't tested it on Win32.)
> 
> Cheers,
> -bob
> 
> <project name="CVS Retrieval" default="populate">
> 
>         <property file="build.properties"/>
> 
>         <property name="apache.dir" value="${user.home}/TC5"/>
>         <property name="base.path" value="${apache.dir}/download"/>
> 
>         <property name="cvsroot"
>                value=":pserver:[EMAIL PROTECTED]:/home/cvspublic"/>
> 
>         <target name="populate" depends="init,checkout,buildit" />
> 
>         <target name="init">
>                 <tstamp/>
>                 <mkdir dir="${apache.dir}"/> 
>                 <mkdir dir="${base.path}"/> 
>         </target>
> 
>         <target name="checkout" depends="init">
> 
>                 <cvs package="jakarta-servletapi-5"
>                         cvsRoot="${cvsroot}"
>                         dest="${apache.dir}"
>                 />
>                 <cvs package="jakarta-tomcat-catalina"
>                         cvsRoot="${cvsroot}"
>                         dest="${apache.dir}"
>                 />
>                 <cvs package="jakarta-tomcat-5"
>                         cvsRoot="${cvsroot}"
>                         dest="${apache.dir}"
>                 />
>                 <cvs package="jakarta-tomcat-connectors"
>                         cvsRoot="${cvsroot}"
>                         dest="${apache.dir}"
>                 />
>                 <cvs package="jakarta-tomcat-jasper"
>                         cvsRoot="${cvsroot}"
>                         dest="${apache.dir}"
>                 />
>                 <cvs package="jakarta-tomcat-5"
>                         cvsRoot="${cvsroot}"
>                         dest="${apache.dir}"
>                 />
> 
>         </target>
> 
>         <target name="buildit" depends="init">
> 
>                 <echo message="Commons-logging build dies without this"
>                      file="${base.path}/LICENSE" />
> 
>                 <ant dir="${apache.dir}/jakarta-tomcat-5"
>                      target="download" />
> 
>                 <ant dir="${apache.dir}/jakarta-tomcat-5"
>                      target="dist" />
>         </target>
> 
> </project>
>       
> 
> On Tue, 2002-08-06 at 13:43, Ian Darwin wrote:
> 
>>On August 6, 2002 01:01 pm, you wrote:
>>
>>>The main thing missing is a target which sets up the CVS repositories,
>>>so it's quite close to what we have now. Problem is, I'm not too happy
>>>at the idea of doing that automatically.
>>
>>Trivial to do with Ant, but I agree, it's risky to automate this. OTOH if
>>it's well documented what it's doing, people should be OK with it.
>>
>>Ian
>>
>><project name="CVS Retrieval" default="populate">
>>
>>      <!-- $Id: build.xml,v 1.1 2002/06/11 15:35:57 ian Exp $ -->
>>
>>      <!-- Maybe find a better way of setting this -->
>>      <property name="apache.dir" value="${user.home}/src/apache"/>
>>      <property name="cvs.root"
>>              value=":pserver:[EMAIL PROTECTED]:/home/cvspublic"/>
>>
>>      <target name="init">
>>              <tstamp/>
>>              <mkdir dir="${apache.dir}"/> 
>>      </target>
>>
>>      <target name="populate" depends="init">
>>
>>              <cvs package="jakarta-tomcat-4.0"
>>                      cvsRoot="${cvs.root}"
>>                      dest="${apache.dir}"
>>              />
>>              <cvs package="jakarta-tomcat-connectors"
>>                      cvsRoot="${cvs.root}"
>>                      dest="${apache.dir}"
>>              />
>>              <cvs package="jakarta-tomcat-jasper"
>>                      cvsRoot="${cvs.root}"
>>                      dest="${apache.dir}"
>>              />
>>      </target>
>></project>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to