logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r558214 - in /logging/log4j/companions/component/trunk: build.xml pom.xml src/site/apt/roadmap.apt src/site/site.xml
Date Sat, 21 Jul 2007 01:00:58 GMT
Author: carnold
Date: Fri Jul 20 18:00:57 2007
New Revision: 558214

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

Modified:
    logging/log4j/companions/component/trunk/build.xml
    logging/log4j/companions/component/trunk/pom.xml
    logging/log4j/companions/component/trunk/src/site/apt/roadmap.apt
    logging/log4j/companions/component/trunk/src/site/site.xml

Modified: logging/log4j/companions/component/trunk/build.xml
URL: http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/build.xml?view=diff&rev=558214&r1=558213&r2=558214
==============================================================================
--- logging/log4j/companions/component/trunk/build.xml (original)
+++ logging/log4j/companions/component/trunk/build.xml Fri Jul 20 18:00:57 2007
@@ -52,6 +52,11 @@
     <property name="javac.target" value="1.1"/>   
     <property name="javac.deprecation" value="true"/>
     <property name="javac.debug" value="true"/>
+	
+    <property name="svnrepo.url" value="https://svn.apache.org/repos/asf"/>
+	<property name="svnsite.url" value="${svnrepo.url}/logging/site/trunk/docs/log4j/companions/component"/>
+	<available property="svn-available" file="target/site-deploy/.svn"/>
+	
        
     <target name="init"/>
     
@@ -116,5 +121,33 @@
     	    <formatter type="plain" usefile="false"/>
     	</junit>
     </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: logging/log4j/companions/component/trunk/pom.xml
URL: http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/pom.xml?view=diff&rev=558214&r1=558213&r2=558214
==============================================================================
--- logging/log4j/companions/component/trunk/pom.xml (original)
+++ logging/log4j/companions/component/trunk/pom.xml Fri Jul 20 18:00:57 2007
@@ -117,6 +117,33 @@
                 <tasks>
                     <taskdef name="replaceregexp" classname="org.apache.tools.ant.taskdefs.optional.ReplaceRegExp"
/>                
                    <replaceregexp file="target/site/source-repository.html" match="/tags/[^
]*" replace="/trunk" flags="g" />
+                <replaceregexp match="-- Generated by (.*) on .*--" replace="-- Generated
by \1 --" flags="g">
+					<fileset dir="target/site/apidocs" includes="**/*.html"/>
+				</replaceregexp>
+                </tasks>
+            </configuration>
+            <goals>
+              <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>
@@ -240,7 +267,7 @@
     </repository>
     <site>
       <id>logging.site</id>
-      <url>scp://people.apache.org/www/logging.apache.org/log4j/companions/component</url>
+      <url>scp://localhost/${user.dir}/target/site-deploy</url>
     </site>
   </distributionManagement> 
 </project>

Modified: logging/log4j/companions/component/trunk/src/site/apt/roadmap.apt
URL: http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/src/site/apt/roadmap.apt?view=diff&rev=558214&r1=558213&r2=558214
==============================================================================
--- logging/log4j/companions/component/trunk/src/site/apt/roadmap.apt (original)
+++ logging/log4j/companions/component/trunk/src/site/apt/roadmap.apt Fri Jul 20 18:00:57
2007
@@ -15,9 +15,7 @@
  ------
  apache-log4j-component Roadmap
  ------
- Curt Arnold
  ------
- 4 June 2007
  ------
 
 apache-log4j-component Roadmap

Modified: logging/log4j/companions/component/trunk/src/site/site.xml
URL: http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/src/site/site.xml?view=diff&rev=558214&r1=558213&r2=558214
==============================================================================
--- logging/log4j/companions/component/trunk/src/site/site.xml (original)
+++ logging/log4j/companions/component/trunk/src/site/site.xml Fri Jul 20 18:00:57 2007
@@ -60,5 +60,13 @@
 		<item name="Duplication" href="/cpd.html"/>
 		<item name="PMD" href="/pmd.html"/>
 	</menu>
+	
+	<menu name="Apache">
+		<item name="Home" href="http://www.apache.org"/>	
+		<item name="Sponsorship" href="http://www.apache.org/foundation/sponsorship.html"/>
+		<item name="Thanks" href="http://www.apache.org/foundation/thanks.html"/>
+		<item name="Conferences" href="http://www.apachecon.com"/>
+	</menu>
+	
   </body>
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message