roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r735497 - in /roller/trunk: README.txt build-poms.xml build.xml
Date Sun, 18 Jan 2009 16:28:18 GMT
Author: snoopdave
Date: Sun Jan 18 08:28:17 2009
New Revision: 735497

URL: http://svn.apache.org/viewvc?rev=735497&view=rev
Log:
Attempting to reduce confusion for those who wish to build Roller from source:
- adding README.txt with pointer to build docs on wiki
- renaming build.xml becuase it is only for building of Maven POMs

Added:
    roller/trunk/README.txt
    roller/trunk/build-poms.xml
Removed:
    roller/trunk/build.xml

Added: roller/trunk/README.txt
URL: http://svn.apache.org/viewvc/roller/trunk/README.txt?rev=735497&view=auto
==============================================================================
--- roller/trunk/README.txt (added)
+++ roller/trunk/README.txt Sun Jan 18 08:28:17 2009
@@ -0,0 +1,13 @@
+README.txt
+
+This file exists at the top-level of the Roller source tree.
+
+There are two applicatons here and one component:
+
+    apps/weblogger   - The Apache Roller Weblogger (blog server)
+    apps/planet      - The Roller Planet server (experimental)
+    compoenents/core - core component, used by both Weblogger and Planet
+
+If you want to build and deploy Roller from source follow these instructions:
+
+    http://cwiki.apache.org/confluence/display/ROLLER/Build+Guide

Added: roller/trunk/build-poms.xml
URL: http://svn.apache.org/viewvc/roller/trunk/build-poms.xml?rev=735497&view=auto
==============================================================================
--- roller/trunk/build-poms.xml (added)
+++ roller/trunk/build-poms.xml Sun Jan 18 08:28:17 2009
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="poms" default="build" basedir="." xmlns:artifact="urn:maven-artifact-ant">
+
+    <!--
+    Experimental support for building Maven POMs for Roller.
+    -->
+
+    <target name="clean">
+        <ant dir="components/core" target="clean" />
+        <ant dir="apps/planet"     target="clean" />
+        <ant dir="apps/weblogger"  target="clean" />
+    </target>
+
+    <target name="build-integrated"
+        description="Build Core, Planet and Roller together (i.e. Rebuilds Core and Planet
jars, uses them to build Roller)">
+
+        <ant  dir="components/core" target="dist" />
+        <copy file="components/core/dist/lib/roller-core.jar" todir="tools/roller-core"
/>
+
+        <ant  dir="apps/planet" target="dist" />
+        <copy file="apps/planet/dist/lib/roller-planet-business.jar" todir="tools/roller-planet"
/>
+
+        <ant dir="apps/weblogger"  target="dist" />
+        <ant dir="apps/weblogger"  target="apache-release" />
+
+    </target>
+
+    <target name="build"
+        description="Build Core, Planet and Roller separately (i.e. uses Core and Planet
jars from Subversion)" >
+        <ant dir="components/core" target="dist" />
+        <ant dir="apps/planet"     target="dist" />
+        <ant dir="apps/weblogger"  target="dist" />
+        <ant dir="apps/weblogger"  target="apache-release" />
+    </target>
+
+    <target name="test">
+        <ant dir="apps/planet" target="test" />
+        <ant dir="apps/weblogger" target="tests" />
+    </target>
+
+    <!-- get the ant maven tasks.  I wish I could understand ant logic so we could run
this whenever the jar is missing -->
+    <target name="mvn-get">
+        <mkdir dir="tools/buildtime/maven"/>
+        <get src="http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.0.7/maven-ant-tasks-2.0.7.jar"
dest="tools/buildtime/maven/maven-ant-tasks-2.0.7.jar"/>
+    </target>
+
+    <target name="mvn-init">
+        <echo>If this fails with a message like '  [typedef] Could not load definitions
from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.' try running
mvn-get first.</echo>
+        <xmlproperty file="pom.xml" prefix="pom.xml"/>
+        <path id="maven-ant-tasks.classpath" path="tools/buildtime/maven/maven-ant-tasks-2.0.7.jar"/>
+        <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"
+                 classpathref="maven-ant-tasks.classpath"/>
+    </target>
+
+    <!--This target will place the roller-weblogger.war file in a maven repository alongside
with its
+              corresponding pom.xml file. Before deploying be sure to check the version tag
in the
+              pom_ant_weblogger.xml file.
+              For real usage change the repository url to http://www.ibiblio.org/maven2 or
some other
+              public repository of your choice. To test deployment localy use somting like
file://localhost/xxx -->
+    <target name="mvn-deploy" depends="build, mvn-init">
+        <artifact:install-provider artifactId="wagon-ssh" version="1.0-alpha-5"/>
+        <artifact:pom id="maven.project.weblogger.business.jar" file="apps/weblogger/pom_ant_weblogger_business.xml"/>
+        <artifact:deploy file="apps/weblogger/dist/lib/roller-business.jar">
+            <remoteRepository url="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository"/>
+            <pom refid="maven.project.weblogger.business.jar"/>
+        </artifact:deploy>
+        <artifact:pom id="maven.project.weblogger.web.jar" file="apps/weblogger/pom_ant_weblogger_web.xml"/>
+        <artifact:deploy file="apps/weblogger/dist/lib/roller-web.jar">
+            <remoteRepository url="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository"/>
+            <pom refid="maven.project.weblogger.web.jar"/>
+        </artifact:deploy>
+        <artifact:pom id="maven.project.weblogger.war" file="apps/weblogger/pom_ant_weblogger.xml"/>
+        <artifact:deploy file="apps/weblogger/dist/webapp/roller-weblogger.war">
+            <remoteRepository url="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository"/>
+            <pom refid="maven.project.weblogger.war"/>
+        </artifact:deploy>
+        <artifact:pom id="maven.project.planet.business.jar" file="apps/planet/pom_ant_planet_business.xml"/>
+        <artifact:deploy file="apps/planet/dist/lib/roller-planet-business.jar">
+            <remoteRepository url="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository"/>
+            <pom refid="maven.project.planet.business.jar"/>
+        </artifact:deploy>
+        <artifact:pom id="maven.project.planet.web.jar" file="apps/planet/pom_ant_planet_web.xml"/>
+        <artifact:deploy file="apps/planet/dist/webapp/roller-planet-web.jar">
+            <remoteRepository url="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository"/>
+            <pom refid="maven.project.planet.web.jar"/>
+        </artifact:deploy>
+        <artifact:pom id="maven.project.planet.war" file="apps/planet/pom_ant_planet.xml"/>
+        <artifact:deploy file="apps/planet/dist/webapp/roller-planet.war">
+            <remoteRepository url="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository"/>
+            <pom refid="maven.project.planet.war"/>
+        </artifact:deploy>
+    </target>
+
+    <!-- Install roller-weblogger.war in the local maven repository -->
+    <target name="mvn-install" depends="build, mvn-init">
+        <artifact:pom id="maven.project.weblogger.business.jar" file="apps/weblogger/pom_ant_weblogger_business.xml"/>
+        <artifact:install file="apps/weblogger/dist/lib/roller-business.jar">
+            <pom refid="maven.project.weblogger.business.jar"/>
+        </artifact:install>
+        <artifact:pom id="maven.project.weblogger.web.jar" file="apps/weblogger/pom_ant_weblogger_web.xml"/>
+        <artifact:install file="apps/weblogger/dist/lib/roller-web.jar">
+            <pom refid="maven.project.weblogger.web.jar"/>
+        </artifact:install>
+        <artifact:pom id="maven.project.weblogger.war" file="apps/weblogger/pom_ant_weblogger.xml"/>
+        <artifact:install file="apps/weblogger/dist/webapp/roller-weblogger.war">
+            <pom refid="maven.project.weblogger.war"/>
+        </artifact:install>
+        <artifact:pom id="maven.project.planet.business.jar" file="apps/planet/pom_ant_planet_business.xml"/>
+        <artifact:install file="apps/planet/dist/lib/roller-planet-business.jar">
+            <pom refid="maven.project.planet.business.jar"/>
+        </artifact:install>
+        <artifact:pom id="maven.project.planet.web.jar" file="apps/planet/pom_ant_planet_web.xml"/>
+        <artifact:install file="apps/planet/dist/lib/roller-planet-web.jar">
+            <pom refid="maven.project.planet.web.jar"/>
+        </artifact:install>
+        <artifact:pom id="maven.project.planet.war" file="apps/planet/pom_ant_planet.xml"/>
+        <artifact:install file="apps/planet/dist/webapp/roller-planet.war">
+            <pom refid="maven.project.planet.war"/>
+        </artifact:install>
+    </target>
+
+</project>



Mime
View raw message