tetsuya     2003/10/26 01:55:33

  Modified:    .        build.xml
  Log:
  "Ant Replace" (only copy the built files to targets/ dir)
  
  Revision  Changes    Path
  1.6       +20 -0     ws-site/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ws-site/build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.xml 11 Oct 2003 16:57:20 -0000      1.5
  +++ build.xml 26 Oct 2003 09:55:33 -0000      1.6
  @@ -29,4 +29,24 @@
             description="clean up the build area">
       <delete dir="./build"/>
     </target>
  +
  +  <target name="replace">
  +    <copy todir="./targets">
  +      <fileset dir="./build/site"/>
  +    </copy>
  +    <replace file="./targets/mirrors.html" token="gz.html" value="gz"/>
  +    <replace file="./targets/mirrors.html" token="zip.html" value="zip"/>
  +    <replace file="./targets/mirrors.html" token="tgz.html" value="tgz"/>
  +    <replace file="./targets/mirrors.html" token="tgz.html" value="tgz"/>
  +    <replace dir="./targets" value="mirrors.cgi">
  +      <include name="**/*.html"/>
  +      <replacetoken>mirrors.html</replacetoken>
  +    </replace>
  +    <replace dir="./targets" value="&lt;div 
class=&quot;menuBar&quot;&gt;&lt;!--================= Start Menu Items (fixed 
apachecon icon) ==================--&gt;&lt;A 
HREF=&quot;http://apachecon.com/2003/US/index.html&quot;&gt;&lt;img 
border=&quot;0&quot; 
src=&quot;http://jakarta.apache.org/images/logos/ac2003-150.gif&quot;/&gt;&lt;/A&gt;";>
  +      <include name="**/*.html"/>
  +      <replacetoken>&lt;div class=&quot;menuBar&quot;&gt;</replacetoken>
  +    </replace>
  +    <delete dir="./targets/[preferred]"/>
  +  </target>
  +
   </project>
  
  
  

Reply via email to