avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: jakarta-avalon-excalibur depchecker.xml
Date Sun, 23 Jun 2002 04:13:06 GMT
jefft       2002/06/22 21:13:05

  Modified:    .        depchecker.xml
  Log:
  Add support for automatically assembling a directory of required jars for a
  project, and/or a file listing them.
  
  Revision  Changes    Path
  1.29      +13 -2     jakarta-avalon-excalibur/depchecker.xml
  
  Index: depchecker.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/depchecker.xml,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- depchecker.xml	11 May 2002 09:43:07 -0000	1.28
  +++ depchecker.xml	23 Jun 2002 04:13:05 -0000	1.29
  @@ -508,7 +508,7 @@
       <!-- Call to ensure a file (usu. jar) is present. If not,   -->
       <!-- either build it (if local), or print an error (remote) -->
       <!-- ====================================================== -->
  -    <target name="checkRequiredFile" depends="checkIfLocal, checkRequiredFileLocal,
checkRequiredFileRemote"/>
  +    <target name="checkRequiredFile" depends="checkIfLocal, checkRequiredFileLocal,
checkRequiredFileRemote, listRequiredFile, copyRequiredFile"/>
   
       <target name="checkIfLocal" if="proj.home">
           <available type="dir" file="${proj.home}" property="local"/>
  @@ -536,6 +536,17 @@
           <antcall target="checkRequiredFile.fail"/>
       </target>
   
  +    <!-- Record the required jar file's path in a file, ${jarlist} -->
  +    <target name="listRequiredFile" if="jarlist">
  +        <echo file="${jarlist}" append="true">${path}${nl}</echo>
  +    </target>
  +
  +    <!-- Copy the required file to a directory, ${jardir} -->
  +    <target name="copyRequiredFile" if="jardir">
  +        <mkdir dir="${jardir}"/>
  +        <copy file="${path}" todir="${jardir}"/>
  +    </target>
  + 
       <!-- =================================================================== -->
       <!-- Script called to recursively call another depencency.xml file in    -->
       <!-- another project, and then run the 'dist.lite' target.               -->
  
  
  

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


Mime
View raw message