Changeset 1951

Show
Ignore:
Timestamp:
11/07/08 10:32:13
Author:
douglm
Message:

Changes to the build process an adding some install scripts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk

    • Property svn:externals changed from projects/access https://www.bedework.org/svn/access/trunk projects/bwtools https://www.bedework.org/svn/bwtools/trunk projects/caldav https://www.bedework.org/svn/caldav/trunk projects/caldavTest https://www.bedework.org/svn/caldavTest/trunk projects/calendarapi https://www.bedework.org/svn/calendarapi/trunk projects/contrib https://www.bedework.org/svn/contrib/trunk projects/davutil https://www.bedework.org/svn/davutil/trunk projects/dumprestore https://www.bedework.org/svn/dumprestore/trunk projects/freebusy https://www.bedework.org/svn/freebusy/trunk projects/rpiutil https://www.bedework.org/svn/rpiutil/trunk projects/synchml https://www.bedework.org/svn/synchml/trunk projects/testsuite https://www.bedework.org/svn/testsuite/trunk projects/webapps https://www.bedework.org/svn/webapps/trunk projects/webdav https://www.bedework.org/svn/webdav/trunk to build/buildTools https://www.bedework.org/svn/buildTools/trunk projects/access https://www.bedework.org/svn/access/trunk projects/bwtools https://www.bedework.org/svn/bwtools/trunk projects/caldav https://www.bedework.org/svn/caldav/trunk projects/caldavTest https://www.bedework.org/svn/caldavTest/trunk projects/calendarapi https://www.bedework.org/svn/calendarapi/trunk projects/contrib https://www.bedework.org/svn/contrib/trunk projects/davutil https://www.bedework.org/svn/davutil/trunk projects/dumprestore https://www.bedework.org/svn/dumprestore/trunk projects/freebusy https://www.bedework.org/svn/freebusy/trunk projects/rpiutil https://www.bedework.org/svn/rpiutil/trunk projects/synchml https://www.bedework.org/svn/synchml/trunk projects/testsuite https://www.bedework.org/svn/testsuite/trunk projects/webapps https://www.bedework.org/svn/webapps/trunk projects/webdav https://www.bedework.org/svn/webdav/trunk
  • trunk/build.properties

    r1492 r1951  
    11# 
    2 # Properties for he bedework main project build. 
     2# Properties for the bedework main project build. 
    33# 
    44 
     
    77 
    88# Version we are building 
    9 org.bedework.version=3.4 
     9org.bedework.version=3.5 
    1010 
    1111# Name of generated jar files 
  • trunk/build.xml

    r1946 r1951  
    1515  <property name="org.bedework.project.bedework" 
    1616            location="${basedir}" /> 
     17 
     18    <property name="org.bedework.libcache.dir" 
     19              location="${org.bedework.project.bedework}/libcache"/> 
    1720 
    1821  <!-- Where we put other projects --> 
     
    136139    <property name="buildwar" location="${build.dir}/buildwar.xml"/> 
    137140 
    138     <property name="org.bedework.libcache.dir" 
    139               location="${project.home}/libcache"/> 
    140  
    141141    <property name="org.bedework.build.caldav" value="yes" /> 
    142142 
     
    395395          description="builds the access project"> 
    396396    <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false" 
    397            target="build-all" /> 
     397           target="build-all" > 
     398      <property name="org.bedework.libcache.dir" 
     399                location="${org.bedework.project.bedework}/libcache"/> 
     400    </ant> 
    398401  </target> 
    399402 
     
    413416          description="builds the bwtools project"> 
    414417    <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false" 
    415            target="build-all" /> 
     418           target="build-all"  > 
     419      <property name="org.bedework.libcache.dir" 
     420                location="${org.bedework.project.bedework}/libcache"/> 
     421    </ant> 
    416422  </target> 
    417423 
     
    430436  <target name="build.caldav" depends="init" 
    431437          description="builds the caldav project"> 
    432     <if> 
    433       <isset property="org.bedework.qs.build.caldav"/> 
    434       <then> 
    435         <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false" 
    436              target="build-all" /> 
    437       </then> 
    438     </if> 
     438    <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false" 
     439       target="build-all"  > 
     440      <property name="org.bedework.libcache.dir" 
     441                location="${org.bedework.project.bedework}/libcache"/> 
     442    </ant> 
    439443  </target> 
    440444 
    441445  <target name="clean.caldav" depends="init" 
    442446          description="clean the caldav project"> 
    443     <if> 
    444       <isset property="org.bedework.qs.build.caldav"/> 
    445       <then> 
    446         <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false" 
    447              target="deep-clean" /> 
    448       </then> 
    449     </if> 
     447    <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false" 
     448         target="deep-clean" /> 
    450449  </target> 
    451450 
     
    458457  <target name="build.caldavTest" depends="init" 
    459458          description="builds the caldavTest project"> 
    460     <if> 
    461       <isset property="org.bedework.qs.build.caldav"/> 
    462       <then> 
    463         <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false" 
    464              target="build-all" /> 
    465       </then> 
    466     </if> 
     459    <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false" 
     460         target="build-all"  > 
     461      <property name="org.bedework.libcache.dir" 
     462                location="${org.bedework.project.bedework}/libcache"/> 
     463    </ant> 
    467464  </target> 
    468465 
    469466  <target name="clean.caldavTest" depends="init" 
    470467          description="clean the caldavTest project"> 
    471     <if> 
    472       <isset property="org.bedework.qs.build.caldav"/> 
    473       <then> 
    474         <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false" 
    475              target="deep-clean" /> 
    476       </then> 
    477     </if> 
     468    <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false" 
     469         target="deep-clean" /> 
    478470  </target> 
    479471 
     
    487479          description="builds the calendar project"> 
    488480    <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false" 
    489            target="build-all" /> 
     481           target="build-all"  > 
     482      <property name="org.bedework.libcache.dir" 
     483                location="${org.bedework.project.bedework}/libcache"/> 
     484    </ant> 
    490485  </target> 
    491486 
     
    505500          description="builds the davutil project"> 
    506501    <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false" 
    507            target="build-all" /> 
     502           target="build-all"  > 
     503      <property name="org.bedework.libcache.dir" 
     504                location="${org.bedework.project.bedework}/libcache"/> 
     505    </ant> 
    508506  </target> 
    509507 
     
    523521          description="builds the dumprestore project"> 
    524522    <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false" 
    525            target="build-all" /> 
     523           target="build-all"  > 
     524      <property name="org.bedework.libcache.dir" 
     525                location="${org.bedework.project.bedework}/libcache"/> 
     526    </ant> 
    526527  </target> 
    527528 
     
    544545      <then> 
    545546        <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false" 
    546              target="build-all" /> 
     547             target="build-all"  > 
     548          <property name="org.bedework.libcache.dir" 
     549                    location="${org.bedework.project.bedework}/libcache"/> 
     550        </ant> 
    547551      </then> 
    548552    </if> 
     
    569573          description="builds the rpiutil project"> 
    570574    <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false" 
    571            target="build-all" /> 
     575           target="build-all"  > 
     576      <property name="org.bedework.libcache.dir" 
     577                location="${org.bedework.project.bedework}/libcache"/> 
     578    </ant> 
    572579  </target> 
    573580 
     
    590597      <then> 
    591598        <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false" 
    592              target="build-all" /> 
     599             target="build-all"  > 
     600          <property name="org.bedework.libcache.dir" 
     601                    location="${org.bedework.project.bedework}/libcache"/> 
     602        </ant> 
    593603      </then> 
    594604    </if> 
     
    615625          description="builds the testsuite project"> 
    616626    <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false" 
    617          target="build-all" /> 
     627         target="build-all"  > 
     628      <property name="org.bedework.libcache.dir" 
     629                location="${org.bedework.project.bedework}/libcache"/> 
     630    </ant> 
    618631  </target> 
    619632 
     
    633646          description="builds the webapps project"> 
    634647    <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false" 
    635            target="build-all" /> 
     648           target="build-all"  > 
     649      <property name="org.bedework.libcache.dir" 
     650                location="${org.bedework.project.bedework}/libcache"/> 
     651    </ant> 
    636652  </target> 
    637653 
     
    650666  <target name="build.webdav" depends="init" 
    651667          description="builds the webdav project"> 
    652     <if> 
    653       <isset property="org.bedework.qs.build.caldav"/> 
    654       <then> 
    655         <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false" 
    656              target="build-all" /> 
    657       </then> 
    658     </if> 
     668    <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false" 
     669         target="build-all"  > 
     670      <property name="org.bedework.libcache.dir" 
     671                location="${org.bedework.project.bedework}/libcache"/> 
     672    </ant> 
    659673  </target> 
    660674 
    661675  <target name="clean.webdav" depends="init" 
    662676          description="cleans the webdav project"> 
    663     <if> 
    664       <isset property="org.bedework.qs.build.caldav"/> 
    665       <then> 
    666         <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false" 
    667              target="deep-clean" /> 
    668       </then> 
    669     </if> 
     677    <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false" 
     678         target="deep-clean" /> 
    670679  </target> 
    671680 
     
    697706        <propertyref prefix="org.bedework.directory."/> 
    698707      </propertyset> 
     708      <property name="org.bedework.libcache.dir" 
     709                location="${org.bedework.project.bedework}/libcache"/> 
     710    </antfetch> 
     711  </target> 
     712 
     713  <target name="initDirForQuickstart" depends="init" 
     714          description="Build and run directory tool to initialise a quickstart system"> 
     715    <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false" 
     716              target="initDirForQuickstart" 
     717              return="org.bedework.directory.init.status" > 
     718      <propertyset> 
     719        <propertyref prefix="org.bedework.directory."/> 
     720      </propertyset> 
     721      <property name="org.bedework.libcache.dir" 
     722                location="${org.bedework.project.bedework}/libcache"/> 
    699723    </antfetch> 
    700724  </target> 
     
    707731        <propertyref prefix="org.bedework.directory."/> 
    708732      </propertyset> 
     733      <property name="org.bedework.libcache.dir" 
     734                location="${org.bedework.project.bedework}/libcache"/> 
    709735    </ant> 
    710736  </target> 
     
    717743        <propertyref prefix="org.bedework.directory."/> 
    718744      </propertyset> 
     745      <property name="org.bedework.libcache.dir" 
     746                location="${org.bedework.project.bedework}/libcache"/> 
    719747    </ant> 
    720748  </target> 
     
    727755        <propertyref prefix="org.bedework.directory."/> 
    728756      </propertyset> 
     757      <property name="org.bedework.libcache.dir" 
     758                location="${org.bedework.project.bedework}/libcache"/> 
    729759    </ant> 
    730760  </target> 
  • trunk/build/buildjar.xml

    r1134 r1951  
    8585        <echo message="**** ${build.jar.file} is up to date" /> 
    8686      </then> 
    87     </if> 
    88  
    89     <if> 
    90       <not> 
    91         <isset property="build.jar.uptodate"/> 
    92       </not> 
    93       <then> 
     87      <else> 
    9488        <echo message="**** ${build.jar.file} needs rebuilding" /> 
    9589 
     
    147141        <delete dir="${jar.temp.sources}" /> 
    148142        <delete dir="${jar.temp.classes}"/> 
    149       </then
     143      </else
    150144    </if> 
    151145  </target> 
  • trunk/build/getJar.xml

    r1933 r1951  
    2828    <attribute name="src" default="http://bedework.org/downloads/lib"/> 
    2929    <attribute name="lib" default="${lib.dir}"/> 
    30     <attribute name="libcache" default="@{lib}/../libcache"/> 
     30    <attribute name="libcache" default="${org.bedework.libcache.dir}"/> 
    3131    <attribute name="property" default="" /> 
    3232    <attribute name="project" default="" /> 
  • trunk/build/quickstart/install.xml

    r1946 r1951  
    7878      <sequential> 
    7979        <sleep seconds="10" /> 
    80         <antcallback target="initDir" inheritrefs="true" 
     80        <antcallback target="initDirForQuickstart" inheritrefs="true" 
    8181                     return="org.bedework.directory.init.status" /> 
    8282        <if> 
     
    9292              <echo message="The directory appears to be initialised already" /> 
    9393              <echo message="========================================================" /> 
    94  
    95               <input message="Continue with adding users/groups? yes/no" 
    96                      addproperty="org.bedework.install.dirinit.reply" /> 
    97               <echo message="" /> 
    9894            </then> 
    9995          </elseif> 
     
    10298 
    10399          </else> 
    104         </if> 
    105  
    106         <if> 
    107           <equals arg1="${org.bedework.install.dirinit.reply}" arg2="yes" /> 
    108           <then> 
    109             <echo message="======== super user info =======" /> 
    110  
    111             <input message="Account name for superuser" 
    112                    defaultvalue="caladmin" 
    113                    addproperty="org.bedework.install.superuser.account" /> 
    114  
    115             <input message="Account password for superuser" 
    116                    addproperty="org.bedework.install.superuser.password" /> 
    117  
    118             <echo message="======== Administrative user info =======" /> 
    119  
    120             <input message="Account name for an administrative user" 
    121                    defaultvalue="calowner01" 
    122                    addproperty="org.bedework.install.admin.account" /> 
    123  
    124             <input message="Account password for an administrative user" 
    125                    addproperty="org.bedework.install.admin.password" /> 
    126  
    127             <echo message="======== personal calendar user info =======" /> 
    128  
    129             <input message="Account name for a test user" 
    130                    defaultvalue="testuser01" 
    131                    addproperty="org.bedework.install.testuser.account" /> 
    132  
    133             <input message="Account password for test user" 
    134                    addproperty="org.bedework.install.testuser.password" /> 
    135  
    136             <echo message="======== Create superuser =======" /> 
    137  
    138             <addBedeworkUser account="${org.bedework.install.superuser.account}" 
    139                              firstName="first" 
    140                              lastName="last" 
    141                              password="${org.bedework.install.superuser.account}" /> 
    142  
    143             <echo message="======== Create administrative user =======" /> 
    144  
    145             <addBedeworkUser account="${org.bedework.install.admin.account}" 
    146                              firstName="first" 
    147                              lastName="last" 
    148                              password="${org.bedework.install.admin.account}" /> 
    149  
    150             <echo message="======== Create personal calendar user =======" /> 
    151  
    152             <addBedeworkUser account="${org.bedework.install.testuser.account}" 
    153                              firstName="first" 
    154                              lastName="last" 
    155                              password="${org.bedework.install.testuser.account}" /> 
    156           </then> 
    157100        </if> 
    158101 
     
    177120  </target> 
    178121 
     122  <target name="getUserInfo"> 
     123    <input message="Account name:" 
     124           addproperty="org.bedework.install.user.account" /> 
     125 
     126    <input message="First name:" 
     127           defaultValue="First" 
     128           addproperty="org.bedework.install.user.firstname" /> 
     129 
     130    <input message="Last name:" 
     131           defaultValue="Last" 
     132           addproperty="org.bedework.install.user.lastname" /> 
     133 
     134    <input message="Account password:" 
     135           addproperty="org.bedework.install.user.password" /> 
     136 
     137    <var name="org.bedework.install.user.info" 
     138         value="${org.bedework.install.user.account}" /> 
     139 
     140    <var name="org.bedework.install.user.info" 
     141         value="${org.bedework.install.user.info} ${org.bedework.install.user.firstname}" /> 
     142 
     143    <var name="org.bedework.install.user.info" 
     144         value="${org.bedework.install.user.info} ${org.bedework.install.user.lastname}" /> 
     145 
     146    <var name="org.bedework.install.user.info" 
     147         value="${org.bedework.install.user.info} ${org.bedework.install.user.password}" /> 
     148  </target> 
     149 
    179150  <macrodef name="initDirectory"> 
    180151    <sequential> 
  • trunk/build/quickstart/run-dir.xml

    r1946 r1951  
    8282  </target> 
    8383 
     84  <target name="initDirForQuickstart" depends="run.init" 
     85          description="Build and run directory init"> 
     86    <antfetch antfile="${bedework.build.file}" inheritrefs="true" 
     87              target="initDirForQuickstart" 
     88              return="org.bedework.directory.init.status" /> 
     89  </target> 
     90 
    8491  <target name="addUser" depends="run.init" 
    8592          description="Build and run directory tools to add a user"> 
  • trunk/deployment/appjars.xml

    r1937 r1951  
    211211 
    212212      <getJar lib="${org.bedework.app.lib}" 
     213              name="bw-tools" version="3.5" 
     214              projecthome="${project.home}/projects/bwtools" /> 
     215 
     216      <getJar lib="${org.bedework.app.lib}" 
    213217              name="rpiutil" version="3.5" 
    214218              projecthome="${project.home}/projects/rpiutil" />