ghoward     2003/05/31 10:04:46

  Modified:    src/targets webapp-build.xml
  Log:
  custom-conf target alters runtime configuration parameters 
  to ease configuration management for users (and lazy, 
  forgetful developers)
  
  Revision  Changes    Path
  1.18      +17 -1     cocoon-2.1/src/targets/webapp-build.xml
  
  Index: webapp-build.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/targets/webapp-build.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- webapp-build.xml  26 May 2003 08:56:20 -0000      1.17
  +++ webapp-build.xml  31 May 2003 17:04:46 -0000      1.18
  @@ -148,7 +148,7 @@
               includes="**/*.xwelcome"/>    
     </target>
     
  -  <target name="webapp" 
depends="prepare-webapp,prepare-webapp-samples,prepare-webapp-docs,prepare-webapp-javadocs,prepare-webapp-idldocs,prepare-webapp-deprecated,prepare-webapp-scratchpad,validate-jars,validate-config"
 description="Builds web application folder"/>
  +  <target name="webapp" 
depends="prepare-webapp,prepare-webapp-samples,prepare-webapp-docs,prepare-webapp-javadocs,prepare-webapp-idldocs,prepare-webapp-deprecated,prepare-webapp-scratchpad,validate-jars,validate-config,custom-conf"
 description="Builds web application folder"/>
   
     <target name="war" depends="webapp" description="Builds web application archive">
       <!-- A task to create manifest for webapp. -->
  @@ -159,5 +159,21 @@
       <jar jarfile="${build.war}"  manifest="${build.webapp}/WEB-INF/Manifest.mf">
         <fileset dir="${build.webapp}"/>
       </jar>
  +  </target>
  +
  +  <target name="custom-conf" depends="init-tasks" description="Uses Cocoon's xpatch 
task to customize runtime configuration">
  +    <xpatch file="${build.webapp}/sitemap.xmap" srcdir="">
  +       <include name="${customconf}/*.xmap" />
  +       <include name="src/confpatch/*.xpipe" />
  +    </xpatch>
  +    <xpatch file="${build.webapp}/WEB-INF/cocoon.xconf" srcdir="">
  +       <include name="${customconf}/*.xconf" />
  +    </xpatch>
  +    <xpatch file="${build.webapp}/WEB-INF/logkit.xconf" srcdir="">
  +       <include name="${customconf}/*.xlog" />
  +    </xpatch>
  +    <xpatch file="${build.webapp}/WEB-INF/web.xml" srcdir="">
  +       <include name="${customconf}/*.xweb" />
  +    </xpatch>
     </target>
   
  
  
  

Reply via email to