2002-10-02 22:23:47 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
|
|
|
|
* Ed Burns >edburns@acm.org<
|
|
|
|
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="java.supplement.build" default="main" basedir=".">
|
|
|
|
|
|
|
|
<property name="Name" value="java.supplement.build"/>
|
|
|
|
<property name="name" value="java.supplement.build"/>
|
2002-11-09 23:03:06 +00:00
|
|
|
<property name="version" value="20021109"/>
|
2002-10-02 22:23:47 +00:00
|
|
|
|
|
|
|
<!-- ************ Per user local properties ******************************* -->
|
|
|
|
|
|
|
|
<property file="${user.home}/build.properties"/> <!-- User local -->
|
|
|
|
<property file="../build.properties"/> <!-- Component local -->
|
|
|
|
<property environment="myenv" />
|
|
|
|
|
|
|
|
<property name="package.home" value="${build.home}/../javadev"/>
|
|
|
|
<property name="package.lib" value="${package.home}/lib"/>
|
|
|
|
<property name="package.example" value="${package.home}/example"/>
|
2002-11-09 23:03:06 +00:00
|
|
|
<property name="package.manifest" value="${build.home}/META-INF/MANIFEST.MF"/>
|
|
|
|
<property name="package.version" value="1_3"/>
|
2002-11-12 02:52:18 +00:00
|
|
|
<property name="dist" value="${build.home}/.."/>
|
2002-10-02 22:23:47 +00:00
|
|
|
|
2002-11-12 02:52:18 +00:00
|
|
|
<target name="main" depends="prepare,set.debug.vars,build.webclient"/>
|
2002-10-02 22:23:47 +00:00
|
|
|
|
2002-11-09 23:03:06 +00:00
|
|
|
<target name="prepare">
|
|
|
|
|
|
|
|
<condition property="short.os.name" value="win32">
|
|
|
|
<os family="dos" />
|
|
|
|
</condition>
|
2002-10-02 22:23:47 +00:00
|
|
|
|
2002-11-12 02:52:18 +00:00
|
|
|
<condition property="win.bin" value="WIN32_O.OBJ">
|
|
|
|
<os family="dos" />
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="so.suffix" value="dll">
|
|
|
|
<os family="dos" />
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="so.suffix" value="so">
|
|
|
|
<os family="unix" />
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="ar.suffix" value="lib">
|
|
|
|
<os family="dos" />
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="ar.suffix" value="a">
|
|
|
|
<os family="unix" />
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
|
2002-10-02 22:23:47 +00:00
|
|
|
<mkdir dir="${package.home}"/>
|
|
|
|
<mkdir dir="${package.lib}"/>
|
|
|
|
<mkdir dir="${package.example}"/>
|
2002-11-09 23:03:06 +00:00
|
|
|
<mkdir dir="${build.home}/META-INF"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2002-11-12 02:52:18 +00:00
|
|
|
|
|
|
|
<target name="set.debug.vars" if="compile.debug">
|
|
|
|
|
|
|
|
<!-- This target sets the WIN32_D.OBJ or WIN32_O.OBJ thingy -->
|
|
|
|
|
|
|
|
<condition property="win.bin" value="WIN32_D.OBJ">
|
|
|
|
<and>
|
|
|
|
<os family="dos" />
|
|
|
|
<equals arg1="${compile.debug}" arg2="true"/>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2002-11-09 23:03:06 +00:00
|
|
|
<target name="build.webclient"
|
2002-11-20 03:42:27 +00:00
|
|
|
depends="create.webclient.manifest,build.webclient.jar,create.webclient.scripts">
|
2002-10-02 22:23:47 +00:00
|
|
|
|
2002-11-12 02:52:18 +00:00
|
|
|
<copy file="${dist}/${win.bin}/bin/components/javadomjni.${so.suffix}"
|
|
|
|
todir="${package.lib}"/>
|
|
|
|
<copy file="${dist}/${win.bin}/bin/components/javadom.${so.suffix}"
|
|
|
|
todir="${package.lib}"/>
|
|
|
|
<copy file="${dist}/${win.bin}/bin/webclient.${so.suffix}"
|
|
|
|
todir="${package.lib}"/>
|
|
|
|
<copy file="${dist}/${win.bin}/lib/wc_share.${ar.suffix}"
|
|
|
|
todir="${package.lib}"/>
|
2002-11-20 03:42:27 +00:00
|
|
|
<copy file="../webclient/src_share/runem.pl"
|
|
|
|
todir="${package.example}"/>
|
|
|
|
<copy file="README.WEBCLIENT"
|
|
|
|
todir="${package.home}"/>
|
|
|
|
|
|
|
|
<chmod perm="775" file="${package.lib}/javadomjni.${so.suffix}"/>
|
|
|
|
<chmod perm="775" file="${package.lib}/javadom.${so.suffix}"/>
|
|
|
|
<chmod perm="775" file="${package.lib}/webclient.${ar.suffix}"/>
|
|
|
|
<chmod perm="775" file="${package.lib}/wc_share.${ar.suffix}"/>
|
|
|
|
<chmod perm="775" file="${package.example}/runem.pl"/>
|
|
|
|
|
|
|
|
<jar jarfile="webclient_${package.version}_${short.os.name}.xpi"
|
|
|
|
basedir="${dist}" includes="install.js,javadev/**"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="create.webclient.scripts" depends="create.win32.webclient.scripts,create.unix.webclient.scripts"/>
|
|
|
|
|
|
|
|
<target name="create.win32.webclient.scripts" if="build.win32.classes">
|
|
|
|
|
|
|
|
<echo file="${package.example}/runem.bat">set CLASSPATH=..\lib\webclient_${package.version}_${short.os.name}.jar
|
|
|
|
perl .\runem.pl org.mozilla.webclient.test.EmbeddedMozillaImpl ..\.. %1%
|
|
|
|
</echo>
|
|
|
|
<chmod perm="775" file="${package.example}/runem.bat"/>
|
|
|
|
|
|
|
|
<copy file="install_webclient_win32.js"
|
|
|
|
tofile="${dist}/install.js"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="create.unix.webclient.scripts" if="build.unix.classes">
|
|
|
|
|
2002-10-02 22:23:47 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
|
|
|
|
<delete dir="${package.home}"/>
|
2002-11-09 23:03:06 +00:00
|
|
|
<delete dir="${build.home}/META-INF"/>
|
2002-11-20 03:42:27 +00:00
|
|
|
<delete file="${dist}/install.js"/>
|
2002-11-09 23:03:06 +00:00
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="create.webclient.manifest">
|
|
|
|
|
|
|
|
<echo file="${package.manifest}">Manifest-Version: 1.0
|
|
|
|
Created-By: Webclient Build System
|
|
|
|
Specification-Title: Webclient
|
|
|
|
Specification-Version: 1.0
|
|
|
|
Specification-Vendor: mozilla.org
|
|
|
|
Implementation-Title: Webclient_mozilla
|
|
|
|
Implementation-Version: ${package.version}
|
|
|
|
Implementation-Vendor: mozilla.org
|
|
|
|
</echo>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build.webclient.jar">
|
|
|
|
|
|
|
|
<jar jarfile="${package.lib}/webclient_${package.version}_${short.os.name}.jar"
|
|
|
|
basedir="${build.home}" manifest="${package.manifest}"/>
|
2002-10-02 22:23:47 +00:00
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|