<?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.--><![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then
{
return 1
}
else
{
return 0
}
}
]]><projectname="jsf-demo"default="main"basedir="."><taskdefresource="net/sf/antcontrib/antlib.xml"/><!-- below selected text --><propertyfile="build.properties"/><propertyname="jsf-api.jar"value="../lib/jsf-api.jar"/><propertyname="jsf-impl.jar"value="../lib/jsf-impl.jar"/><propertyname="ui.jar"value="${basedir}/ui.jar"/><targetname="main"><build-samplesample-name="jsf-cardemo"sample-dir="cardemo"/><build-samplesample-name="jsf-guessNumber"sample-dir="guessNumber"/><build-samplesample-name="jsf-nonjsp"sample-dir="nonjsp"/></target><macrodefname="build-sample"><attributename="sample-name"/><attributename="sample-dir"/><sequential><echo>
--------------- Building @{sample-name} ----------------
</echo><mkdirdir="@{sample-dir}/build/classes"/><javacsrcdir="@{sample-dir}/src"destdir="@{sample-dir}/build/classes"><classpath><pathelementlocation="${jsf-api.jar}"/><pathelementlocation="${jsf-impl.jar}"/><pathelementlocation="${ui.jar}"/><pathelementpath="${compile.classpath}"/></classpath></javac><if><issetproperty="${packaged.libs}"/><then><echomessage="Packing dependent libraries"/><forlist="${jsf-impl.jar},${jsf-api.jar},${packaged.libs}"param="jar"><sequential><jardestfile="${basedir}/@{sample-name}.war"update="true"><zipfilesetfile="@{jar}" prefix="WEB-INF/lib"/></jar>
</sequential>
</for>
</then>
</if>
<deletedir="@{sample-dir}/build/classes"/></sequential>
</macrodef>
</project>