Annotation of googlebar/build.xml, revision 1.4

1.1       fernande    1: <project name="Googlebar" default="install" basedir=".">
                      2:        <description>Googlebar Ant Build File</description>
                      3: 
                      4:        <!-- set global properties for this build -->
                      5:        <property name="moz_exe"  value="firefox.exe"/>
                      6:        <property name="moz_dir"  location="/program files/mozilla firefox"/>
                      7:        <property name="moz_gb"   location="${moz_dir}/chrome/googlebar"/>
1.3       fernande    8:        <property name="moz_tmp"   location="/temp/"/>
1.1       fernande    9:        
                     10:        <property name="gb_dl"    location="downloads"/>
1.3       fernande   11:        <property name="gb_inst"  location="install"/>
                     12:        <property name="gb_src"   location="googlebar"/>
1.1       fernande   13:        
1.3       fernande   14:        <property name="firefox_jar" location="${moz_tmp}/googlebar.jar"/>
                     15:        <property name="firefox_xpi" location="${gb_dl}/XPI-rimental-ff.xpi"/>
                     16:        <property name="mozilla_xpi" location="${gb_dl}/XPI-rimental.xpi"/>
1.1       fernande   17: 
                     18:        <target name="build">
1.3       fernande   19:                <delete file="${firefox_jar}" failonerror="false"/>
                     20:                <zip destfile="${firefox_jar}" basedir="${gb_src}/googlebar" excludes="CVS"/>
                     21:                
                     22:                <delete file="${firefox_xpi}" failonerror="false"/>
                     23:                <zip destfile="${firefox_xpi}">
                     24:                    <zipfileset dir="${gb_inst}/firefox" prefix=""/>
                     25:                    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix="defaults/preferences"/>
                     26:                    <zipfileset dir="${moz_tmp}" includes="googlebar.jar" prefix="chrome"/>
                     27:                </zip>
                     28:                
                     29:                <delete file="${mozilla_xpi}" failonerror="false"/>
                     30:                <zip destfile="${mozilla_xpi}">
                     31:                    <zipfileset dir="${gb_inst}/mozilla" prefix=""/>
                     32:                    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix=""/>
1.4     ! fernande   33:                    <zipfileset dir="${gb_src}" excludes="CVS gbfx/**" prefix=""/>
1.3       fernande   34:                </zip>
1.1       fernande   35:        </target>
                     36:        
                     37:        <target name="deploy">
1.2       fernande   38:                <delete includeEmptyDirs="true" failonerror="false">
1.1       fernande   39:                        <fileset dir="${moz_gb}"/>
                     40:                </delete>
                     41:                <mkdir dir="${moz_gb}"/>
                     42:                <copy todir="${moz_gb}" overwrite="true">
1.3       fernande   43:                        <fileset dir="${gb_src}/googlebar" excludes="**/googlebarIsNew"/>
1.1       fernande   44:                </copy>
                     45:        </target>
                     46:        
                     47:        <target name="install">
                     48:                <antcall target="deploy"/>
                     49:                <antcall target="run"/>
                     50:        </target>
                     51:        
                     52:        <target name="run">
                     53:                <exec dir="${moz_dir}" executable="${moz_dir}/${moz_exe}" spawn="true"/>
                     54:        </target>
                     55: </project>

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