<?xml version="1.0"?>

 The contents of this file are subject to the terms
 of the Common Development and Distribution License
 (the License). You may not use this file except in
 compliance with the License.

 Copyright 2005 Sun Microsystems Inc. All Rights Reserved.

If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.-->

function matchwo(a,b)                                                                                                                                                                
if (a < b && a < 0) then                                                                                                                                                             
   	return 1                                                                                                                                                                       
   	return 0                                                                                                                                                                       

<project name="jsf-demo" default="main" basedir=".">

    <taskdef resource="net/sf/antcontrib/antlib.xml"/>
    <!-- below selected text -->
    <property file="build.properties"/>
    <property name="jsf-api.jar" value="../lib/jsf-api.jar"/>
    <property name="jsf-impl.jar" value="../lib/jsf-impl.jar"/>
    <property name="ui.jar" value="${basedir}/ui.jar"/>                                                                                                                           
    <target name="main">
        <build-sample sample-name="jsf-cardemo" sample-dir="cardemo"/>
        <build-sample sample-name="jsf-guessNumber" sample-dir="guessNumber"/>
        <build-sample sample-name="jsf-nonjsp" sample-dir="nonjsp"/>

    <macrodef name="build-sample">
        <attribute name="sample-name"/>
        <attribute name="sample-dir"/>
--------------- Building @{sample-name} ----------------
            <mkdir dir="@{sample-dir}/build/classes"/>
            <javac srcdir="@{sample-dir}/src"
                    <pathelement location="${jsf-api.jar}"/>
                    <pathelement location="${jsf-impl.jar}"/>
                    <pathelement location="${ui.jar}"/>
                    <pathelement path="${compile.classpath}"/>
                <isset property="${packaged.libs}"/>
                    <echo message="Packing dependent libraries"/>
                    <for list="${jsf-impl.jar},${jsf-api.jar},${packaged.libs}"
                            <jar destfile="${basedir}/@{sample-name}.war"
                                <zipfileset file="@{jar}" prefix="WEB-INF/lib"/>
            <delete dir="@{sample-dir}/build/classes"/>

Project Features

About this Project

ui was started in November 2009, is owned by Jiří Kovalský, and has 44 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm