mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
a4648dbbaf
M dist/webclient-dist.xml M webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImpl.java - rollback 2.0 alpha b changes. Thanks to Annie Lau.
186 lines
6.0 KiB
XML
186 lines
6.0 KiB
XML
<?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="webclient" default="dist" basedir=".">
|
|
|
|
<property name="Name" value="webclient"/>
|
|
<property name="name" value="webclient"/>
|
|
<property name="version" value="2_0_a2"/>
|
|
|
|
<!-- ************ Per user local properties ******************************* -->
|
|
|
|
<property file="${user.home}/build.properties"/> <!-- User local -->
|
|
<property file="build.properties"/> <!-- Component local -->
|
|
<property file="../build.properties"/> <!-- java-supplement local -->
|
|
<property environment="myenv" />
|
|
|
|
<property name="dist.home" value="${basedir}/dist" />
|
|
<property name="source.home" value="${basedir}/.." />
|
|
<property name="moz.dist" value="${myenv.MOZ_SRC}/mozilla/dist" />
|
|
|
|
<target name="props">
|
|
<condition property="so.prefix" value="">
|
|
<and>
|
|
<os family="windows" />
|
|
</and>
|
|
</condition>
|
|
|
|
<condition property="so.prefix" value="lib">
|
|
<and>
|
|
<os family="unix" />
|
|
</and>
|
|
</condition>
|
|
|
|
<condition property="so.extension" value="dll">
|
|
<and>
|
|
<os family="windows" />
|
|
</and>
|
|
</condition>
|
|
|
|
<condition property="so.extension" value="so">
|
|
<and>
|
|
<os family="unix" />
|
|
</and>
|
|
</condition>
|
|
|
|
<condition property="platform" value="win32">
|
|
<and>
|
|
<os family="windows" />
|
|
</and>
|
|
</condition>
|
|
|
|
<condition property="platform" value="linux">
|
|
<and>
|
|
<os family="unix" />
|
|
</and>
|
|
</condition>
|
|
</target>
|
|
|
|
<target name="prepare" depends="props">
|
|
|
|
<mkdir dir="${dist.home}" />
|
|
<mkdir dir="${dist.home}/components" />
|
|
|
|
</target>
|
|
|
|
<target name="dist" depends="prepare,compile.test">
|
|
|
|
<echo message="${build.home}" />
|
|
|
|
<jar jarfile="${dist.home}/${name}.jar" >
|
|
<manifest>
|
|
<attribute name="Specification-Title" value="${Name}"/>
|
|
<attribute name="Specification-Version" value="2.0"/>
|
|
<attribute name="Implementation-Title" value="'${name}': ${Name}"/>
|
|
<attribute name="Implementation-Version" value="${version}"/>
|
|
<attribute name="Implementation-Vendor" value="mozilla.org"/>
|
|
<attribute name="Implementation-Vendor-Id" value="org.mozilla"/>
|
|
<attribute name="Extension-Name" value="org.mozilla.webclient"/>
|
|
</manifest>
|
|
|
|
<fileset dir="${build.home}"
|
|
excludes="**/test/**" />
|
|
<fileset dir="${build.home}/test/classes"
|
|
includes="org/mozilla/webclient/test/**" />
|
|
</jar>
|
|
|
|
<copy todir="${dist.home}/components"
|
|
file="${basedir}/../dom/src/${so.prefix}javadom.${so.extension}" />
|
|
<copy todir="${dist.home}"
|
|
file="${basedir}/../dom/jni/${so.prefix}javadomjni.${so.extension}" />
|
|
<copy todir="${dist.home}"
|
|
file="${basedir}/../webclient/src_moz/${so.prefix}${name}.${so.extension}" />
|
|
|
|
<copy tofile="${dist.home}/build.xml" file="webclient-dist.xml" />
|
|
|
|
<zip destfile="${name}_${version}_${platform}.zip"
|
|
basedir="${dist.home}" />
|
|
<copy todir="${dist.home}" file="${name}_${version}_${platform}.zip" />
|
|
<delete file="${name}_${version}_${platform}.zip" />
|
|
|
|
</target>
|
|
|
|
<target name="src.dist">
|
|
<ant inheritAll="false" dir="${source.home}" target="clean"/>
|
|
<antcall target="prepare" />
|
|
|
|
<zip destfile="${dist.home}/${name}-src-${version}.zip">
|
|
<zipfileset dir="${source.home}"
|
|
excludes="**/CVS/**,build.properties,**/.deps/**,**/build.test/**,**/dist/dist/**,**/Makefile"
|
|
prefix="${name}-src-${version}/src"/>
|
|
</zip>
|
|
</target>
|
|
|
|
<target name="unzip.dist" depends="prepare">
|
|
<unzip dest="${moz.install.dir}" src="${dist.home}/${name}_${version}_${platform}.zip" />
|
|
</target>
|
|
|
|
<target name="test.dist" depends="prepare">
|
|
|
|
<antcall target="unzip.dist" />
|
|
|
|
<ant inheritAll="false" dir="${moz.install.dir}"/>
|
|
|
|
<antcall target="clean.test.dist" />
|
|
|
|
</target>
|
|
|
|
<target name="clean.test.dist" depends="props">
|
|
|
|
<delete file="${moz.install.dir}/build.xml" />
|
|
<delete file="${moz.install.dir}/components/${so.prefix}javadom.${so.extension}" />
|
|
<delete file="${moz.install.dir}/${so.prefix}javadomjni.${so.extension}" />
|
|
<delete file="${moz.install.dir}/${so.prefix}${name}.${so.extension}" />
|
|
<delete file="${moz.install.dir}/${name}.jar" />
|
|
|
|
</target>
|
|
|
|
<target name="clean.dev.build" depends="prepare"
|
|
description="remove in-place binaries for development work">
|
|
<delete file="${basedir}/../dom/src/${so.prefix}javadom.${so.extension}" />
|
|
<delete file="${basedir}/../dom/jni/${so.prefix}javadomjni.${so.extension}" />
|
|
<delete file="${basedir}/../webclient/src_moz/${so.prefix}webclient.${so.extension}" />
|
|
<delete dir="${build.home}" />
|
|
|
|
<delete file="${moz.dist}/lib/components/${so.prefix}javadom.${so.extension}" />
|
|
<delete file="${moz.dist}/bin/components/${so.prefix}javadom.${so.extension}" />
|
|
<delete file="${moz.dist}/bin/${so.prefix}javadomjni.${so.extension}" />
|
|
<delete file="${moz.dist}/bin/${so.prefix}webclient.${so.extension}" />
|
|
|
|
</target>
|
|
|
|
<target name="compile.test">
|
|
<ant dir="${basedir}/../webclient" target="compile.test" />
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete dir="${dist.home}" />
|
|
</target>
|
|
|
|
</project>
|