Changeset 3117

Show
Ignore:
Timestamp:
01/10/11 15:12:30
Author:
douglm
Message:

Bring all the sub-project builds into line for trunk and 3.7.

Added some default targets to the buildtools deftasks file allowing simplification of all build files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.7/build/buildTools/deftasks.xml

    r3115 r3117  
    5050       
    5151      <property name="dist.home" location="${project.home}/dist"/> 
     52      <mkdir dir="${dist.home}" /> 
     53 
    5254      <property name="lib.dir" location="${project.home}/lib"/> 
    5355 
     
    6365                location="${bedework.home}/libcache"/> 
    6466       
     67      <property name="org.bedework.temp.dir" 
     68                location="${dist.home}/temp" /> 
     69 
    6570      <if> 
    6671        <istrue value="@{subproject}" /> 
     
    6974        </then> 
    7075        <else> 
    71           <property name="org.bedework.temp.dir" 
    72                     location="${dist.home}/temp" /> 
    73  
    7476          <delete dir="${org.bedework.temp.dir}" /> 
    7577          <mkdir dir="${org.bedework.temp.dir}" /> 
     
    8486        </else> 
    8587      </if> 
    86     </sequential> 
    87   </macrodef> 
     88 
     89      <import file="${build.dir}/buildTools/getJar.xml"/> 
     90    </sequential> 
     91  </macrodef> 
     92 
     93  <!-- ===================================================================== 
     94       Assumes projectDefs was called previously. 
     95       ===================================================================== --> 
     96  <macrodef name="projectInit"> 
     97    <sequential> 
     98      <infoMsg message="* =========== Building ${project.name}" /> 
     99       
     100      <delete dir="${lib.dir}" /> 
     101      <mkdir dir="${lib.dir}" /> 
     102 
     103      <property name="test.data.dir" 
     104                location="${dist.home}/test-data" /> 
     105 
     106      <property name="test.reports.dir" 
     107                location="${dist.home}/test-reports" /> 
     108 
     109      <property name="edu.rpi.cmt.access.empty.dir" 
     110                location="${dist.home}/empty-dir" /> 
     111      <mkdir dir="${edu.rpi.cmt.access.empty.dir}" /> 
     112 
     113      <fileset id="empty.fileset" dir="${edu.rpi.cmt.access.empty.dir}" 
     114               excludes="*" /> 
     115 
     116      <!-- ==================== Compilation Classpath ==================== --> 
     117 
     118      <path id="compile.classpath"> 
     119        <fileset dir="${lib.dir}"> 
     120           <include name="*.jar"/> 
     121        </fileset> 
     122        <fileset dir="${dist.home}"> 
     123           <include name="*.jar"/> 
     124        </fileset> 
     125      </path> 
     126    </sequential> 
     127  </macrodef> 
     128   
     129  <!-- Standard targets for build files. Two targets need to be overridden by  
     130       the importing task 
     131        
     132       init - carry out project specific initialisation 
     133       build-source - builds the source to creat ejars. 
     134    --> 
     135   
     136  <!-- Override this --> 
     137  <target name="init" /> 
     138 
     139  <!-- Override this --> 
     140  <target name="build-source" /> 
     141 
     142  <!-- ================================================================= 
     143       Clean out all library files from other projects and all generated 
     144       files in preparation for a complete rebuild. 
     145 
     146       Needed because switching versions leaves a load of old bedework 
     147       generated stuff in the libraries. 
     148       ================================================================= --> 
     149  <target name="deep-clean" depends="clean"> 
     150    <delete dir="${lib.dir}" /> 
     151  </target> 
     152 
     153  <!-- ================================================================= 
     154       Clean all generated files 
     155       ================================================================= --> 
     156  <target name="clean"> 
     157    <delete dir="${dist.home}" /> 
     158  </target> 
     159 
     160  <!-- ================================================================= 
     161       Clean up after a build. 
     162       ================================================================= --> 
     163  <target name="cleanup"> 
     164    <delete dir="${edu.rpi.cmt.access.empty.dir}" /> 
     165  </target> 
     166 
     167  <!-- ========================== Base build Targets =================== 
     168       Here we have one target building the classes and interfaces that make 
     169       up the access control suite. 
     170       ================================================================= --> 
     171 
     172  <target name="clean-build" depends="clean,build" 
     173          description="Clean and compile access control classes"/> 
     174 
     175  <target name="clean-build-all" depends="clean,build-all" 
     176          description="Clean and compile access control classes"/> 
     177 
     178  <target name="build" depends="init,build-source,cleanup" 
     179          description="Compile access control classes"/> 
     180 
     181  <target name="build-all" depends="build" 
     182          description="Compile access control classes"/> 
    88183   
    89184  <macrodef name="build-jar"> 
  • releases/bedework-3.7/build/buildTools/wsimport.xml

    r3115 r3117  
    6363          <property name="wsimport.lib"  
    6464                    location="${org.bedework.temp.dir}/wsimportlib" /> 
     65          <mkdir dir="${org.bedework.temp.dir}" /> 
    6566          <delete dir="${wsimport.lib}" /> 
    6667          <mkdir dir="${wsimport.lib}" />