Subversion Repositories eFlore/Archives.eflore-xul

Rev

Blame | Last modification | View Log | Download | RSS feed

<project name="lexique" default="xpi" basedir=".">

 <description>

 </description>

 <!-- ////// GLOBAL PROPERTIES ////// -->  
 <property name="src"   location="src"/>
 <property name="dist" location="dist"/>
 <property name="build" location="build"/>

 <property name="package.name" value="lexique.jar"/>
 <property name="xpi.name" value="lexique_0.1.xpi"/>

 <!-- INIT : Initialisation du script -->
 <target name="init" description="Initialisation du script">

  <delete dir="${dist}"/>
  <delete dir="${build}"/>
  <mkdir dir="${dist}"/>
  <mkdir dir="${build}"/>
  <mkdir dir="${build}/chrome"/>

 </target>

 <!-- generation du jar -->
 <target name="jar" description="Generation du jar" >

  <zip destfile="${build}/chrome/${package.name}" >
        <fileset dir="${src}/chrome" includes="**/*"/>
  </zip>
       
  <copy todir="${build}" filtering="true" flatten="false">     
        <fileset dir="${src}">
                <include name="**/install.js"/>
                <include name="**/install.rdf"/>
        </fileset>
  </copy>

 </target>
 
 <!-- generation du xpi -->
 <target name="xpi" description="Generation du xpi" depends="init,jar">
          <zip destfile="${dist}/${xpi.name}" >
                <fileset dir="${build}" includes="**/*"/>
          </zip>        
 </target>
 
</project>