Annotation of needlesearch/build.xml, revision 1.2

1.1       eelco       1: <project name="CIP Webapp" default="make-xpi" basedir=".">
                      2: 
                      3:       <property file="build.${user.name}.properties"/>
                      4:       
                      5:       <property name="app.name" value="NeedleSearch"/>
                      6: 
                      7:   <!-- Actions -->
                      8: 
                      9:     <!-- Label the build -->
                     10:       <target name="label-build" description="Label the build">
                     11: 
                     12:         <propertyfile
                     13:             file="build-info.${user.name}.properties"
                     14:             comment="Build information" >
                     15:           <entry  key="developer" value="${user.name}" />
                     16:           <entry  key="date" type="date" value="now"/>
                     17:           <entry  key="build-nr" type="int" default="0" operation="+"/>
                     18:         </propertyfile>
                     19: 
                     20:         <propertyfile
                     21:             file="developer.properties"
                     22:             comment="Build information" >
                     23:           <entry  key="developer" value="${user.name}" />
                     24:         </propertyfile>
                     25: 
                     26:         <loadfile property="build-info-string" srcFile="build-info.${user.name}.properties">
                     27:           <filterchain>
                     28:             <striplinebreaks/>
                     29:           </filterchain>
                     30:         </loadfile>
                     31: 
                     32:         <!-- add to the build history -->
                     33:         <concat append="yes" destfile="build-history.${user.name}.txt" >${build-info-string}</concat>
                     34: 
                     35:       </target>
                     36: 
                     37: 
1.2     ! eelco      38:     <target name="copy-from-live" description="Copies files from the test environment to src tree">
1.1       eelco      39:         <echo message="Copy files from ..\..\browsers\mozilla${test.browser.version}\chrome\ "/>
1.2     ! eelco      40:         <copy todir="src/.">
        !            41:                <fileset dir="..\browsers\mozilla${test.browser.version}\chrome">
1.1       eelco      42:                  <exclude name="needlesearch/**/NeedleSearchData.rdf"/>
                     43:                  <include name="needlesearch/**/*.js"/>
                     44:                  <include name="needlesearch/**/*.xul"/>
                     45:                  <include name="needlesearch/**/*.dtd"/>
                     46:                  <include name="needlesearch/**/*.rdf"/>
                     47:                  <include name="needlesearch/**/*.properties"/>
                     48:                  <include name="needlesearch/**/*.gif"/>
1.2     ! eelco      49:                          <!--include name="needlesearch/**/*.png"/-->
1.1       eelco      50:                </fileset>              
                     51:         </copy>
1.2     ! eelco      52:     </target>
        !            53:     
1.1       eelco      54:     <target name="deploy-to-live" description="Deploy to live environment Mozilla ${test.browser.version}">
                     55:         
                     56:         <echo message="Copy files from src tree to Mozilla ${test.browser.version}"/>
1.2     ! eelco      57:         <copy todir="..\browsers\mozilla${test.browser.version}\chrome\">
        !            58:                <fileset dir="src/.">
1.1       eelco      59:                  <exclude name="needlesearch/**/NeedleSearchData.rdf"/>
                     60:                  <include name="needlesearch/**/*.js"/>
                     61:                  <include name="needlesearch/**/*.xul"/>
                     62:                  <include name="needlesearch/**/*.dtd"/>
                     63:                  <include name="needlesearch/**/*.rdf"/>
                     64:                  <include name="needlesearch/**/*.properties"/>
                     65:                  <include name="needlesearch/**/*.gif"/>
1.2     ! eelco      66:                          <!--include name="needlesearch/**/*.png"/-->
1.1       eelco      67:                </fileset>              
                     68:         </copy>
                     69:         
1.2     ! eelco      70:       </target>
        !            71: 
        !            72:     <target name="make-xpi" description="Make XPI for version ${app.version}" depends="label-build,copy-from-live">
        !            73:         <property file="build-info.${user.name}.properties"/>
        !            74:         
        !            75:         <echo message="Packaging webapp ${app.name}-${app.version}-(${build-nr}).xpi"/>
        !            76:         <jar jarfile="bin/${app.name}-${app.version}-(${build-nr}).xpi">
        !            77:                        <fileset dir="./src">
        !            78:                                          <exclude name="needlesearch/**/NeedleSearchData.rdf"/>
        !            79:                                          <include name="install.js"/>
        !            80:                                          <include name="needlesearch/**/*.js"/>
        !            81:                                          <include name="needlesearch/**/*.xul"/>
        !            82:                                          <include name="needlesearch/**/*.dtd"/>
        !            83:                                          <include name="needlesearch/**/*.rdf"/>
        !            84:                                          <include name="needlesearch/**/*.properties"/>
        !            85:                                          <include name="needlesearch/**/*.gif"/>
        !            86:                                          <!--include name="needlesearch/**/*.png"/-->
        !            87:                </fileset>              
        !            88:         </jar>
1.1       eelco      89:       </target>
                     90: 
                     91: </project>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>