User: user57  
  Date: 01/10/01 16:06:01

  Modified:    .        build.xml
  Log:
   o adding support files required to setup the forums deployable
  
  Revision  Changes    Path
  1.2       +76 -13    website-forums/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/website-forums/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml 2001/10/01 20:46:04     1.1
  +++ build.xml 2001/10/01 23:06:01     1.2
  @@ -10,7 +10,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.1 2001/10/01 20:46:04 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.2 2001/10/01 23:06:01 user57 Exp $ -->
   
   <project default="main" name="JBoss Website/Forums">
   
  @@ -174,21 +174,15 @@
     <!-- Configure the tasks used by this module. -->
     <target name="_configure-tasks" unless="configure-tasks.disable">
       <!-- Where source files live -->
  -    <property name="source.bin" value="${module.source}/bin"/>
  +    <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"/>
  +    <property name="source.lib" value="${module.source}/lib"/>
   
       <!-- Where build generated files will go -->
  -    <property name="build.bin" value="${module.output}/bin"/>
  -    <property name="build.metadata" value="${module.output}/metadata"/>
  -    <property name="build.snapshots" value="${module.output}/snapshots"/>
  -    <property name="build.docs" value="${module.output}/docs"/>
  -    <property name="build.xdocs" value="${module.output}/xdocs"/>
  -    <property name="build.stylesheets" value="${module.output}/stylesheets"/>
  +    <property name="build.etc" value="${module.output}/etc"/>
       <property name="build.lib" value="${module.output}/lib"/>
  +    <property name="build.metadata" value="${module.output}/metadata"/>
  +    <property name="build.jive" value="${module.output}/jive"/>
   
       <!-- Install/Release structure -->
       <property name="install.id" value="${module.name}-${module.version}"/>
  @@ -243,8 +237,41 @@
       -->
     <target name="compile" 
          description="Compile all source files."
  -       depends="init"/>
  +       depends="init,
  +                   compile-etc,
  +                   compile-metadata,
  +                   compile-jive"/>
  +
  +  <!-- Compile etc files (manifests and such) -->
  +  <target name="compile-etc" depends="init">
  +    <!-- this property must be set for the config/copy to work -->
  +    <require property="jivesoftware.jive.home"/>
  +    <echo>Using jivesoftware.jive.home: ${jivesoftware.jive.home}</echo>
  +
  +    <mkdir dir="${build.etc}"/>
  +    <copy todir="${build.etc}" filtering="yes">
  +      <fileset dir="${source.etc}">
  +         <include name="**/*"/>
  +      </fileset>
  +    </copy>
  +  </target>
   
  +  <!-- Compile metadata files -->
  +  <target name="compile-metadata" depends="init">
  +    <mkdir dir="${build.metadata}"/>
  +    <copy todir="${build.metadata}" filtering="yes">
  +      <fileset dir="${source.metadata}">
  +         <include name="**/*"/>
  +      </fileset>
  +    </copy>
  +  </target>
  +
  +  <!-- Extract the Jive distribution -->
  +  <target name="compile-jive" depends="init">
  +    <mkdir dir="${build.jive}"/>
  +    <unjar src="${source.lib}/jive.jar" dest="${build.jive}"/>
  +  </target>
  +
     
     <!-- ================================================================== -->
     <!-- Archives                                                           -->
  @@ -255,6 +282,25 @@
      -->
     <target name="jars" depends="compile" description="Builds all jar files.">
       <mkdir dir="${build.lib}"/>
  +
  +    <!-- Build the jive.war -->
  +    <war warfile="${build.lib}/jive.war"
  +      webxml="${build.metadata}/jive-web.xml">
  +      <fileset dir="${build.jive}/application">
  +        <include name="*/**"/>
  +      </fileset>
  +      <zipfileset prefix="WEB-INF/classes" dir="${build.etc}">
  +        <include name="jive_init.properties"/>
  +      </zipfileset>
  +    </war>
  +
  +    <!-- Build the forums.ear -->
  +    <ear earfile="${build.lib}/forums.ear"
  +      appxml="${build.metadata}/forums-application.xml">
  +      <fileset dir="${build.lib}">
  +        <include name="jive.war"/>
  +      </fileset>
  +    </ear>
     </target>
   
   
  @@ -455,5 +501,22 @@
   
     <target name="most" depends="jars"
          description="Builds almost everything."/>
  +
  +  <!-- 
  +     | Copy some files to the specified jive home, this should not happen
  +     | in production, as these files should exist already.  This only 
  +     | servers to help setup testing environemnts.  Users will also have
  +     | to setup the database as specified in the Jive docs.
  +   -->
  +  <target name="setup-jive-home">
  +    <copy todir="${jivesoftware.jive.home}">
  +      <fileset dir="${build.jive}/application/WEB-INF/jiveHome">
  +        <include name="*/**"/>
  +      </fileset>
  +    </copy>
  +
  +    <echo>Copied over basic Jive configuration files.</echo>
  +    <echo>You will need finish the setup from the admin/setup page.</echo>
  +  </target>
   
   </project>
  
  
  

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

Reply via email to