Show buildRelease.xml syntax highlighted
<?xml version="1.0"?>
<!--
/** (C) Copyright 1998-2004 Hewlett-Packard Development Company, LP
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
For more information: www.smartfrog.org
*/
-->
<!DOCTYPE project [
<!ENTITY security SYSTEM "./private/buildSecurity.xml">
]>
<!-- ===========================================================================
Introduction
============
To use: ant -f buildRelease release
Installing the build tools
==========================
To Be Written
-->
<project name="sfinstaller" default="process" basedir=".">
<property file="build.properties"/>
<property name="root.dir" location="../../"/>
<import file="${root.dir}/components/buildRelease-template.xml"/>
<import file="${root.dir}/common.xml"/>
<!-- =================================================================== -->
<!-- Initialization path (Libs needed for compiling) -->
<!-- =================================================================== -->
<path id="smartfrog.class.path">
<pathelement path="${classpath}"/>
</path>
<!-- =================================================================== -->
<!-- Global properties -->
<!-- =================================================================== -->
<!-- Release Directories -->
<property name="bin" value="bin"/> <!-- where the source is -->
<property name="src" value="src"/> <!-- where the source is -->
<property name="dist" value="dist"/> <!-- where the files to zip go -->
<property name="releases" value="releases"/> <!-- where the dated zips go, don't clean -->
<property name="lib" value="lib"/>
<property name="dist.lib.dir" location="${dist}/${lib}"/>
<property name="docs" value="docs"/>
<property name="examples" value="examples"/>
<property name="examplesSrc" value="src"/>
<property name="examplesFiles" value="org/smartfrog/examples/**/*"/>
<!-- a list of files for rmic -->
<property name="rmitargets" value="${basedir}/rmitargets"/>
<!-- =================================================================== -->
<!-- FixCRLF for different platforms -->
<!-- =================================================================== -->
<target name="fixCRLF">
<!-- OS dependant -->
<fixcrlf srcdir="${dist}/${bin}"
includes="**/**"
excludes="**/*.bat, **/default*"
/>
<!-- OS dependant -->
<fixcrlf srcdir="${dist}/${bin}"
tab="remove"
tablength="4"
includes="**/default*"
/>
<!-- Windows/Dos format -->
<fixcrlf srcdir="${dist}/${bin}"
eol="crlf"
includes="**/*.bat"
/>
<!-- OS dependant -->
<fixcrlf srcdir="${dist}"
includes="**/*.txt"
/>
</target>
<!-- =================================================================== -->
<!-- initrelease -->
<!-- =================================================================== -->
<target name="initrelease" depends="common.init">
<mkdir dir="releases"/>
<java classname="org.Version"
failonerror="true" fork="true"
outputproperty="version">
<arg value="-b"/>
<classpath>
<fileset dir="${dist.lib.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset refid="smartfrog.lib.fileset"/>
</classpath>
</java>
</target>
<!-- =================================================================== -->
<!-- release -->
<!-- =================================================================== -->
<target name="release" depends="init, initrelease, fixCRLF" description="Creates zip with release packages">
<!-- ================================ -->
<zip destfile="releases/${Name.System}.${version}.${DSTAMP}_DIST.zip">
<zipfileset dir="." prefix="${Name.System}">
<include name="${dist}/**"/>
</zipfileset>
</zip>
<!-- ================================ -->
<zip destfile="releases/${Name.System}.${version}.${DSTAMP}_ALL.zip">
<zipfileset dir="." prefix="${Name.System}">
<include name="bin/**"/>
<include name="dist/**"/>
<include name="doc/**"/>
<include name="lib/**"/>
<include name="src/**"/>
<include name="build.xml"/>
</zipfileset>
</zip>
<tar destfile="releases/${Name.System}.${version}.${DSTAMP}_DIST.tar">
<tarfileset dir="." prefix="${Name.System}">
<include name="${dist}/**"/>
</tarfileset>
</tar>
<gzip src="releases/${Name.System}.${version}.${DSTAMP}_DIST.tar"
zipfile="releases/${Name.System}.${version}.${DSTAMP}_DIST.tar.gz"/>
<delete file="releases/${Name.System}.${version}.${DSTAMP}_DIST.tar"/>
<sf-tar destfile="releases/${Name.System}.${version}.${DSTAMP}_ALL.tar">
<tarfileset dir="." prefix="${Name.System}">
<include name="bin/**"/>
<include name="dist/**"/>
<include name="doc/**"/>
<include name="lib/**"/>
<include name="src/**"/>
<include name="build.xml"/>
</tarfileset>
</sf-tar>
<gzip src="releases/${Name.System}.${version}.${DSTAMP}_ALL.tar"
zipfile="releases/${Name.System}.${version}.${DSTAMP}_ALL.tar.gz"/>
<delete file="releases/${Name.System}.${version}.${DSTAMP}_ALL.tar"/>
</target>
</project>
<!-- End of file -->
See more files for this project here