blob: 29c9256bd7ed2b9f959301c7ab80feed30127368 [file] [log] [blame]
<?xml version="1.0"?>
<!-- ===================================================================
Jakarta Ant build script for jUDDI samples
Prerequisites:
jakarta-ant 1.4 from http://jakarta.apache.org
Note: It is strongly recommended that you add the Ant
'bin' directory and the Java 2 SDK 'bin' directory to
your PATH environment variable.
Core Targets:
- compile compiles the sample classes (default)
- run runs the sample
- clean removes artifacts created during compile or run
Author:
Steve Viens <sviens@apache.org>
Copyright:
Copyright (c) 2004 Apache Software Foundation.
$Id$
==================================================================== -->
<project default="compile" basedir=".">
<target name="init">
<!-- global ant script variables -->
<property name="debug" value="on"/>
<property name="deprecation" value="on"/>
<property name="optimize" value="off"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="classes.dir" value="${basedir}/classes"/>
<property name="lib.dir" value="${basedir}/../lib"/>
<property name="proxy.jar" value="${basedir}/../build/juddi-proxy.jar"/>
<property name="prop.file" value="${basedir}/proxy.properties"/>
<!-- classpath for building and running all targets -->
<path id="project.classpath">
<pathelement location="${classes.dir}"/>
<pathelement location="${proxy.jar}"/>
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
</target>
<!-- =================================================================== -->
<!-- Compiles the Java source -->
<!-- =================================================================== -->
<target name="compile" depends="init">
<mkdir dir="${classes.dir}"/>
<javac
destdir="${classes.dir}"
debug="${debug}"
deprecation="${deprecation}"
optimize="${optimize}">
<classpath refid="project.classpath"/>
<src path="${src.dir}"/>
</javac>
</target>
<!-- =================================================================== -->
<!-- Executes the add_publisherAssertions sample -->
<!-- =================================================================== -->
<target name="add_publisherAssertions" depends="compile">
<java classname="AddPublisherAssertionsSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the delete_binding sample -->
<!-- =================================================================== -->
<target name="delete_binding" depends="compile">
<java classname="DeleteBindingSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the delete_business sample -->
<!-- =================================================================== -->
<target name="delete_business" depends="compile">
<java classname="DeleteBusinessSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the delete_publisherAssertions sample -->
<!-- =================================================================== -->
<target name="delete_publisherAssertions" depends="compile">
<java classname="DeletePublisherAssertionsSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the delete_publisher sample -->
<!-- =================================================================== -->
<target name="delete_publisher" depends="compile">
<java classname="DeletePublisherSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the delete_service sample -->
<!-- =================================================================== -->
<target name="delete_service" depends="compile">
<java classname="DeleteServiceSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the delete_subscription sample -->
<!-- =================================================================== -->
<target name="delete_subscription" depends="compile">
<java classname="DeleteSubscriptionSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the delete_tModel sample -->
<!-- =================================================================== -->
<target name="delete_tModel" depends="compile">
<java classname="DeleteTModelSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the discard_authToken sample -->
<!-- =================================================================== -->
<target name="discard_authToken" depends="compile">
<java classname="DiscardAuthTokenSample" fork="yes">
<classpath refid="project.classpath"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the find_binding sample -->
<!-- =================================================================== -->
<target name="find_binding" depends="compile">
<java classname="FindBindingSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the find_business sample -->
<!-- =================================================================== -->
<target name="find_business" depends="compile">
<java classname="FindBusinessSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the find_publisher sample -->
<!-- =================================================================== -->
<target name="find_publisher" depends="compile">
<java classname="FindPublisherSample" fork="yes">
<classpath refid="project.classpath"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the find_relatedBusinesses sample -->
<!-- =================================================================== -->
<target name="find_relatedBusinesses" depends="compile">
<java classname="FindRelatedBusinessesSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the find_service sample -->
<!-- =================================================================== -->
<target name="find_service" depends="compile">
<java classname="FindServiceSample" fork="yes">
<classpath refid="project.classpath"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the find_tModel sample -->
<!-- =================================================================== -->
<target name="find_tModel" depends="compile">
<java classname="FindTModelSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_assertionStatusReport sample -->
<!-- =================================================================== -->
<target name="get_assertionStatusReport" depends="compile">
<java classname="GetAssertionStatusReportSample" fork="yes">
<classpath refid="project.classpath"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_authToken sample -->
<!-- =================================================================== -->
<target name="get_authToken" depends="compile">
<java classname="GetAuthTokenSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_bindingDetail sample -->
<!-- =================================================================== -->
<target name="get_bindingDetail" depends="compile">
<java classname="GetBindingDetailSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_businessDetailExt sample -->
<!-- =================================================================== -->
<target name="get_businessDetailExt" depends="compile">
<java classname="GetBusinessDetailExtSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_businessDetail sample -->
<!-- =================================================================== -->
<target name="get_businessDetail" depends="compile">
<java classname="GetBusinessDetailSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_publisherAssertions sample -->
<!-- =================================================================== -->
<target name="get_publisherAssertions" depends="compile">
<java classname="GetPublisherAssertionsSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_publisherDetail sample -->
<!-- =================================================================== -->
<target name="get_publisherDetail" depends="compile">
<java classname="GetPublisherDetailSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_registeredInfo sample -->
<!-- =================================================================== -->
<target name="get_registeredInfo" depends="compile">
<java classname="GetRegisteredInfoSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_registeryInfo sample -->
<!-- =================================================================== -->
<target name="get_registeryInfo" depends="compile">
<java classname="GetRegisteryInfoSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_serviceDetail sample -->
<!-- =================================================================== -->
<target name="get_serviceDetail" depends="compile">
<java classname="GetServiceDetailSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_subscriptionResults sample -->
<!-- =================================================================== -->
<target name="get_subscriptionResults" depends="compile">
<java classname="GetSubscriptionResultsSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_subscriptions sample -->
<!-- =================================================================== -->
<target name="get_subscriptions" depends="compile">
<java classname="GetSubscriptionsSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the get_tModelDetail sample -->
<!-- =================================================================== -->
<target name="get_tModelDetail" depends="compile">
<java classname="GetTModelDetailSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the save_binding sample -->
<!-- =================================================================== -->
<target name="save_binding" depends="compile">
<java classname="SaveBindingSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the save_business sample -->
<!-- =================================================================== -->
<target name="save_business" depends="compile">
<java classname="SaveBusinessSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the save_publisher sample -->
<!-- =================================================================== -->
<target name="save_publisher" depends="compile">
<java classname="SavePublisherSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the save_service sample -->
<!-- =================================================================== -->
<target name="save_service" depends="compile">
<java classname="SaveServiceSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the save_subscription sample -->
<!-- =================================================================== -->
<target name="save_subscription" depends="compile">
<java classname="SaveSubscriptionSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the save_tModel sample -->
<!-- =================================================================== -->
<target name="save_tModel" depends="compile">
<java classname="SaveTModelSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the set_publisherAssertions sample -->
<!-- =================================================================== -->
<target name="set_publisherAssertions" depends="compile">
<java classname="SetPublisherAssertionsSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Executes the validate_values sample -->
<!-- =================================================================== -->
<target name="validate_values" depends="compile">
<java classname="ValidateValuesSample" fork="yes">
<classpath refid="project.classpath"/>
<arg value="${prop.file}"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Cleans everything -->
<!-- =================================================================== -->
<target name="clean" depends="init">
<delete verbose="false">
<fileset dir="${classes.dir}" includes="**/*.class"/>
</delete>
</target>
</project>