Author: carnold
Date: Fri Jul 20 18:11:01 2007
New Revision: 558218

URL: http://svn.apache.org/viewvc?view=rev&rev=558218
Log:
web site staging to SVN repo

Modified:
    incubator/log4php/trunk/build.xml
    incubator/log4php/trunk/pom.xml

Modified: incubator/log4php/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/build.xml?view=diff&rev=558218&r1=558217&r2=558218
==============================================================================
--- incubator/log4php/trunk/build.xml (original)
+++ incubator/log4php/trunk/build.xml Fri Jul 20 18:11:01 2007
@@ -17,6 +17,10 @@
 -->
 <project name="log4php" default="compile">
 
+    <property name="svnrepo.url" value="https://svn.apache.org/repos/asf"/>
+       <property name="svnsite.url" 
value="${svnrepo.url}/incubator/log4php/site"/>
+       <available property="svn-available" file="target/site-deploy/.svn"/>    
+
     <!--  Use Maven 2 to build or manually place ant-contrib 
(http://ant-contrib.sf.net) on path -->
     <taskdef name="foreach" classname="net.sf.antcontrib.logic.ForEach" />
         
@@ -82,4 +86,32 @@
         <target name="fixcrlf">
            <fixcrlf srcdir="." includes="**/*.php, **/*.xml, **/*.properties, 
**/*.ini" tab="remove"/>
         </target>
+        
+       <target name="checkout-site" unless="svn-available">
+               <exec executable="svn">
+                       <arg value="co"/>
+                       <arg value="${svnsite.url}"/>
+                       <arg value="target/site-deploy"/>
+               </exec>
+       </target>
+
+       <target name="update-site" if="svn-available">
+               <exec executable="svn" dir="target/site-deploy" 
failonerror="true">
+                       <arg value="update"/>
+               </exec>
+       </target>
+
+       <target name="post-site" depends="checkout-site, update-site"/>
+       
+       <target name="site-deploy">
+               <!-- Add any new files (and generate innocuous warnings for the 
existing content)  -->
+               <exec executable="csh" dir="target/site-deploy" 
failonerror="true">
+                       <arg line='-c "svn add --force *"'/>
+               </exec>
+               <!--  requires that SVN_EDITOR, VISUAL or EDITOR being set to 
edit commit description -->
+               <exec executable="svn" dir="target/site-deploy" 
failonerror="true">
+                   <arg value="commit"/>
+               </exec>
+       </target>
+        
 </project>

Modified: incubator/log4php/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/pom.xml?view=diff&rev=558218&r1=558217&r2=558218
==============================================================================
--- incubator/log4php/trunk/pom.xml (original)
+++ incubator/log4php/trunk/pom.xml Fri Jul 20 18:11:01 2007
@@ -21,17 +21,13 @@
   <artifactId>apache-log4php</artifactId>
   <packaging>jar</packaging>
   <version>2.0-SNAPSHOT</version>
-  <name>Apache for log4php.</name>
+  <name>Apache log4php.</name>
   <description>Logging framework for PHP.</description>
   <url>http://incubator.apache.org:80/log4php</url>
   <issueManagement>
     <system>JIRA</system>
     <url>http://issues.apache.org/jira/</url>
   </issueManagement>
-  <ciManagement>
-                <system>Gump</system>
-                 
<url>http://vmgump.apache.org/gump/public/logging-log4php/logging-log4php/index.html</url>
-  </ciManagement>
 <mailingLists>
         <mailingList>
                 <name>log4php-user</name>
@@ -125,6 +121,30 @@
               <goal>run</goal>
             </goals>
           </execution>
+          <execution>
+            <phase>post-site</phase>
+            <id>post-site</id>
+            <configuration>
+                <tasks>
+                   <ant target="post-site"/>
+                </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+          <execution>
+            <phase>site-deploy</phase>
+            <id>site-deploy</id>
+            <configuration>
+                <tasks>
+                   <ant target="site-deploy"/>
+                </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
         </executions>
        <dependencies>
           <dependency>
@@ -198,4 +218,10 @@
       </plugin>      
     </plugins>
   </reporting>
+ <distributionManagement>
+    <site>
+      <id>logging.site</id>
+      <url>scp://localhost/${user.dir}/target/site-deploy</url>
+    </site>
+  </distributionManagement> 
 </project>


Reply via email to