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, 14 Apr 2002 00:46:31 GMT
jefft       02/04/13 17:46:31

  Modified:    .        depchecker.xml
  Log:
  Add BSF check, and improve help
  
  Revision  Changes    Path
  1.14      +36 -6     jakarta-avalon-excalibur/depchecker.xml
  
  Index: depchecker.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/depchecker.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- depchecker.xml	13 Apr 2002 05:50:14 -0000	1.13
  +++ depchecker.xml	14 Apr 2002 00:46:31 -0000	1.14
  @@ -32,10 +32,26 @@
               This is Excalibur's dependency updater script.
               Which has been called incorrectly :)
   
  -            To use it, you must call the checkRequiredFile or
  -            checkRequiredClass targets from your Ant script.
  +            To use it, you can call one of the predefined dependency scripts
  +            from your Ant script. For example:
   
  -            For example:
  +            <ant antfile="${depchecker.prefix}/depchecker.xml" target="checkJUnit"/>
  +
  +
  +            Alternatively, you can call the checkRequiredFile or
  +            checkRequiredClass targets directly from your Ant script.
  +
  +            Example 1:
  +
  +            <ant antfile="${depchecker.prefix}/depchecker.xml" target="checkRequiredFile">
  +                <property name="name" value="xalan.jar"/>
  +                <property name="path" value="${xalan.jar}"/>
  +            </ant>
  +
  +            That will check if the file pointed to by $${xalan.jar} is present,
  +            and fail with a warning message if it isn't.
  +  
  +            Example 2: 
   
               <ant antfile="depchecker.xml" target="checkRequiredFile">
                   <property name="name" value="excalibur-concurrent.jar"/>
  @@ -48,7 +64,7 @@
               if it doesn't, build the $${proj.home} project in order to generate
               the jar
   
  -            or:
  +            Example 3: 
   
               <ant antfile="depchecker.xml" target="checkRequiredFile">
                   <property name="name" value="commons-io.jar"/>
  @@ -59,7 +75,7 @@
               That will check if $${lib.repo}/commons-io.jar exists, and if not,
               download it from $${url}
   
  -            or:
  +            Example 4:
   
               <property name="cp" refid="project.class.path"/>
               <ant antfile="${depchecker.prefix}/depchecker.xml" target="checkRequiredClass">
  @@ -160,6 +176,18 @@
   
           </ant>
       </target>
  +    <target name="checkBSF">
  +        <ant antfile="${depchecker.prefix}/depchecker.xml" target="checkRequiredClass">
  +            <property name="name" value="bsf.jar"/>
  +            <property name="class" value="com.ibm.bsf.util.BSFEngineImpl"/>
  +            <property name="classpath" value="${cp}"/>
  +            <property name="remedy" value="Download the BSF from ${nl}
  +           | http://oss.software.ibm.com/developerworks/projects/bsf ${nl}
  +           |   and copy bsf.jar to ${ant.home}/lib"/>
  +        </ant>
  +    </target>
  +
  +
       <target name="checkCore">
           <ant antfile="${depchecker.prefix}/depchecker.xml" target="checkRequiredFile">
               <property name="name" value="excalibur-core.jar"/>
  @@ -276,13 +304,15 @@
               <property name="path" value="${excalibur-testcase.jar}"/>
               <property name="proj.home" value="${basedir}/../testcase"/>
       </ant>
  -    </target><target name="checkThreadcontext">
  +    </target>
  +    <target name="checkThreadcontext">
           <ant antfile="${depchecker.prefix}/depchecker.xml" target="checkRequiredFile">
               <property name="name" value="excalibur-threadcontext.jar"/>
               <property name="path" value="${excalibur-threadcontext.jar}"/>
               <property name="proj.home" value="${basedir}/../threadcontext"/>
           </ant>
       </target>
  +
       <!-- ====================================================== -->
       <!-- Call to ensure a class is present in the classpath     -->
       <!-- ====================================================== -->
  
  
  

--
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