You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sc...@apache.org on 2005/05/13 01:02:15 UTC
svn commit: r169906 - /myfaces/trunk/build/bootstrap.xml
Author: schof
Date: Thu May 12 16:02:14 2005
New Revision: 169906
URL: http://svn.apache.org/viewcvs?rev=169906&view=rev
Log:
significant progress in automating the build of the website (including javadocs.)
Modified:
myfaces/trunk/build/bootstrap.xml
Modified: myfaces/trunk/build/bootstrap.xml
URL: http://svn.apache.org/viewcvs/myfaces/trunk/build/bootstrap.xml?rev=169906&r1=169905&r2=169906&view=diff
==============================================================================
--- myfaces/trunk/build/bootstrap.xml (original)
+++ myfaces/trunk/build/bootstrap.xml Thu May 12 16:02:14 2005
@@ -10,11 +10,13 @@
<taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.ssh.Scp"/>
<taskdef name="sshexec" classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec"/>
+ <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask"/>
+<!--
<taskdef name="svn-checkout" classname="com.alternatecomputing.jsvn.ant.SvnCheckout"/>
<taskdef name="svn-update" classname="com.alternatecomputing.jsvn.ant.SvnUpdate"/>
<taskdef name="svn-commit" classname="com.alternatecomputing.jsvn.ant.SvnCommit"/>
<taskdef name="svn-add" classname="com.alternatecomputing.jsvn.ant.SvnAdd"/>
-
+-->
<!-- use properties file to determine cvs configuration info -->
<property file="bootstrap.properties"/>
<property file="bootstrap.properties.local"/>
@@ -64,19 +66,27 @@
</target>
<target name="svn-checkout-code" depends="prepare" unless="code.already.checked.out">
- <svn-checkout repositoryUrl="${svn.repository}/${code.project.name}" destination="${code.checkout.dir}"/>
+ <svn>
+ <checkout url="${svn.repository}/${code.project.name}" destPath="${code.checkout.dir}"/>
+ </svn>
</target>
<target name="svn-update-code" depends="prepare" if="code.already.checked.out">
- <svn-update repositoryUrl="${svn.repository}/${code.project.name}" target="${code.checkout.dir}"/>
+ <svn>
+ <update dir="${code.checkout.dir}"/>
+ </svn>
</target>
<target name="svn-checkout-site" depends="prepare" unless="site.already.checked.out">
- <svn-checkout repositoryUrl="${svn.repository}/${site.project.name}" destination="${site.checkout.dir}"/>
+ <svn>
+ <checkout url="${svn.repository}/${site.project.name}" destPath="${site.checkout.dir}"/>
+ </svn>
</target>
<target name="svn-update-site" depends="prepare" if="site.already.checked.out">
- <svn-update repositoryUrl="${svn.repository}/${site.project.name}" target="${site.checkout.dir}"/>
+ <svn>
+ <update dir="${site.checkout.dir}"/>
+ </svn>
</target>
<target name="nightly" depends="svn-checkout-code,svn-update-code">
@@ -122,16 +132,29 @@
</target>
- <target name="publish-site"><!-- depends="svn-checkout-code,svn-update-code,svn-checkout-site,svn-update-site">-->
-
+ <target name="publish-site" depends="svn-checkout-code,svn-update-code,svn-checkout-site,svn-update-site">
+
<property name="site.build.dir" value="${basedir}/${site.checkout.dir}"/>
<property name="project.home" value="${basedir}/${code.checkout.dir}"/>
-
- <echo message="site.build.dir: ${site.build.dir}"/>
-
+
<!-- execute the build file that was just checked out -->
<ant dir="${build.dir}" target="site" inheritRefs="true"/>
-
+
+ <!-- commit the new site back to svn (add any new files first) -->
+ <svn username="${apache.username}" password="${apache.password}">
+ <add>
+ <fileset dir="${site.checkout.dir}">
+ <include name="*.html"/>
+ <include name="*.cgi"/>
+ <include name="*.txt"/>
+ </fileset>
+ </add>
+ <add dir="${site.checkout.dir}/javadoc"/>
+ <add dir="${site.checkout.dir}/tlddoc"/>
+
+ <commit dir="${site.checkout.dir}" message="automated ant commit"/>
+ </svn>
+
</target>
<target name="check">