You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2007/07/27 18:52:05 UTC

svn commit: r560312 - in /roller/trunk/apps/planet: build.xml custom/ custom/custom-build.xmlf custom/custom-dist.xmlf

Author: agilliland
Date: Fri Jul 27 09:52:04 2007
New Revision: 560312

URL: http://svn.apache.org/viewvc?view=rev&rev=560312
Log:
provide a couple very simple hooks to allow for custom build work.


Added:
    roller/trunk/apps/planet/custom/
    roller/trunk/apps/planet/custom/custom-build.xmlf
    roller/trunk/apps/planet/custom/custom-dist.xmlf
Modified:
    roller/trunk/apps/planet/build.xml

Modified: roller/trunk/apps/planet/build.xml
URL: http://svn.apache.org/viewvc/roller/trunk/apps/planet/build.xml?view=diff&rev=560312&r1=560311&r2=560312
==============================================================================
--- roller/trunk/apps/planet/build.xml (original)
+++ roller/trunk/apps/planet/build.xml Fri Jul 27 09:52:04 2007
@@ -16,6 +16,10 @@
   copyright in this work, please see the NOTICE file in the top level
   directory of this distribution.
 -->
+<!DOCTYPE project [
+<!ENTITY custom-build      SYSTEM "custom/custom-build.xmlf">
+<!ENTITY custom-dist       SYSTEM "custom/custom-dist.xmlf">
+]>
 <project name="Roller Planet" default="build" basedir=".">
     
     <description>Builds, tests, and runs the project Roller Planet.</description>
@@ -40,6 +44,7 @@
     <property name="build.compile"                  value="${build}/compile"/>
     <property name="build.compile.business"         value="${build.compile}/business"/>
     <property name="build.compile.web"              value="${build.compile}/web"/>
+    <property name="build.compile.custom"           value="${build.compile}/custom"/>
     <property name="build.compile.test"             value="${build.compile}/test"/>
     <property name="build.lib"           value="${build}/lib"/>
     <property name="build.webapp"        value="${build}/webapp"/>
@@ -160,7 +165,7 @@
     
     <!-- ============================================== -->
     <!-- build all code -->
-    <target name="build" depends="build-business, build-web" >
+    <target name="build" depends="build-business, build-web, build-custom" >
     </target>
     
     <!-- build the business layer code and jar it up -->
@@ -258,9 +263,17 @@
     </target>
     
     
+    <!-- build custom code and jar it up -->
+    <target name="build-custom" depends="build-web">
+        
+        &custom-build;
+        
+    </target>
+    
+    
     <!-- ============================================== -->
     <!-- create distributable components -->
-    <target name="dist" depends="build-web" description="Create Roller Planet distributables">
+    <target name="dist" depends="build" description="Create Roller Planet distributables">
         
         <!-- distributable libraries -->
         <mkdir dir="${dist}/lib" />
@@ -268,7 +281,7 @@
             <fileset dir="${build.lib}" />
         </copy>
         
-        <!-- TODO: distributable webapp -->
+        <!-- assemble distributable webapp -->
         <mkdir dir="${build.webapp}/WEB-INF/lib" />
         <copy todir="${build.webapp}/WEB-INF/lib" flatten="true">
             <!-- our compiled Roller Planet libraries -->
@@ -285,6 +298,9 @@
             <fileset dir="${web}" includes="**/**" />
         </copy>         
         <chmod perm="+x" dir="${build.webapp}/WEB-INF/scripts" includes="*.sh" />
+        
+        <!-- allow for custom mods to webapp -->
+        &custom-dist;
         
         <!-- distributable WAR file -->
         <mkdir dir="${dist}/webapp" />

Added: roller/trunk/apps/planet/custom/custom-build.xmlf
URL: http://svn.apache.org/viewvc/roller/trunk/apps/planet/custom/custom-build.xmlf?view=auto&rev=560312
==============================================================================
--- roller/trunk/apps/planet/custom/custom-build.xmlf (added)
+++ roller/trunk/apps/planet/custom/custom-build.xmlf Fri Jul 27 09:52:04 2007
@@ -0,0 +1,17 @@
+
+<!--  Do custom build work -->
+
+<!-- EXAMPLE: compile custom code
+<javac destdir="${build.compile.custom}"
+    debug="${build.debug}" 
+    source="${build.sourcelevel}"
+    deprecation="${build.deprecation}">
+        
+    <src path="path/to/custom/src" />
+        
+    <classpath>
+        <path refid="business.path"/>
+    </classpath>
+
+</javac>
+-->

Added: roller/trunk/apps/planet/custom/custom-dist.xmlf
URL: http://svn.apache.org/viewvc/roller/trunk/apps/planet/custom/custom-dist.xmlf?view=auto&rev=560312
==============================================================================
--- roller/trunk/apps/planet/custom/custom-dist.xmlf (added)
+++ roller/trunk/apps/planet/custom/custom-dist.xmlf Fri Jul 27 09:52:04 2007
@@ -0,0 +1,11 @@
+
+<!--  Do custom webapp assembly and distribution work -->
+
+<!-- EXAMPLE: copy custom webapp files into app
+<copy todir="${build.webapp}" overwrite="true">
+   <fileset dir="path/to/custom/webapp/files">
+      <include name="**/**" />
+   </fileset>
+</copy>
+-->
+