forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/core forrest.build.xml
Date Thu, 23 Oct 2003 13:35:54 GMT
nicolaken    2003/10/23 06:35:54

  Modified:    src/core forrest.build.xml
  Log:
  Include content in the .war.
  Still doesn't make the war work, but it's nearer.
  
  Revision  Changes    Path
  1.6       +17 -3     xml-forrest/src/core/forrest.build.xml
  
  Index: forrest.build.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/forrest.build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- forrest.build.xml	23 Oct 2003 10:46:37 -0000	1.5
  +++ forrest.build.xml	23 Oct 2003 13:35:54 -0000	1.6
  @@ -695,7 +695,7 @@
          Builds a cocoon .war for your project based on the siteplan.
          param: location to put generated war ${project.war}
          =============================================================== -->
  - <target name="war" depends="webapp"
  + <target name="war" depends="webapp, copy-xdocs,copy-content "
      description="Generates a dynamic servlet-based website (an packaged .war file)">
   
      <jar destfile="${project.war}" basedir="${project.webapp}"/>
  @@ -707,7 +707,21 @@
      </echo>
     </target>
   
  -
  +  <target name="copy-xdocs" if="xdocs.present">
  +    <sync toDir="${project.webapp}/content/xdocs">
  +      <fileset dir="${xdocs-dir}"/>
  +    </sync>
  +  </target>
  +  
  +  <!-- Copy all non-xdocs content -->
  +  <target name="copy-content" if="raw-content.present">
  +    <copy toDir="${project.webapp}/content" 
  +      overwrite="false" failonerror="false">
  +      <fileset dir="${raw-content-dir}">
  +        <exclude name="${xdocs-dir}/**"/>
  +      </fileset>
  +    </copy>
  +  </target>
   
   <!-- ***************************************************************** -->
   <!-- ***************************************************************** -->
  
  
  

Mime
View raw message