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="<div class="menuBar"><!--================= Start Menu Items (fixed apachecon icon) ==================--><A HREF="http://apachecon.com/2003/US/index.html"><img border="0" src="http://jakarta.apache.org/images/logos/ac2003-150.gif"/></A>"> + <include name="**/*.html"/> + <replacetoken><div class="menuBar"></replacetoken> + </replace> + <delete dir="./targets/[preferred]"/> + </target> + </project>