Author: manolo
Date: Fri Apr 20 18:07:21 2012
New Revision: 1328468

URL: http://svn.apache.org/viewvc?rev=1328468&view=rev
Log:
Improve hupa site: logo, update news, javadocs, screenshots etc

Added:
    james/hupa/trunk/src/site/resources/images/logo-hupa.jpg   (with props)
    james/hupa/trunk/src/site/resources/images/logos/
    james/hupa/trunk/src/site/resources/images/logos/james-hupa-logo.gif   
(with props)
    james/hupa/trunk/src/site/xdoc/building.xml
    james/hupa/trunk/src/site/xdoc/environment.xml
    james/hupa/trunk/src/site/xdoc/javadoc.xml
    james/hupa/trunk/src/site/xdoc/source-repository.xml
    james/hupa/trunk/update_doc.sh
Removed:
    james/hupa/trunk/src/site/resources/images/ss/hupa-main-small.gif
    james/hupa/trunk/src/site/resources/images/ss/hupa-new-small.gif
    james/hupa/trunk/src/site/xdoc/dev/
Modified:
    james/hupa/trunk/src/site/resources/images/ss/hupa-login.png
    james/hupa/trunk/src/site/resources/images/ss/hupa-main.png
    james/hupa/trunk/src/site/resources/images/ss/hupa-new.png
    james/hupa/trunk/src/site/site.xml
    james/hupa/trunk/src/site/xdoc/index.xml
    james/hupa/trunk/src/site/xdoc/screenshots.xml

Added: james/hupa/trunk/src/site/resources/images/logo-hupa.jpg
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/resources/images/logo-hupa.jpg?rev=1328468&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/hupa/trunk/src/site/resources/images/logo-hupa.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/hupa/trunk/src/site/resources/images/logos/james-hupa-logo.gif
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/resources/images/logos/james-hupa-logo.gif?rev=1328468&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/hupa/trunk/src/site/resources/images/logos/james-hupa-logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: james/hupa/trunk/src/site/resources/images/ss/hupa-login.png
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/resources/images/ss/hupa-login.png?rev=1328468&r1=1328467&r2=1328468&view=diff
==============================================================================
Binary files - no diff available.

Modified: james/hupa/trunk/src/site/resources/images/ss/hupa-main.png
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/resources/images/ss/hupa-main.png?rev=1328468&r1=1328467&r2=1328468&view=diff
==============================================================================
Binary files - no diff available.

Modified: james/hupa/trunk/src/site/resources/images/ss/hupa-new.png
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/resources/images/ss/hupa-new.png?rev=1328468&r1=1328467&r2=1328468&view=diff
==============================================================================
Binary files - no diff available.

Modified: james/hupa/trunk/src/site/site.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/site.xml?rev=1328468&r1=1328467&r2=1328468&view=diff
==============================================================================
--- james/hupa/trunk/src/site/site.xml (original)
+++ james/hupa/trunk/src/site/site.xml Fri Apr 20 18:07:21 2012
@@ -1,33 +1,30 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements. See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership. The ASF licenses this file
-    to you 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.
--->
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership. The ASF licenses this file
+    to you 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.
+-->
 <project name="Hupa">
 
-    <!-- no banner yet -->
-    <!--
-        <bannerLeft>
+    <bannerLeft>
         <name>James Hupa</name>
         <src>images/logos/james-hupa-logo.gif</src>
         <href>http://james.apache.org/hupa/index.html</href>
         <alt>james-hupa-logo.gif</alt>
-        </bannerLeft>
-    -->
+    </bannerLeft>
 
     <body>
 
@@ -36,21 +33,22 @@
             <item name="Screenshots" href="/screenshots.html" />
             <item name="Configuration" href="/configuration.html" />
             <item name="FAQs" href="/faq.html" />
-        </menu>
+        </menu>
         <menu name="Get Involved" inherit="top">
-            <item name="Setup" href="/dev/environment.html" />
-            <item name="Building" href="/dev/building.html" />
+            <item name="Setup" href="/environment.html" />
+            <item name="Building" href="/building.html" />
         </menu>
 
         <menu name="Project">
-            <item name="Bug Database" href="/issue-tracking.html" />
+            <item name="Issue Tracker" 
href="https://issues.apache.org/jira/browse/HUPA"; />
             <item name="Source Code" href="/source-repository.html" />
+            <item name="Javadoc" href="/javadoc.html" />
             <item name="Who We Are" href="/team-list.html" />
             <!-- Not yet there
                 <item name="Contributing" href="contribute.html"/>
             -->
             <item name="License" href="/license.html" />
-        </menu>
+        </menu>
 
     </body>
 </project>

Added: james/hupa/trunk/src/site/xdoc/building.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/xdoc/building.xml?rev=1328468&view=auto
==============================================================================
--- james/hupa/trunk/src/site/xdoc/building.xml (added)
+++ james/hupa/trunk/src/site/xdoc/building.xml Fri Apr 20 18:07:21 2012
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements. See the NOTICE file distributed with this
+    work for additional information regarding copyright ownership. The ASF
+    licenses this file to you 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.
+-->
+<document>
+    <properties>
+        <title>Building Hupa</title>
+        <author email="server-dev@james.apache.org">James Hupa Project 
Team</author>
+    </properties>
+    <body>
+        <section name="Building Hupa for the first time">
+            <p>
+                Because Hupa uses maven as its build tool, the management of
+                dependencies is rather simple. You can either run
+                <code>mvn clean package</code>
+                from the command line, or use the built-in m2eclipse plugin.
+            </p>
+            <subsection name="Setting up m2eclipse to build Hupa">
+                <p>
+                    m2eclipse provides you with the ability to create 
different run
+                    configurations for maven. So you can run
+                    <b>what</b>
+                    you want,
+                    <b>when</b>
+                    you want, by a single mouse-click. <br/>To configure the 
'm2 run
+                    configuration', please do a right click on the project 
name and select
+                    Run As -> Run Configurations ...
+                </p>
+                <p>
+                    In the Following Dialog left-click Maven Build, then click 
on New on
+                    the top. On the dialogs main content area provide the run
+                    configuration now. In the Name field type
+                    <code>hupa clean package</code>
+                    . Uder the Base Directory should be written
+                    <code>${workspace_loc:/hupa-trunk}</code>
+                    (if your project is only named hupa, then it would be
+                    ${workspace_loc:/hupa}).
+                    <br /><br />
+                    <img src="images/dev/run-configurations-main.jpg" />
+                    <br /><br />
+                    Underneath you should check Update Snaphots
+                    and on the Refresh Tab you
+                    should check Refresh Resources upon
+                    Completion and The Project
+                    Containing the selected Resource.
+                    <br /><br />
+                    <img src="images/dev/run-configurations-refresh.jpg" />
+                    <br /><br />
+                    After all is set, click Apply and then click Run. It will 
take a hile
+                    to download all the dependencies. Once it is finished, it 
will refresh
+                    eclipse, and we are on the final step to start it up the 
first time.
+                </p>
+            </subsection>
+        </section>
+        <section name="Setting up the Google Plugin">
+            <p>
+                Because Hupa uses the google web toolkit (GWT) it is necessary 
to
+                adjust
+                the output directory of the project. If you don't do that, the 
Stand alone
+                google
+                browser will not be able to pick up the compiled classes. So, 
to
+                change
+                it do a right-click on your project choos Run As -> Web 
Application. <br />But
+                beware you will get an error! We do this only because the 
plugin sets
+                almost everything up for us. After we get the error 
right-click on the
+                project again, and choose Run As -> Run Configurations... then 
expand
+                the Web Application Node, go to the Arguments tab and add
+                
<code>-Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
+                </code>
+                to the VM Arguments Textbox. Click on Apply and close the 
dialog.
+                <br /> After
+                that go into the Package Explorer
+                View and expand server -> src -> main
+                -> webapp -> WEB-INF -> conf and
+                double click on config.properties.
+                Adjust these settings to your liking.
+                googlemail is setup by default.<br />
+                Last thing to setup is the projects output path. Do a 
right-click on the
+                project and choose Build Path -> Configure Build Path... Under 
the
+                Source tab put &lt;your_project_name&gt;/war/WEB-INF/classes 
in the
+                output directory textbox.
+            </p>
+        </section>
+        <section name="Starting Hupa">
+            <p>
+                So we are finally there. We can run Hupa for the first time. 
<br/> Do a
+                right-click
+                on the project choose Run As -> Run Configurations... ->
+                Hupa.html and
+                click on run.
+            </p>
+        </section>
+    </body>
+</document>

Added: james/hupa/trunk/src/site/xdoc/environment.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/xdoc/environment.xml?rev=1328468&view=auto
==============================================================================
--- james/hupa/trunk/src/site/xdoc/environment.xml (added)
+++ james/hupa/trunk/src/site/xdoc/environment.xml Fri Apr 20 18:07:21 2012
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements. See the NOTICE file distributed with this
+    work for additional information regarding copyright ownership. The ASF
+    licenses this file to you 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.
+-->
+<document>
+    <properties>
+        <title>Setup your Development Environment</title>
+        <author email="server-dev@james.apache.org">James Hupa Project 
Team</author>
+    </properties>
+    <body>
+        <section name="So you want to get involved?">
+            <p>
+                Great! Hupa is a new project, which just made it from the labs 
over to
+                the james
+                project.
+                We have a solid codebase, but there are many features
+                missing. But you already
+                know that, right?
+                At least that is why you are
+                trying to help, correct?
+            </p>
+            <p>
+                So, what do you need... We develop in eclipse, hence this 
document
+                describes
+                how to setup eclipse,
+                to get a Hupa Development Environment up
+                and running. So if you are a
+                developer who is using netbeans
+                or any other
+                IDE like IntelliJ IDEA, don't hesitate, to tell us how you 
setup
+                your
+                Environment, and
+                we will be more than happy to include the documentation
+                as well.
+            </p>
+            <p>
+                This document describes which steps are needed to setup 
eclipse, as if
+                it was
+                freshly downloaded.
+                So if you already have some plugins installed,
+                skip over to the next section.
+                Other than that,
+                all that is left for is to
+                wish you guys fun coding Hupa!
+            </p>
+        </section>
+
+        <section name="How to setup eclipse...">
+            <subsection name="What Version do you need">
+                <p>
+                    Eclipse can be downloaded from
+                    <a href="http://download.eclipse.org";>the eclipse download 
page</a>
+                    I recommend using the Eclipse IDE for Java Developers or 
the Eclipse
+                    IDE for Java EE Developers.
+                </p>
+                <p>
+                    If you need help installing eclipse, you can find the 
answers you are
+                    looking for on the
+                    <a 
href="http://wiki.eclipse.org/FAQ_Where_do_I_get_and_install_Eclipse%3F";>eclipse
 homepage</a>
+                </p>
+                <p>
+                    From this point on we assume you have a running 
distribution of
+                    eclipse installed on your system.
+                </p>
+            </subsection>
+            <subsection name="Setting up the maven eclipse plugin">
+                <p>
+                    Hupa uses maven2 as its build tool. Although it is 
possible to only
+                    run maven commands
+                    from the command line, a tight integration into the
+                    tool you use to write and run the code is a lot nicer.
+                </p>
+                <p>
+                    Nowadays there is more than one plugin for eclipse to 
interact with
+                    maven2. Although all might be great, I only know my way 
around the
+                    m2eclipse plugin. I work
+                    with it on all my m2 projects, and it provides
+                    me with the tools I need to get
+                    the job done. Again, if you provide the
+                    documentation for other
+                    plugins, we would be more than happy to put
+                    them up here.
+                </p>
+                <p>
+                    But enough of the bla bla let us get started. You can 
download the
+                    plugin
+                    <a href="http://m2eclipse.sonatype.org/";>here.</a>
+                    The Installation Instructions are right on the first page. 
From this
+                    point this guide assumes that you have the m2eclipse 
plugin installed.
+                </p>
+            </subsection>
+            <subsection name="Setting up the GWT Plugin">
+                <p>
+                    Hupa is developed using
+                    <a 
href="http://code.google.com/intl/de/webtoolkit/";>GWT</a>
+                    So to make your development a lot easier we recommend 
installing the
+                    <a 
href="http://code.google.com/appengine/docs/java/tools/eclipse.html";>google 
plugin for eclipse</a>
+                </p>
+            </subsection>
+            <subsection name="Setting up subclipse">
+                <p>
+                    The ASF uses subversion as its Version Control System 
(VCS). So to be
+                    able to check out the source code I recommend using a 
special plugin
+                    called
+                    <a href="http://subclipse.tigris.org/";>subclipse</a>
+                    After subclipse is installed, it is fairly easy to start 
your
+                    development on Hupa :)
+                </p>
+            </subsection>
+            <subsection name="Checking out the Hupa source code">
+                <p>
+                    Now we have everything setup to be able to check out and 
run the Hupa
+                    source code.
+                </p>
+                <p>
+                    Open up Eclipse and go to Window -> Open Perspective -> 
Other -> SVN
+                    Repository Exploring
+                    <br />
+                    <img src="images/dev/svn-repo.jpg" />
+                    <br />
+                    In the SVN Repositories View Click the right mouse button 
and choose
+                    New -> Repository Location ...
+                </p>
+                <p>
+                    In the Dialog enter the following url in the URL Field:
+                    http://svn.apache.org/repos/asf then click on Finish. 
After that the
+                    ASF Software Repository should be visible inside your SVN 
Repositories
+                    view as shown here.
+                    <br />
+                    <img src="images/dev/svn-repositories-installed.jpg" />
+                    <br />
+                </p>
+                <p>
+                    Expand the Repository, then james, then hupa, and finally 
do a right
+                    click on trunk and select Checkout. Fill in the settings 
as you think
+                    they fit your needs.
+                    <br />
+                    <img src="images/dev/checkout-hupa.jpg" />
+                    <br />
+                </p>
+                <p>
+                    So after everything is set up correctly your screen should 
look like
+                    this one here.
+                    <br />
+                    <img src="images/dev/eclipse_setup.jpg" />
+                    <br />
+                </p>
+                <p>
+                    Now, that the foundation is laid out, we can finally
+                    <a href="building.html">build hupa</a>
+                    .
+                </p>
+            </subsection>
+        </section>
+    </body>
+</document>

Modified: james/hupa/trunk/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/xdoc/index.xml?rev=1328468&r1=1328467&r2=1328468&view=diff
==============================================================================
--- james/hupa/trunk/src/site/xdoc/index.xml (original)
+++ james/hupa/trunk/src/site/xdoc/index.xml Fri Apr 20 18:07:21 2012
@@ -19,25 +19,43 @@
         <author email="server-dev@james.apache.org">James Hupa Project 
Team</author>
     </properties>
     <body>
-        <section name="What is it?">
-            <p>Hupa is IMAP-based Webmail written in GWT.</p>
+        <section name="What is Hupa?">
+          <p> Hupa is an Rich IMAP-based Webmail application written in GWT 
(Google Web Toolkit).          </p>
+          <p> Hupa has been entirely written in java to be coherent with the 
language used in the James project. And It has been a reference of a devloping 
using GWT good practices (MVP pattern and Unit testing) </p>
+          <p> Hupa is a functional and well designed email client, ready for 
reading, sending and managing messages, but it lacks of many features email 
clients nowadays have like address book </p>
         </section>
 
-        <section name="News">
+        <section name="Demo">
+          <p> There is an instance of Hupa running in ASF infra. It is 
configured to use GMail IMAP and SMTP servers, so any gmail account should 
work. </p>
+          <p> Note that your gmail account must have imap enabled. Because the 
instance and gmail servers are far away and caching is not functional yet, you 
will notice a latency when moving through the application </p>
+          <p> Click on this <a href='http://james.zones.apache.org' 
target='_blank'> link </a> to open Hupa in a new window.</p>
+        </section>
 
+        <section name="News">
+            <subsection name="2012">
+                <h4>Mar/2012 - removed snapshots</h4>
+                <p>Removed snapshot dependencies, updated to last GWT release, 
delivered with a integrated servlet-container (Jetty)</p>
+                <h4>Feb/2012 - Call for GSOC students</h4>
+                <p>We are looking for students wanted to collaborate with <a 
href='https://issues.apache.org/jira/browse/HUPA-85'> the Hupa evolution</a></p>
+            </subsection>
+            <subsection name="2011">
+                <h4>Sep/2011 - Sevilla BarCamp</h4>
+                <p>Manolo gave a <a 
href='http://www.slideshare.net/dodotis/apache-jameshupa-gwt' 
target='_blank'>talk</a> in the Sevilla Apache BarCamp about Hupa architecture 
and roadmap.</p>
+            </subsection>
+            <subsection name="2010">
+                <h4>Jun/2010 - Hupa 0.1</h4>
+                <p>First beta release, with an improved interface and fully 
functional (read, compose, send, secure, attachments, etc)</p>
+            </subsection>
             <subsection name="2009">
                 <h4>Sept/2009 - Hupa moved to James</h4>
-                <p>Hupa moved from Apache Labs to James this month.</p>
+                <p>Hupa moved from Apache Labs to James.</p>
             </subsection>
         </section>
 
         <section name="releases">
             <p>
-                <b>Latest: None</b>
-                <br />
-                No releases done yet. Would like helping getting one together?
-                <a href="dev/environment.html">Check this out</a>
+                No stable release yet. Download the latest <a 
href='https://builds.apache.org/job/hupa-trunk/lastBuild/org.apache.hupa$hupa/artifact/org.apache.hupa/hupa/0.0.2-SNAPSHOT/hupa-0.0.2-SNAPSHOT.war'>SNAPSHOT</a>
             </p>
         </section>
     </body>
-</document>
\ No newline at end of file
+</document>

Added: james/hupa/trunk/src/site/xdoc/javadoc.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/xdoc/javadoc.xml?rev=1328468&view=auto
==============================================================================
--- james/hupa/trunk/src/site/xdoc/javadoc.xml (added)
+++ james/hupa/trunk/src/site/xdoc/javadoc.xml Fri Apr 20 18:07:21 2012
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements. See the NOTICE file distributed with this
+    work for additional information regarding copyright ownership. The ASF
+    licenses this file to you 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.
+-->
+<document>
+    <properties>
+        <title>JavaDoc</title>
+        <author email="server-dev@james.apache.org">James Hupa Project 
Team</author>
+    </properties>
+    <body>
+        <section name="Source Documentation">
+           <iframe src="apidocs/index.html" style="width: 100%; height: 750px; 
border: 1px dotted #3366AA" />
+        </section>
+    </body>
+</document>

Modified: james/hupa/trunk/src/site/xdoc/screenshots.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/xdoc/screenshots.xml?rev=1328468&r1=1328467&r2=1328468&view=diff
==============================================================================
--- james/hupa/trunk/src/site/xdoc/screenshots.xml (original)
+++ james/hupa/trunk/src/site/xdoc/screenshots.xml Fri Apr 20 18:07:21 2012
@@ -20,16 +20,12 @@
     </properties>
     <body>
         <section name="So you want to see how it looks like?">
-            <p>Ok, here we are. The login form on the dev build 2009.11.23</p>
-            <img src="images/ss/hupa-login.png" />
-            <p>And here the main message browsing interface, also from 
2009.11.23 build.</p>
-            <a href="images/ss/hupa-main.png" target="_new">
-                <img src="images/ss/hupa-main-small.gif" />
-            </a>
-            <p>And the last one, the message composing interface, from 
2009.11.23 build.</p>
-            <a href="images/ss/hupa-new.png" target="_new">
-                <img src="images/ss/hupa-new-small.gif" />
-            </a>
+            <p>Ok, here we are. The login form on the dev build 2012.04.20</p>
+            <img src="images/ss/hupa-login.png" width="650px"/>
+            <p>The main message browsing interface, also from 2012.04.20 
build.</p>
+            <img src="images/ss/hupa-main.png" width="650px"/>
+            <p>The message composing editor, from 2012.04.20 build.</p>
+            <img src="images/ss/hupa-new.png" width="650px"/>
         </section>
     </body>
-</document>
\ No newline at end of file
+</document>

Added: james/hupa/trunk/src/site/xdoc/source-repository.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/xdoc/source-repository.xml?rev=1328468&view=auto
==============================================================================
--- james/hupa/trunk/src/site/xdoc/source-repository.xml (added)
+++ james/hupa/trunk/src/site/xdoc/source-repository.xml Fri Apr 20 18:07:21 
2012
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you 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.    
+-->
+<document>
+
+  <properties>
+     <title>Source Code</title>
+  </properties>
+
+<body>
+
+  <section name="Get Source Code">
+    <subsection name="Anonymous Access">
+      <p>The source can be checked out anonymously from SVN with the following 
command.</p>
+      <p><code>$ svn checkout http://svn.apache.org/repos/asf/james/hupa/trunk 
hupa</code></p>
+    </subsection>
+    <subsection name="Developer Access">
+      <p>Everyone can access the Subversion repository via HTTP, but 
Committers must checkout the Subversion repository via HTTPS.</p>
+      <p><code>$ svn checkout 
https://svn.apache.org/repos/asf/james/hupa/trunk hupa</code></p>
+    </subsection>
+  </section>
+
+</body>
+
+</document>

Added: james/hupa/trunk/update_doc.sh
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/update_doc.sh?rev=1328468&view=auto
==============================================================================
--- james/hupa/trunk/update_doc.sh (added)
+++ james/hupa/trunk/update_doc.sh Fri Apr 20 18:07:21 2012
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# This script is used to update site documentation.
+#
+# It expects that the new hupa site has been generated in $target and 
+# the current deployed hupa site via svn is in $site
+#
+#
+
+target=target/site
+site=../site/www/hupa
+pwd=`pwd`
+
+[ ! -d $target -o ! -d $site ] && echo "Running in an invalid folder" && exit
+
+## remove files from the old site that don't exist any more
+cd $pwd/$site
+for i in `find . -type f | grep -v "/\.svn/"`
+do
+   if [ ! -f $pwd/$target/$i ]
+   then
+      svn delete $i
+   fi
+done
+
+add_folder() {
+  n=$1
+  while [ $n != . ]
+  do
+     [ -d $n/.svn ] && return
+     [ -d $n/../.svn ] && svn add $n
+     n=`dirname $n`
+  done
+}
+
+## copy new files and register them in svn
+cd $pwd/$target
+files=`find . -type f`
+cd $pwd/$site
+for i in $files
+do
+  d=`dirname $i`
+  [ ! -d $d ] && mkdir -p $d && add_folder $d
+  test -f $i
+  t=$?
+  cp $pwd/$target/$i $d
+  [ $t != 0 ] && svn add $i
+done
+
+## remove empty folders
+cd $pwd/$site
+for d in `find . -type d | grep -v "/\.svn" | sort -r`
+do
+   h=`ls $d`
+   [ -z "$h" ] && svn delete $d
+done
+



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to