File:  [mozdev] / attachmentcount / build.xml
Revision 1.10: download - view: text, annotated - select for diffs - revision graph
Tue Jul 12 00:00:39 2016 UTC (3 years, 5 months ago) by alta88
Branches: MAIN
CVS tags: HEAD
AttachmentCount v2.3

<?xml version="1.0" ?>

<project name="AttachmentCount" default="make.flat.xpi">
  <property name="src.dir" value="src" />
  <property name="dist.dir" value="downloads" />
  <property name="app.name" value="AttachmentCount-2.3" />

  <target name="make.jar">
    <mkdir dir="${dist.dir}" />
    <zip destfile="${dist.dir}/${app.name}.jar">
      <fileset dir="${src.dir}">
        <include name="chrome/**" />
        <exclude name="**/.*" />
        <exclude name="**/CVS/**" />
      </fileset>
      <fileset dir="${www.dir}">
        <include name="README.txt" />
      </fileset>
    </zip>
  </target>

  <target name="make.xpi" depends="make.jar">
    <zip destfile="${dist.dir}/${app.name}_jar.xpi">
      <zipfileset file="${dist.dir}/${app.name}.jar" prefix="chrome"/>
      <fileset dir="${src.dir}">
        <include name="content/**" />
        <include name="components/**" />
        <include name="defaults/**" />
        <include name="locale/**" />
        <include name="modules/**" />
        <include name="skin/**" />
        <include name="chrome.manifest" />
        <include name="install.rdf" />
        <include name="license.txt" />
        <exclude name="**/.*" />
        <exclude name="**/CVS/**" />
      </fileset>
      <fileset dir="${www.dir}">
        <include name="README.txt" />
      </fileset>
    </zip>
  </target>

  <target name="make.flat.xpi">
    <zip destfile="${dist.dir}/${app.name}.xpi">
      <fileset dir="${src.dir}">
        <include name="content/**" />
        <include name="components/**" />
        <include name="defaults/**" />
        <include name="locale/**" />
        <include name="modules/**" />
        <include name="skin/**" />
        <include name="chrome.manifest" />
        <include name="install.rdf" />
        <include name="license.txt" />
        <exclude name="**/.*" />
        <exclude name="**/CVS/**" />
      </fileset>
    </zip>
  </target>

</project>

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