User: user57  
  Date: 01/08/29 15:45:06

  Modified:    .        build.xml
  Log:
   o manual jars target will build .war & .ear files for the website,
     should probably make the website a buildmagic module, that includes this
     but for now this will work
  
  Revision  Changes    Path
  1.14      +29 -5     manual/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/manual/build.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- build.xml 2001/08/29 09:19:34     1.13
  +++ build.xml 2001/08/29 22:45:06     1.14
  @@ -10,7 +10,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.13 2001/08/29 09:19:34 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.14 2001/08/29 22:45:06 user57 Exp $ -->
   
   <project default="main">
   
  @@ -143,13 +143,14 @@
     </path>
   
     <!-- Where source files live -->
  -  <property name="source.etc" value="${module.source}/etc"/>
  +  <property name="source.metadata" value="${module.source}/metadata"/>
     <property name="source.examples" value="${module.source}/examples"/>
     <property name="source.stylesheets" value="${module.source}/stylesheets"/>
     <property name="source.docs" value="${module.source}/docs"/>
     <property name="source.xdocs" value="${module.source}/xdocs"/>
   
     <!-- Where build generated files will go -->
  +  <property name="build.metadata" value="${module.build}/metadata"/>
     <property name="build.docs" value="${module.build}/docs"/>
     <property name="build.xdocs" value="${module.build}/xdocs"/>
     <property name="build.stylesheets" value="${module.build}/stylesheets"/>
  @@ -196,7 +197,7 @@
        |  different type of compile that needs to be performed, short of
        |  documentation compiles.
       -->
  -  <target name="compile" depends="init, compile-stylesheets, compile-docs"
  +  <target name="compile" depends="init, compile-stylesheets, compile-docs, 
compile-etc"
          description="Compile all source files."/>
   
     <!-- Compile stylesheets -->
  @@ -209,6 +210,16 @@
       </copy>
     </target>
   
  +  <!-- Compile etc -->
  +  <target name="compile-etc" depends="init">
  +    <mkdir dir="${build.metadata}"/>
  +    <copy todir="${build.metadata}" filtering="yes">
  +      <fileset dir="${source.metadata}">
  +         <include name="**/*"/>
  +      </fileset>
  +    </copy>
  +  </target>
  +
     <!-- Compile doc sources & support files -->
     <target name="compile-docs" depends="init">
       <mkdir dir="${build.docs}"/>
  @@ -240,8 +251,21 @@
     <!-- ================================================================== -->
   
     <!-- Build all jar files. -->
  -  <target name="jars" depends="compile" description="Builds all jar files.">
  -     <!-- This module creates no jar files. -->
  +  <target name="jars" depends="docs" description="Builds all jar files.">
  +    <mkdir dir="${build.jars}"/>
  +
  +    <war warfile="${build.jars}/manual.war"
  +      webxml="${build.metadata}/manual-web.xml">
  +      <zipfileset prefix="HTML/fancy" dir="${build.html.fancy}"/>
  +      <zipfileset prefix="HTML/printable" dir="${build.html.printable}"/>
  +    </war>
  + 
  +    <ear earfile="${build.jars}/manual.ear"
  +      appxml="${build.metadata}/manual-application.xml">
  +      <fileset dir="${build.jars}">
  +        <include name="manual.war"/>
  +      </fileset>
  +    </ear>
     </target>
   
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to