0N/A<?xml version="1.0" encoding="UTF-8"?>
2362N/A<!--
0N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A
0N/A Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
0N/A
2362N/A The contents of this file are subject to the terms
0N/A of the Common Development and Distribution License
2362N/A (the License). You may not use this file except in
0N/A compliance with the License.
0N/A
0N/A You can obtain a copy of the License at
0N/A https://opensso.dev.java.net/public/CDDLv1.0.html or
0N/A opensso/legal/CDDLv1.0.txt
0N/A See the License for the specific language governing
0N/A permission and limitations under the License.
0N/A
0N/A When distributing Covered Code, include this CDDL
0N/A Header Notice in each file and include the License file
0N/A at opensso/legal/CDDLv1.0.txt.
2362N/A If applicable, add the following below the CDDL Header,
2362N/A with the fields enclosed by brackets [] replaced by
2362N/A your own identifying information:
0N/A "Portions Copyrighted [year] [name of copyright owner]"
0N/A
0N/A $Id: build.xml,v 1.1 2009/11/20 19:34:39 huacui Exp $
0N/A
0N/A-->
0N/A
0N/A<project name="StockClient" default="all" basedir=".">
0N/A <description>Builds, tests, and runs the project stockclient.</description>
0N/A <path id="build.class.path">
0N/A <pathelement location="build/classes"/>
0N/A <fileset dir="lib">
0N/A <include name="**/*.jar"/>
0N/A </fileset>
0N/A <fileset dir="build/classes">
0N/A </fileset>
0N/A </path>
0N/A <target name="compile">
0N/A <mkdir dir="build/classes"/>
0N/A <javac fork="true" debug="true" destdir="build/classes" srcdir="src">
0N/A <classpath refid="build.class.path">
0N/A </classpath>
0N/A </javac>
0N/A </target>
0N/A <target name ="war" depends="clean, compile">
0N/A <mkdir dir="dist"/>
0N/A <copy todir="web/WEB-INF/classes">
0N/A <fileset dir="build/classes" />
0N/A </copy>
0N/A <copy todir="web/WEB-INF/lib">
0N/A <fileset dir="lib">
0N/A <exclude name="javaee.jar" />
0N/A </fileset>
0N/A </copy>
0N/A <war destfile="dist/StockClient.war" webxml="web/WEB-INF/web.xml">
0N/A <zipfileset dir="web" />
0N/A </war>
0N/A </target>
0N/A <target name="run" depends="compile">
0N/A <java classname="com.sun.samples.StockClient" fork="true">
0N/A <arg line="${args}" />
0N/A <classpath refid="build.class.path" />
0N/A </java>
0N/A </target>
0N/A <target name="all">
0N/A <antcall target="war" />
0N/A </target>
0N/A <target name="clean" >
0N/A <delete dir="build"/>
0N/A <delete dir="dist"/>
0N/A <delete dir="web/WEB-INF/lib"/>
0N/A <delete dir="web/WEB-INF/classes"/>
0N/A </target>
0N/A</project>
0N/A