tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Stampoultzis <gst...@iinet.net.au>
Subject RE: DO NOT REPLY [Bug 21871] - junit.jar needed to build junit subproject, but not included or mentioned anywhere
Date Mon, 01 Dec 2003 08:22:16 GMT
At 11:34 AM 30/11/2003, you wrote:

> >
> > Are you using ant at the moment?  Why not just use the "get" task to
> > download any external files you need?  We do this with the POI build.
> >
> > -- Glen
>
>I've been thinking about that myself for a while; I believe there's also 
>an add-on Ant library that
>parallels or emulates Maven's approach to downloading (i.e., less verbose 
>and with a consistency
>check). So we could leverage Maven's ibiblio infrastructure without 
>actually using Maven.
>
>Howard

First I check if the jars are available:


     <target name="check-jars">
         <condition property="jars.present">
             <or>
                 <and>
                     <available file="${main.jar1.dir}"/>
                     <available file="${main.jar2.dir}"/>
                     <available file="${contrib.jar1.dir}"/>
                     <available file="${contrib.jar2.dir}"/>
                     <available file="${contrib.jar3.dir}"/>
                     <available file="${junit.jar1.dir}"/>
                 </and>
                 <isset property="disconnected"/>
             </or>
         </condition>
     </target>

then I fetch them if present:


     <target name="fetch-jars" unless="jars.present"
      description="Fetches needed JAR files from the Internet">
         <get src="${main.jar1.url}" dest="${main.jar1.dir}"/>
         <get src="${main.jar2.url}" dest="${main.jar2.dir}"/>
         <get src="${contrib.jar1.url}" dest="${contrib.jar1.dir}"/>
         <get src="${contrib.jar2.url}" dest="${contrib.jar2.dir}"/>
         <get src="${contrib.jar3.url}" dest="${contrib.jar3.dir}"/>
         <get src="${junit.jar1.url}" dest="${junit.jar1.dir}"/>
     </target>


I've stopped short of getting the ant jar files but this should be possible 
also.  Ant needs a better mechanism for auto installing jars.

Is the add-on library you're talking about 
ruper?  http://www.krysalis.org/ruper/






Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/

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