4814N/A<?
xml version="1.0" encoding="UTF-8"?>
4814N/ACopyright 2012, Oracle and/or its affiliates. All rights reserved. 4814N/ADO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4814N/AThis code is free software; you can redistribute it and/or modify it 4814N/Aunder the terms of the GNU General Public License version 2 only, as 4814N/Apublished by the Free Software Foundation. Oracle designates this 4814N/Aparticular file as subject to the "Classpath" exception as provided 4814N/Aby Oracle in the LICENSE file that accompanied this code. 4814N/AThis code is distributed in the hope that it will be useful, but WITHOUT 4814N/AANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4814N/AFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4814N/Aversion 2 for more details (a copy is included in the LICENSE file that 4814N/AYou should have received a copy of the GNU General Public License version 4814N/A2 along with this work; if not, write to the Free Software Foundation, 4814N/AInc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4814N/APlease contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4814N/A<
project name="appbundler" default="package">
4814N/A <
property environment="env"/>
4814N/A <
compilerarg line="-Xlint:all"/>
4814N/A <
exclude name="**/*.java"/>
4814N/A <
exclude name="**/*.java"/>
4814N/A <!-- TODO Move this to a makefile so we can reference the defines required by JLI_Launch() --> 4814N/A <
target name="package" depends="compile">
4814N/A <
delete file="${destfile}"/>
4814N/A <
jar destfile="${destfile}" index="true">
4814N/A <
attribute name="Implementation-Vendor" value="Oracle"/>
4814N/A <
attribute name="Implementation-Title" value="App Bundler Ant Task"/>
4814N/A <
attribute name="Implementation-Version" value="${version}"/>
4814N/A <
include name="JavaAppLauncher"/>
4814N/A <
target name="test-hello" depends="package">
4814N/A <
bundleapp outputdirectory="." 4814N/A displayname="Hello World Test" 4814N/A <
argument value="foo=bar"/>
4814N/A <
target name="test-swingset" depends="package">
4814N/A <
bundleapp outputdirectory="." 4814N/A <
argument value="foo=bar"/>
4814N/A <!-- Trim whitespace target --> 4814N/A <
target name="trim-whitespace">
4814N/A <
fileset id="trimfiles" dir=".">
4814N/A <
include name="**/*.html"/>
4814N/A <
include name="**/*.java"/>
4814N/A <
include name="**/*.properties"/>
4814N/A <
replaceregexp match="[\t]" replace=" " flags="gm" byline="true">
4814N/A <
fileset refid="trimfiles"/>
4814N/A <
replaceregexp match="[\t ]+$" replace="" flags="gm" byline="true">
4814N/A <
fileset refid="trimfiles"/>