Annotation of googlebar/build.xml, revision 1.6

1.5       fernande    1: <project name="Googlebar" default="all" basedir=".">
1.1       fernande    2:        <description>Googlebar Ant Build File</description>
                      3: 
1.5       fernande    4:        <!-- update this value to point to your personal profile -->
1.6     ! fernande    5:        <property name="moz_prof" location="${user.home}/Application Data/Mozilla/Firefox/Profiles/default.b3a"/>
1.5       fernande    6:        
1.1       fernande    7:        <!-- set global properties for this build -->
                      8:        <property name="moz_exe"  value="firefox.exe"/>
                      9:        <property name="moz_dir"  location="/program files/mozilla firefox"/>
                     10:        <property name="moz_gb"   location="${moz_dir}/chrome/googlebar"/>
1.5       fernande   11:        <property name="moz_tmp"  location="/temp/"/>
1.1       fernande   12:        
1.5       fernande   13:        <property name="gb_ext"   location="${moz_prof}/extensions/{6b6601f1-361e-4b9f-bb6d-f8305000e4f6}"/>
1.1       fernande   14:        <property name="gb_dl"    location="downloads"/>
1.3       fernande   15:        <property name="gb_inst"  location="install"/>
                     16:        <property name="gb_src"   location="googlebar"/>
1.1       fernande   17:        
1.3       fernande   18:        <property name="firefox_jar" location="${moz_tmp}/googlebar.jar"/>
                     19:        <property name="firefox_xpi" location="${gb_dl}/XPI-rimental-ff.xpi"/>
                     20:        <property name="mozilla_xpi" location="${gb_dl}/XPI-rimental.xpi"/>
1.1       fernande   21: 
                     22:        <target name="build">
1.3       fernande   23:                <delete file="${firefox_jar}" failonerror="false"/>
1.5       fernande   24:                <zip destfile="${firefox_jar}" basedir="${gb_src}" excludes="CVS"/>
1.3       fernande   25:                
                     26:                <delete file="${firefox_xpi}" failonerror="false"/>
                     27:                <zip destfile="${firefox_xpi}">
                     28:                    <zipfileset dir="${gb_inst}/firefox" prefix=""/>
                     29:                    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix="defaults/preferences"/>
                     30:                    <zipfileset dir="${moz_tmp}" includes="googlebar.jar" prefix="chrome"/>
                     31:                </zip>
                     32:                
                     33:                <delete file="${mozilla_xpi}" failonerror="false"/>
                     34:                <zip destfile="${mozilla_xpi}">
                     35:                    <zipfileset dir="${gb_inst}/mozilla" prefix=""/>
                     36:                    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix=""/>
1.5       fernande   37:                    <zipfileset dir="${gb_src}" excludes="CVS" prefix="googlebar"/>
1.3       fernande   38:                </zip>
1.1       fernande   39:        </target>
1.5       fernande   40:                
                     41:        <target name="install">
                     42:                <antcall target="deploy"/>
                     43:                <antcall target="run"/>
                     44:        </target>
1.1       fernande   45:        
                     46:        <target name="deploy">
1.5       fernande   47:                <!--
1.2       fernande   48:                <delete includeEmptyDirs="true" failonerror="false">
1.1       fernande   49:                        <fileset dir="${moz_gb}"/>
                     50:                </delete>
                     51:                <mkdir dir="${moz_gb}"/>
                     52:                <copy todir="${moz_gb}" overwrite="true">
1.5       fernande   53:                        <fileset dir="${gb_src}" excludes="**/googlebarIsNew"/>
1.1       fernande   54:                </copy>
1.5       fernande   55:                -->
                     56:                <unzip src="${firefox_xpi}" dest="${gb_ext}"/>
1.1       fernande   57:        </target>
                     58:        
1.5       fernande   59:        <target name="run">
                     60:                <exec dir="${moz_dir}" executable="${moz_dir}/${moz_exe}" spawn="true"/>
1.1       fernande   61:        </target>
                     62:        
1.5       fernande   63:        <target name="all">
                     64:                <antcall target="build"/>
                     65:                <antcall target="install"/>
1.1       fernande   66:        </target>
                     67: </project>

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