You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/08/23 09:51:20 UTC

svn commit: r239375 - /xmlgraphics/fop/trunk/publish.xml

Author: jeremias
Date: Tue Aug 23 00:51:16 2005
New Revision: 239375

URL: http://svn.apache.org/viewcvs?rev=239375&view=rev
Log:
ForrestBot driver file using SCP for deployment of the FOP site to http://xmlgraphics.apache.org/fop/ after building the site with Forrest. Tested with Apache Forrest 0.7.

Build and deploy the FOP website using:
    ant -f publish.xml

See publish.xml for more info.

Added:
    xmlgraphics/fop/trunk/publish.xml   (with props)

Added: xmlgraphics/fop/trunk/publish.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/publish.xml?rev=239375&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/publish.xml (added)
+++ xmlgraphics/fop/trunk/publish.xml Tue Aug 23 00:51:16 2005
@@ -0,0 +1,74 @@
+<?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.
+-->
+<!--
+This is the publishing file for ForrestBot.
+
+Running "ant -f publish.xml" will build the FOP site and deploy it using SCP on xmlgraphics.apache.org/fop.
+
+$Id$
+-->
+<project name="forrest-docs" default="main">
+
+  <property name="build.work-dir" location="./build/forrest/work"/>
+  <property name="build.log-dir" location="./build/forrest/log"/>
+
+  <property name="getsrc.local.root-dir" location="."/>
+  <!--property name="getsrc.svn.url" value="http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk"/-->
+  <target name="getsrc" depends="getsrc.clean-workdir, getsrc.local"/>
+  
+  <!-- create this secret file to be an ant project (not stored in CVS or SVN)
+    that sets deploy.scp.user and deploy.scp.keyfile properties.
+    See forrest/etc/publishing_our_site.txt
+
+    Here's an example of such a file (place it one directory above the checkout directory):
+    <project>
+      <property name="deploy.scp.user" value="johndoe"/>
+      <property name="deploy.scp.keyfile" value="/path/to/my/private/key"/>
+    </project>
+   -->
+  <import file="../deploy.settings" optional="true"/>
+
+  <property name="deploy.scp.host" value="cvs.apache.org"/>
+  <property name="deploy.scp.dest" value="${deploy.scp.user}@cvs.apache.org:/www/xmlgraphics.apache.org/fop"/>
+  <target name="deploy.scp-alt" unless="build.failed" description="FB: Deploy to a remote location via scp">
+    <if>
+      <not><isset property="deploy.scp.passphrase"/></not>
+      <then>
+        <input addproperty="deploy.scp.passphrase" message="Enter passphrase for your private key for scp to ${deploy.scp.dest}:"/>
+      </then>
+    </if>
+    <scp todir="${deploy.scp.dest}" keyfile="${deploy.scp.keyfile}" passphrase="${deploy.scp.passphrase}">
+     <fileset dir="${build.site-dir}"/>
+    </scp>
+  </target>
+  <target name="deploy.remote.fix.perms" depends="deploy.scp-alt" unless="build.failed" description="Fixes group permissions on newly uploaded files">
+    <if>
+      <not><isset property="deploy.scp.passphrase"/></not>
+      <then>
+        <input addproperty="deploy.scp.passphrase" message="Enter passphrase for your private key for scp to ${deploy.scp.dest}:"/>
+      </then>
+    </if>
+    <!-- this is necessary because new files are not group writable -->
+    <sshexec host="${deploy.scp.host}" username="${deploy.scp.user}" 
+        keyfile="${deploy.scp.keyfile}" passphrase="${deploy.scp.passphrase}"
+        command="cd /www/xmlgraphics.apache.org/fop;chgrp -R xmlgraphics *;chmod -R g+rw *"/>
+  </target>
+  <target name="deploy" depends="deploy.scp-alt, deploy.remote.fix.perms"/>
+
+  <property environment="env"/>
+  <import file="${env.FORREST_HOME}/tools/forrestbot/core/forrestbot.xml"/>
+</project>
\ No newline at end of file

Propchange: xmlgraphics/fop/trunk/publish.xml
------------------------------------------------------------------------------
    svn:keywords = Id



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Re: svn commit: r239375 - /xmlgraphics/fop/trunk/publish.xml

Posted by Jeremias Maerki <de...@greenmail.ch>.
I finally managed to use ForrestBot for FOP's website. I've
test-deployed it to http://xmlgraphics.apache.org/fop/. When everything
looks fine there (need to wait for the rsync first), I'll try to write
the necessary .htaccess file(s) in xml.apache.org/fop to redirect the
old site to the new one. Once that works fine, too, I'll remove the old
site from /www/xml.apache.org/fop and delete it in CVS. I'll also update
the site deployment docs.

At first I tried plain SCP with password authentication (the one that
comes with ForrestBot), but that didn't work and I had to copy the
deploy task and adjust it to support private key authentication. I used
SCP because I don't think it really makes sense to put all this under
version control. The whole website is rsynced and we can now recreate
the whole website quickly should it get lost.

On 23.08.2005 09:51:20 jeremias wrote:
> Author: jeremias
> Date: Tue Aug 23 00:51:16 2005
> New Revision: 239375
> 
> URL: http://svn.apache.org/viewcvs?rev=239375&view=rev
> Log:
> ForrestBot driver file using SCP for deployment of the FOP site to http://xmlgraphics.apache.org/fop/ after building the site with Forrest. Tested with Apache Forrest 0.7.
> 
> Build and deploy the FOP website using:
>     ant -f publish.xml
> 
> See publish.xml for more info.
> 
> Added:
>     xmlgraphics/fop/trunk/publish.xml   (with props)



Jeremias Maerki