ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-ant/webpage build.xml
Date Tue, 06 Feb 2001 00:37:10 GMT
nico        01/02/05 16:37:10

  Modified:    webpage  build.xml
  Log:
  Since velocity.properties has a hardcoded path to ../../jakarta-site2 why not
  include all the jars jakarta-site2 provides, so that AnakiaTask should always be
  available?
  
  Revision  Changes    Path
  1.2       +13 -2     jakarta-ant/webpage/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/webpage/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	2001/02/05 12:28:52	1.1
  +++ build.xml	2001/02/06 00:37:10	1.2
  @@ -5,9 +5,17 @@
       <property name="docs.src" value="./xdocs"/>
       <property name="docs.dest" value="./docs"/>
   
  +    <path id="anakia.classpath">
  +        <fileset dir="../../jakarta-site2/lib">
  +            <include name="*.jar"/>
  +        </fileset>
  +    </path>
  +
       <target name="prepare">    
           <available classname="org.apache.velocity.anakia.AnakiaTask" 
  -            property="AnakiaTask.present"/>
  +                   property="AnakiaTask.present">
  +            <classpath refid="anakia.classpath"/>
  +        </available>
       </target>
   
       <target depends="prepare" name="prepare-error" unless="AnakiaTask.present">
  @@ -18,7 +26,10 @@
       </target>
   
       <target name="docs" depends="prepare-error" if="AnakiaTask.present">
  -        <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask"/>
  +        <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
  +            <classpath refid="anakia.classpath"/>
  +        </taskdef>
  +        
           <anakia basedir="${docs.src}" destdir="${docs.dest}/"
                extension=".html" style="./site.vsl"
                projectFile="stylesheets/project.xml"
  
  
  

Mime
View raw message