Path: blob/master/src/demo/share/nbproject/jfc/FileChooserDemo/build.xml
41154 views
<?xml version="1.0" encoding="UTF-8"?>12<!--3Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.45Redistribution and use in source and binary forms, with or without6modification, are permitted provided that the following conditions7are met:89- Redistributions of source code must retain the above copyright10notice, this list of conditions and the following disclaimer.1112- Redistributions in binary form must reproduce the above copyright13notice, this list of conditions and the following disclaimer in the14documentation and/or other materials provided with the distribution.1516- Neither the name of Oracle nor the names of its17contributors may be used to endorse or promote products derived18from this software without specific prior written permission.1920THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS21IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,22THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR23PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR24CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,25EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,26PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR27PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF28LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING29NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS30SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.31-->3233<project name="FileChooserDemo" basedir="." default="jar">3435<import file="nbproject/jdk.xml"/>3637<target name="-prop-init">38<property file="user.build.properties"/>39<property file="build.properties"/>40</target>4142<target name="-init" depends="-prop-init,-jdk-init"/>4344<target name="compile" depends="-init" description="Compile main sources.">45<mkdir dir="${classes.dir}"/>46<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">47<classpath path="${cp}"/>48</javac>49<copy todir="${classes.dir}">50<fileset dir="${src.dir}"/>51</copy>52</target>5354<target name="jar" depends="compile" description="Build JAR file for main sources.">55<jar jarfile="${jar}" compress="true">56<manifest>57<attribute name="Main-Class" value="${main.class}"/>58</manifest>59<fileset dir="${classes.dir}"/>60</jar>61</target>6263<target name="run" depends="compile" description="Run application.">64<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>65<java classname="${main.class}" fork="true" failonerror="true">66<classpath path="${run.cp}"/>67</java>68</target>6970<target name="javadoc" depends="-init" description="Build Javadoc.">71<mkdir dir="${javadoc.dir}"/>72<javadoc destdir="${javadoc.dir}">73<classpath path="${cp}"/>74<sourcepath>75<pathelement location="${src.dir}"/>76</sourcepath>77<fileset dir="${src.dir}"/>78</javadoc>79</target>8081<target name="clean" depends="-init" description="Clean build products.">82<delete dir="${build.dir}"/>83<delete file="${jar}"/>84</target>8586<target name="profile">87<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>88</target>8990</project>919293