User: user57  
  Date: 01/07/28 19:13:41

  Modified:    jetty    Tag: jboss_buildmagic build.sh build.xml
  Log:
   o updated all modules to use new simplified configuration
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +9 -3      contrib/jetty/Attic/build.sh
  
  Index: build.sh
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/jetty/Attic/build.sh,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- build.sh  2001/07/28 06:58:47     1.1.2.1
  +++ build.sh  2001/07/29 02:13:41     1.1.2.2
  @@ -23,15 +23,21 @@
   ##                                                                          ##
   ### ====================================================================== ###
   
  -# $Id: build.sh,v 1.1.2.1 2001/07/28 06:58:47 user57 Exp $
  +# $Id: build.sh,v 1.1.2.2 2001/07/29 02:13:41 user57 Exp $
   
   PROGNAME=`basename $0`
   DIRNAME=`dirname $0`
   GREP="grep"
   ROOT="/"
   
  -# the default search path for ant
  -ANT_SEARCH_PATH="tools/apache/ant tools/ant ant"
  +# the default search path for buildmagic/ant
  +ANT_SEARCH_PATH="\
  +    tools/planet57/buildmagic \
  +    tools/buildmagic \
  +    buildmagic \
  +    tools/apache/ant \
  +    tools/ant \
  +    ant"
   
   # the default build file name
   ANT_BUILD_FILE="build.xml"
  
  
  
  1.1.2.2   +84 -81    contrib/jetty/Attic/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/jetty/Attic/build.xml,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- build.xml 2001/07/28 06:58:47     1.1.2.1
  +++ build.xml 2001/07/29 02:13:41     1.1.2.2
  @@ -9,25 +9,8 @@
   <!--  See terms of license at http://www.gnu.org.                           -->
   <!--                                                                        -->
   <!-- ====================================================================== -->
  -<!--                                                                        -->
  -<!--  Configuration Files (in order of precedence):                         -->
  -<!--                                                                        -->
  -<!--    ${module.root}/build.xml* (this file)                               -->
  -<!--    ${project.config}/override.properties                               -->
  -<!--    ${module.root}/override.properties                                  -->
  -<!--    ${user.home}/.buildmagic.properties                                 -->
  -<!--    ${user.home}/.ant.properties                                        -->
  -<!--    ${project.config}/local.properties                                  -->
  -<!--    ${module.root}/local.properties                                     -->
  -<!--    ${project.config}/config.properties                                 -->
  -<!--    ${module.root}/config.properties                                    -->
  -<!--    ${module.root}/config.xml*                                          -->
  -<!--                                                                        -->
  -<!--    * Required                                                          -->
  -<!--                                                                        -->
  -<!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.1.2.1 2001/07/28 06:58:47 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.1.2.2 2001/07/29 02:13:41 user57 Exp $ -->
   
   <project name="jboss-jetty-plugin" default="main">
   
  @@ -35,46 +18,68 @@
     <!-- Basic module configuration                                         -->
     <!-- ================================================================== -->
   
  -  <!-- Define ${module.root} to equal ${basedir} -->
  +  <!-- 
  +     |  Load Buildmagic Ant extentions. 
  +     |
  +     |  To keep the build system as simple as possible these extension tasks
  +     |  must already be on the ant or system classpath.
  +    -->
  +  <taskdef name="taskdef" classname="planet57.tools.buildmagic.task.Taskdef"/>
  +  <taskdef resource="planet57/tools/buildmagic/task/autoload.properties"/>
  +
  +  <!--
  +     |  Setup the basic module roots.
  +     |
  +     |  module.root     - Should be the directory this file is in
  +     |  project.root    - 
  +     |  project.config  - 
  +   -->
     <property name="module.root" value="${basedir}"/>
  -
  -  <!-- Specify the location of our parent (could be a project or ..) -->
  -  <property name="project.root" value="${module.root}/../.."/>
  -
  -  <!-- Specify where the module parent config files live. -->
  +  <property name="project.root">
  +    <findroot basedir="." suffix="build/build.xml"/>
  +  </property>
     <property name="project.config" value="${project.root}/build"/>
   
  -  <!-- Include project & user-global property overrides -->
  +  <!-- 
  +     |  Include user, project and module property overrides.
  +     |
  +     |  override.properties     - Used rarely (ignore)
  +     |  .buildmagic.properties  - Provide Buildmagic specific properties
  +     |  .ant.properties         - Ant properties
  +     |  local.properties        - User local module properties
  +     |  config.properties       - Used rarely (ignore)
  +    -->
     <property file="${project.config}/override.properties"/>
     <property file="${module.root}/override.properties"/>
     <property file="${user.home}/.buildmagic.properties"/>
     <property file="${user.home}/.ant.properties"/>
  +  <property file="${module.root}/local.properties"/>
  +  <property file="${project.config}/local.properties"/>
  +  <property file="${module.root}/config.properties"/>
  +  <property file="${moudle.parent.config}/config.properties"/>
   
  -  <!-- Specify where the module source directories are -->
  +  <!-- 
  +     |  Setup the basic environment for a source module.
  +     |
  +     |  module.source    - The module source root
  +     |  module.output    - The root where build output will be placed
  +     |  module.build     - Where released files will be placed
  +     |  module.release   - Where released files will be placed
  +     |  tools.root       - Where to build support tools live
  +     |  thirdparty.root  - Where to thirdparty libraries live
  +    -->
     <property name="module.source" value="${module.root}/src"/>
  -
  -  <!-- Specify where the root directory where build output will be placed -->
     <property name="module.output" value="${module.root}/output"/>
  -
  -  <!-- Specify where released files will be placed -->
     <property name="module.build" value="${module.output}"/>
  -
  -  <!-- Specify where released files will be placed -->
     <property name="module.release" value="${module.output}/release"/>
  -
  -  <!-- Module parent directories -->
     <property name="tools.root" value="${project.root}/tools"/>
     <property name="thirdparty.root" value="${project.root}/thirdparty"/>
  -
  -  <!-- Include user local property overrides -->
  -  <property file="${module.root}/local.properties"/>
  -  <property file="${project.config}/local.properties"/>
  -
  -  <!-- Include config property overrides -->
  -  <property file="${module.root}/config.properties"/>
  -  <property file="${moudle.parent.config}/config.properties"/>
   
  -  <!-- Load module configuration -->
  +  <!-- 
  +     |  Load project configuration.
  +     |
  +     |  config.xml  - Define most configuration elements here (required).
  +    -->
     &config;
   
     
  @@ -83,36 +88,36 @@
     <!-- ================================================================== -->
   
     <!-- Bootstrap all required extensions -->
  -  <target name="bootstrap" depends="bootstrap-init" unless="bootstraped-already">
  +  <target name="bootstrap" 
  +       depends="bootstrap-init" 
  +       unless="bootstraped-already">
       <!-- Build local Ant extensions (if required) -->
       <!-- Mark things as bootstrapped -->
       <property name="bootstraped-already" value="true"/>
     </target>
   
     <!-- Fail if the required dependencies are missing -->
  -  <target name="bootstrap-init" depends="bootstrap-check" 
unless="have-bootstrap-dependencies-already">
  +  <target name="bootstrap-init" 
  +       depends="bootstrap-check" 
  +       unless="have-bootstrap-dependencies-already">
       <echo>Missing some or all of the required dependencies.</echo>
       <fail message="Can not continue."/>
     </target>
   
     <!-- Check for required libraries -->
     <target name="bootstrap-check" unless="bootstraped-already">
  -    <!-- BuildMagic -->
  -    <available classname="planet57.tools.buildmagic.task.Taskdef"
  -            classpathref="buildmagic.classpath"
  -            property="have-bootstrap-dependencies-already"/>
  +    <!-- Check for required extensions here -->
  +    <property name="have-bootstrap-dependencies-already" value="true"/>
     </target>
   
  -  <!-- Configure the build system -->
  +  <!-- 
  +     |  Configure the module build system 
  +    -->
     <target name="configure" unless="configured-already"
          description="Configure the module build system.">
  -
  -    <!-- Where example files will live -->
  +    <!-- Put the example files in place -->
       <property name="module.examples" value="${module.root}/etc"/>
  -    <!-- The extension for example files -->
       <property name="module.examples.extension" value="-example"/>
  -
  -    <!-- Put the example files in place -->
       <copy todir="${module.root}" filtering="yes">
         <fileset dir="${module.examples}/">
            <include name="**/*${module.examples.extension}"/>
  @@ -120,10 +125,8 @@
         <mapper type="glob" from="*${module.examples.extension}" to="*"/>
       </copy>
   
  -    <!-- Execute module configure hook -->
  +    <!-- Execute module configure hook and mark things as configured -->
       <antcall target="configure-hook"/>
  -
  -    <!-- Mark things as configured -->
       <property name="configured-already" value="true"/>
     </target>
   
  @@ -132,35 +135,21 @@
       <property name="configured-already" value="true"/>
     </target>
   
  -  <!-- Initialize the build system -->
  -  <target name="init" depends="configure, bootstrap" unless="initialized-already">
  +  <!-- 
  +     |  Initialize the build system
  +    -->
  +  <target name="init" 
  +       depends="configure, bootstrap" 
  +       unless="initialized-already">
       <!-- Setup timestamp properties -->
       <tstamp>
         <format property="build.number" pattern="yyyyMMddHHmm"/>
       </tstamp>
       <property name="build.id" value="${build.number}"/>
   
  -    <!-- Load a better version of taskdef -->
  -    <taskdef name="installtask" 
  -          classname="planet57.tools.buildmagic.task.Taskdef" 
  -          classpathref="buildmagic.classpath"/>
  -
  -    <!-- Load all of the BuildMagic tasks -->
  -    <installtask classpathref="buildmagic.classpath">
  -      <task resource="planet57/tools/buildmagic/task/autoload.properties"/>
  -    </installtask>
  -
  -    <!-- Load common BuildMagic properties -->
  -    <property resource="planet57/tools/buildmagic/common.properties" 
  -           classpathref="buildmagic.classpath"/>
  -
  -    <!-- Load default task properties -->
  -    <property resource="planet57/tools/buildmagic/task.properties" 
  -           classpathref="buildmagic.classpath"/>
  -
       <!-- Show some informative fluff -->
  -    <echo>Project root is ${project.root}</echo>
  -    <echo>Module root is ${module.root}</echo>
  +    <echo>Project root: ${project.root}</echo>
  +    <echo>Module root: ${module.root}</echo>
   
       <!-- Execute module init hook -->
       <call target="init-hook" unless="bypass-init-hook"/>
  @@ -262,7 +251,9 @@
     </target>        
   
     <!-- Generate Javadoc if we are out of date -->
  -  <target name="javadocs" depends="javadocs-check" 
unless="javadoc-generated-already">
  +  <target name="javadocs" 
  +       depends="javadocs-check" 
  +       unless="javadoc-generated-already">
       <javadoc packagenames="${javadoc.packages}"
                sourcepath="${source.java}"
                destdir="${build.api}"
  @@ -374,6 +365,18 @@
     <!-- ================================================================== -->
     <!-- Other Targets                                                      -->
     <!-- ================================================================== -->
  +
  +  <target name="help">
  +    <projecthelp>
  +      <header/>
  +      <header>  The JBoss Jetty plugin source module.</header>
  +      <header/>
  +      <footer/>                                  
  +      <footer>    * default target is 'main'</footer>
  +      <footer>    * -projecthelp for all targets</footer>
  +      <footer>    * -help for full options</footer>
  +    </projecthelp>
  +  </target>
   
     <target name="main" depends="jars"
          description="Executes the default target (jars)."/>
  
  
  

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

Reply via email to