gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r164545 - /gump/trunk/site-sync.xml
Date Mon, 25 Apr 2005 08:49:55 GMT
Author: bodewig
Date: Mon Apr 25 01:49:54 2005
New Revision: 164545

URL: http://svn.apache.org/viewcvs?rev=164545&view=rev
Log:
Small Ant build file that helps me re-generate the site, may be useful for others as well

Added:
    gump/trunk/site-sync.xml   (with props)

Added: gump/trunk/site-sync.xml
URL: http://svn.apache.org/viewcvs/gump/trunk/site-sync.xml?rev=164545&view=auto
==============================================================================
--- gump/trunk/site-sync.xml (added)
+++ gump/trunk/site-sync.xml Mon Apr 25 01:49:54 2005
@@ -0,0 +1,46 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+   A tiny build file that syncs the generated site with the checked
+   out working copy of .../gump/site/ so that you don't have to remember
+   to copy files over (or even think about which files have changed).
+
+   Requires Ant 1.7 (CVS of 2005-02 or later will do) in order to have
+   sync support the preserveInTarget element.
+-->
+<project name="sync-generated-docs-with-site-dir" default="site-sync">
+  <!-- where is the generated site? -->
+  <property name="generated-site" value="build/site"/>
+  <!-- where is the working copy of 
+       https://svn.apache.org/repos/asf/gump/site ? -->
+  <property name="site-wc" value="../site"/>
+
+  <target name="site-sync">
+
+    <sync todir="${site-wc}">
+      <fileset dir="${generated-site}"/>
+
+      <!-- save Subversion's information -->
+      <preserveInTarget>
+        <include name="**/.svn/**"/>
+      </preserveInTarget>
+
+    </sync>
+
+  </target>
+</project>
\ No newline at end of file

Propchange: gump/trunk/site-sync.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message