File:  [mozdev] / needlesearch / build.xml
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Wed Feb 19 11:54:24 2003 UTC (17 years, 1 month ago) by eelco
Branches: MAIN
CVS tags: HEAD
no message

<project name="CIP Webapp" default="make-xpi" basedir=".">

      <property file="build.${user.name}.properties"/>
      
      <property name="app.name" value="NeedleSearch"/>

  <!-- Actions -->

    <!-- Label the build -->
      <target name="label-build" description="Label the build">

        <propertyfile
            file="build-info.${user.name}.properties"
            comment="Build information" >
          <entry  key="developer" value="${user.name}" />
          <entry  key="date" type="date" value="now"/>
          <entry  key="build-nr" type="int" default="0" operation="+"/>
        </propertyfile>

        <propertyfile
            file="developer.properties"
            comment="Build information" >
          <entry  key="developer" value="${user.name}" />
        </propertyfile>

        <loadfile property="build-info-string" srcFile="build-info.${user.name}.properties">
          <filterchain>
            <striplinebreaks/>
          </filterchain>
        </loadfile>

        <!-- add to the build history -->
        <concat append="yes" destfile="build-history.${user.name}.txt" >${build-info-string}</concat>

      </target>


    
    <target name="make-xpi" description="Make XPI for version ${app.version}" depends="label-build">
        
        
        <echo message="Copy files from ..\..\browsers\mozilla${test.browser.version}\chrome\ "/>
        <copy todir="src">
        	<fileset dir="..\browsers\mozilla${test.browser.version}\chrome\">
        	  <exclude name="needlesearch/**/NeedleSearchData.rdf"/>
        	  <include name="needlesearch/**/*.js"/>
        	  <include name="needlesearch/**/*.xul"/>
        	  <include name="needlesearch/**/*.dtd"/>
        	  <include name="needlesearch/**/*.rdf"/>
        	  <include name="needlesearch/**/*.properties"/>
        	  <include name="needlesearch/**/*.gif"/>
        	  <include name="needlesearch/**/*.png"/>
        	</fileset>		
        </copy>
        
        <property file="build-info.${user.name}.properties"/>
        
        <echo message="Packaging webapp ${app.name}-${app.version}-(${build-nr}).xpi"/>
        <jar jarfile="bin/${app.name}-${app.version}-(${build-nr}).xpi">
			<fileset dir=".">
					  <exclude name="src/needlesearch/**/NeedleSearchData.rdf"/>
					  <include name="src/install.js"/>
					  <include name="src/needlesearch/**/*.js"/>
					  <include name="src/needlesearch/**/*.xul"/>
					  <include name="src/needlesearch/**/*.dtd"/>
					  <include name="src/needlesearch/**/*.rdf"/>
					  <include name="src/needlesearch/**/*.properties"/>
					  <include name="src/needlesearch/**/*.gif"/>
					  <include name="src/needlesearch/**/*.png"/>
        	</fileset>		
        </jar>
      </target>
	
    <target name="deploy-to-live" description="Deploy to live environment Mozilla ${test.browser.version}">
        
        <echo message="Copy files from src tree to Mozilla ${test.browser.version}"/>
        <copy todir="..\..\browsers\mozilla${test.browser.version}\chrome\">
        	<fileset dir=".">
        	  <exclude name="needlesearch/**/NeedleSearchData.rdf"/>
        	  <include name="needlesearch/**/*.js"/>
        	  <include name="needlesearch/**/*.xul"/>
        	  <include name="needlesearch/**/*.dtd"/>
        	  <include name="needlesearch/**/*.rdf"/>
        	  <include name="needlesearch/**/*.properties"/>
        	  <include name="needlesearch/**/*.gif"/>
        	  <include name="needlesearch/**/*.png"/>
        	</fileset>		
        </copy>
        
      </target>

</project>

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