File:  [mozdev] / needlesearch / build.xml
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Sun Mar 30 16:18:31 2003 UTC (17 years, 2 months ago) by eelco
Branches: MAIN
CVS tags: HEAD
no message

    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: 
   38:     <target name="copy-from-live" description="Copies files from the test environment to src tree">
   39:         <echo message="Copy files from ..\..\browsers\mozilla${test.browser.version}\chrome\ "/>
   40:         <copy todir="src/.">
   41:         	<fileset dir="..\browsers\mozilla${test.browser.version}\chrome">
   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"/>
   49: 			  <!--include name="needlesearch/**/*.png"/-->
   50:         	</fileset>		
   51:         </copy>
   52:     </target>
   53:     
   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}"/>
   57:         <copy todir="..\browsers\mozilla${test.browser.version}\chrome\">
   58:         	<fileset dir="src/.">
   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"/>
   66: 			  <!--include name="needlesearch/**/*.png"/-->
   67:         	</fileset>		
   68:         </copy>
   69:         
   70:       </target>
   71: 
   72:     <target name="make-xpi" description="Make XPI for version ${app.version}" depends="label-build">
   73:         <property file="build-info.${user.name}.properties"/>
   74:         
   75:         <echo message="Packaging webapp ${app.name}-${app.version}-nordf-(${build-nr}).xpi"/>
   76:         <zip destfile="bin/${app.name}-${app.version}-nordf-(${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:         </zip>
   89:       </target>
   90: 
   91:     <target name="make-da-xpi" description="Make XPI for Danish Language pack version ${app.version}" depends="label-build">
   92:         <echo message="Packaging webapp NS-da.xpi"/>
   93:         <zip destfile="bin/NS-da.xpi">
   94: 			<fileset dir="./src">
   95: 					  <exclude name="needlesearch/**/NeedleSearchData.rdf"/>
   96: 					  <include name="install.js"/>
   97: 					  <include name="needlesearch/locale/da/**/*.dtd"/>
   98: 					  <include name="needlesearch/locale/da/**/*.rdf"/>
   99: 					  <include name="needlesearch/locale/da/**/*.properties"/>
  100:         	</fileset>		
  101:         </zip>
  102:       </target>
  103: 
  104:     <target name="make-it-xpi" description="Make XPI for Italian Language pack version ${app.version}" depends="label-build">
  105:         <echo message="Packaging webapp NS-it.xpi"/>
  106:         <zip destfile="bin/NS-it.xpi">
  107: 			<fileset dir="./src">
  108: 					  <exclude name="needlesearch/**/NeedleSearchData.rdf"/>
  109: 					  <include name="install.js"/>
  110: 					  <include name="needlesearch/locale/it/**/*.dtd"/>
  111: 					  <include name="needlesearch/locale/it/**/*.rdf"/>
  112: 					  <include name="needlesearch/locale/it/**/*.properties"/>
  113:         	</fileset>		
  114:         </zip>
  115:       </target>
  116: 
  117:     <target name="make-xpi+rdf" description="Make XPI for version ${app.version}" depends="label-build">
  118:         <property file="build-info.${user.name}.properties"/>
  119:         
  120:         <echo message="Packaging webapp ${app.name}-${app.version}-withrdf-(${build-nr}).xpi"/>
  121:         <zip destfile="bin/${app.name}-${app.version}-withrdf-(${build-nr}).xpi">
  122: 			<fileset dir="./src">
  123: 					  <include name="install.js"/>
  124: 					  <include name="needlesearch/**/*.js"/>
  125: 					  <include name="needlesearch/**/*.xul"/>
  126: 					  <include name="needlesearch/**/*.dtd"/>
  127: 					  <include name="needlesearch/**/*.rdf"/>
  128: 					  <include name="needlesearch/**/*.properties"/>
  129: 					  <include name="needlesearch/**/*.gif"/>
  130: 					  <!--include name="needlesearch/**/*.png"/-->
  131:         	</fileset>		
  132:         </zip>
  133:       </target>
  134: 
  135:     <target name="make-deinstaller" description="Make deinstaller for the toolbar">
  136:         <property file="build-info.${user.name}.properties"/>
  137:         
  138:         <echo message="Packaging webapp deinstall-${app.name}.xpi"/>
  139:         <jar destfile="bin/Deinstall-${app.name}.xpi">
  140: 			<fileset dir="./deinstall-src">
  141: 					  <exclude name="needlesearch/**/NeedleSearchData.rdf"/>
  142: 					  <include name="install.js"/>
  143: 					  <include name="needlesearch/**/*.js"/>
  144: 					  <include name="needlesearch/**/*.xul"/>
  145: 					  <include name="needlesearch/**/*.dtd"/>
  146: 					  <include name="needlesearch/**/*.rdf"/>
  147: 					  <include name="needlesearch/**/*.properties"/>
  148: 					  <include name="needlesearch/**/*.gif"/>
  149: 					  <!--include name="needlesearch/**/*.png"/-->
  150:         	</fileset>		
  151:         </jar>
  152:       </target>
  153: 
  154:     <target name="make-example-nsbookmarks" description="Make XPI for version ${app.version}">
  155:         <property file="build-info.${user.name}.properties"/>
  156:         
  157:         <echo message="Packaging example rdf: example-rdf-${app.version}.xpi"/>
  158:         <zip destfile="bin/example-rdf-${app.version}.xpi">
  159: 			<fileset dir="./example-rdfs">
  160: 					  <include name="needlesearch/**/NeedleSearchData.rdf"/>
  161: 					  <include name="install.js"/>
  162:         	</fileset>		
  163:         </zip>
  164:       </target>
  165: 
  166: </project>

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