<?xml version="1.0" encoding="UTF-8"?><project basedir=".." default="help" name="myprojects">
<import optional="true" file="C:\Java\XINS\xins/src/ant/build-apis.xml"/>
<import optional="true" file="C:\Java\XINS\xins/src/ant/build-create.xml"/>
<import optional="true" file="C:\Java\XINS\xins/src/ant/build-tools.xml"/>
<target name="-load-xins-properties">
<property value="C:\Java\XINS\xins" name="xins_home"/>
<property value="C:\Java\XINS\xins\demo\xins-project" name="project_home"/>
<property value="C:\Java\XINS\xins\demo\xins-project/build" name="builddir"/>
<property value="3.11-dev" name="xins_version"/>
<property value="http://xins.cvs.sourceforge.net/xins/xins-examples/xins-project" name="cvsweb"/>
<property value="com.mycompany" name="domain"/>
<property name="apis.list" value="allinone,allinone-stub,myproject,filteredproject,petstore,fileupload,rest"/>
</target>
<target description="Generates all specification docs" name="specdocs" depends="index-specdocs,specdocs-allinone,specdocs-myproject,specdocs-filteredproject,specdocs-petstore,specdocs-fileupload,specdocs-rest"/>
<target description="Compiles all Java classes" name="classes" depends="classes-api-allinone,classes-api-allinone-stub,classes-api-myproject,classes-api-filteredproject,classes-api-petstore,classes-api-fileupload,classes-api-rest"/>
<target description="Generates all CAPI JAR files, corresponding Javadoc and the specdocs" name="clients" depends="client-allinone,client-myproject,client-filteredproject,client-petstore,client-fileupload,client-rest"/>
<target description="Generates all CAPI Javadoc" name="javadoc-capis" depends="javadoc-capi-allinone,javadoc-capi-myproject,javadoc-capi-filteredproject,javadoc-capi-petstore,javadoc-capi-fileupload,javadoc-capi-rest"/>
<target description="Generates all CAPI JAR files" name="capis" depends="jar-allinone,jar-myproject,jar-filteredproject,jar-petstore,jar-fileupload,jar-rest"/>
<target description="Creates the Javadoc for all APIs" name="javadoc-apis" depends="javadoc-api-allinone,javadoc-api-allinone-stub,javadoc-api-myproject,javadoc-api-filteredproject,javadoc-api-petstore,javadoc-api-fileupload,javadoc-api-rest"/>
<target description="Creates the WARs for all APIs" name="wars" depends="war-allinone,war-allinone-stub,war-myproject,war-filteredproject,war-petstore,war-fileupload,war-rest"/>
<target description="Tests all APIs that have tests." name="tests" depends="test-allinone"/>
<target description="Generates everything" name="all" depends="all-allinone,all-myproject,all-filteredproject,all-petstore,all-fileupload,all-rest"/>
<target depends="-load-properties" name="-load-properties-allinone">
<property value="allinone" name="allinone.api"/>
<property value="${project_home}/apis/${allinone.api}/spec" name="allinone.api_specsdir"/>
<property value="${allinone.api_specsdir}/api.xml" name="allinone.api_file"/>
<property value="AttributeCombo.fnc,DataSection.fnc,DataSection2.fnc,DataSection3.fnc,DefinedTypes.fnc,Echo.fnc,FastData.fnc,Logdoc.fnc,ParamCombo.fnc,ParamComboValue.fnc,SimpleTypes.fnc,ResultCode.fnc,RuntimeProps.fnc" name="allinone.functionIncludes"/>
<property value="Age.typ,AgeNameProperties.typ,IPAddress.typ,TextList.typ,Salutation.typ" name="allinone.typeIncludes"/>
<property value="allinone/spec/Age.typ,allinone/spec/AgeNameProperties.typ,allinone/spec/IPAddress.typ,allinone/spec/TextList.typ,allinone/spec/Salutation.typ,petstore/spec/EMail.typ,petstore/spec/Password.typ" name="allinone.typeIncludesAll"/>
<property value="AlreadySet.rcd,InvalidNumber.rcd" name="allinone.resultcodeIncludes"/>
<property value="allinone/spec/AlreadySet.rcd,allinone/spec/InvalidNumber.rcd,myproject/spec/NoVowel.rcd" name="allinone.resultcodeIncludesAll"/>
<property value="DataSections.cat" name="allinone.categoryIncludes"/>
<property value="com.mycompany.allinone.capi" name="allinone.clientPackage"/>
<property value="com/mycompany/allinone/capi" name="allinone.clientPackageAsDir"/>
<property value="com.mycompany.allinone.api" name="allinone.package"/>
<property value="com/mycompany/allinone/api" name="allinone.packageAsDir"/>
<property value="true" name="allinone.apiHasTypes"/>
<propertyset id="allinone.properties">
<propertyref prefix="allinone."/>
<mapper to="*" from="allinone.*" type="glob"/>
</propertyset>
</target>
<target name="-dependset-file-allinone">
<dirname file="C:\Java\XINS\xins\demo\xins-project/build/${dependset.destination}" property="dependset.directory"/>
<mkdir dir="${dependset.directory}"/>
<dependset>
<srcfilelist files="${functionIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec"/>
<srcfilelist files="${typeIncludesAll}" dir="C:\Java\XINS\xins\demo\xins-project/apis"/>
<srcfilelist files="${resultcodeIncludesAll}" dir="C:\Java\XINS\xins\demo\xins-project/apis"/>
<srcfilelist files="${categoryIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec"/>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/impl"/>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/impl-stub"/>
<targetfileset includes="${dependset.destination}" dir="C:\Java\XINS\xins\demo\xins-project/build"/>
</dependset>
</target>
<target description="Generates all specification docs for the 'allinone' API" depends="-load-properties-allinone, index-specdocs" name="specdocs-allinone">
<dependset>
<srcfilelist files="environments.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone"/>
<targetfileset includes="*.html" dir="C:\Java\XINS\xins\demo\xins-project/build/specdocs/allinone"/>
</dependset>
<xmlvalidate warn="false" file="C:\Java\XINS\xins\demo\xins-project/apis/allinone/environments.xml">
<xmlcatalog refid="all-dtds"/>
</xmlvalidate>
<antcall target="-specdocs">
<propertyset refid="allinone.properties"/>
<reference refid="all-dtds"/>
</antcall>
<antcall target="-specdocs-impl-runtime">
<propertyset refid="allinone.properties"/>
<param value="" name="implName2"/>
<reference refid="all-dtds"/>
</antcall>
<antcall target="-specdocs-impl-logdoc">
<propertyset refid="allinone.properties"/>
<param value="" name="implName2"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target depends="-load-properties-allinone" name="-classes-types-allinone">
<property value="com.mycompany.allinone.types" name="allinone.typePackage"/>
<property value="com/mycompany/allinone/types" name="allinone.typePackageAsDir"/>
<antcall target="-classes-types">
<propertyset refid="allinone.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the WSDL specification of the 'allinone' API" depends="-load-properties-allinone" name="wsdl-allinone">
<antcall target="-wsdl">
<propertyset refid="allinone.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the specification document for the 'allinone' API" depends="-load-properties-allinone" name="opendoc-allinone">
<antcall target="-opendoc">
<propertyset refid="allinone.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Compiles the Java classes for the 'allinone' API implementation" name="classes-api-allinone" depends="-load-properties-allinone,-prepare-classes,-classes-types-allinone">
<mkdir dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/allinone/com/mycompany/allinone/api"/>
<dependset>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec/../impl"/>
<srcfileset dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec">
<include name="${allinone.functionIncludes} ${allinone.typeIncludes} ${allinone.resultcodeIncludes}"/>
</srcfileset>
<targetfileset includes="*.java" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/allinone/com/mycompany/allinone/api"/>
<targetfileset includes="resultcodes.xml" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/allinone"/>
</dependset>
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</path>
<antcall target="-classes-api">
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
<propertyset refid="allinone.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target unless="no-war-allinone" description="Creates the WAR for the 'allinone' API" depends="-load-properties-allinone, classes-api-allinone, wsdl-allinone" name="war-allinone">
<tstamp>
<format pattern="yyyy.MM.dd HH:mm:ss.SS" property="timestamp"/>
</tstamp>
<antcall target="-war">
<propertyset refid="allinone.properties"/>
<param value="" name="implName2"/>
</antcall>
<property value="C:\Java\XINS\xins\demo\xins-project/build/classes-api/allinone" name="classes.api.dir"/>
<war duplicate="fail" manifest="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone/MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone/allinone.war" webxml="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone/web.xml">
<lib includes="xins-common.jar xins-server.jar xins-client.jar" dir="C:\Java\XINS\xins/build"/>
<lib includes="commons-codec.jar httpclient.jar httpcore.jar commons-logging.jar log4j.jar xmlenc.jar json.jar logdoc.jar znerd-util.jar" dir="C:\Java\XINS\xins/lib"/>
<classes includes="**/*.class" dir="${classes.api.dir}"/>
<classes includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
<classes excludes="**/*.java,**/*.class,impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/impl"/>
<zipfileset includes="org/xins/common/servlet/container/*.class org/xins/common/servlet/container/xins.gif" dir="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone"/>
<zipfileset prefix="WEB-INF" includes="allinone.wsdl" dir="C:\Java\XINS\xins\demo\xins-project/build/wsdl"/>
<zipfileset prefix="WEB-INF/specs" includes="api.xml ${allinone.functionIncludes} ${allinone.typeIncludes} ${allinone.resultcodeIncludes} ${allinone.categoryIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec"/>
<zipfileset prefix="WEB-INF/specs" includes="EMail.typ" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec"/>
<zipfileset prefix="WEB-INF/specs" includes="Password.typ" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec"/>
<zipfileset prefix="WEB-INF/specs" includes="NoVowel.rcd" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/spec"/>
<zipgroupfileset includes="servlet.jar" dir="C:\Java\XINS\xins/lib"/>
</war>
<checksum property="war.md5" file="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone/allinone.war"/>
<echo message="MD5: ${war.md5}"/>
<echo message="Build time: ${timestamp}"/>
</target>
<target description="Runs the 'allinone' API" name="run-allinone" depends="war-allinone">
<path id="run.classpath">
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-api/allinone"/>
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</path>
<antcall target="-run">
<reference refid="run.classpath"/>
<reference refid="xins.classpath"/>
<propertyset refid="allinone.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates Javadoc API docs for the 'allinone' API" depends="-load-properties, classes-api-allinone" name="javadoc-api-allinone">
<path id="javadoc.api.packageset">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/allinone"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/impl"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/allinone"/>
</path>
<antcall target="-javadoc-api">
<reference refid="javadoc.api.packageset"/>
<reference refid="classes.api.classpath"/>
<reference refid="xins.classpath"/>
<param value="allinone" name="api"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates an Stub API using the defined examples" depends="-load-properties-allinone" name="stub-allinone">
<antcall target="-stub">
<propertyset refid="allinone.properties"/>
<reference refid="all-dtds"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates the war file, the Javadoc API docs for the server side and the specdocs for the 'allinone' API." depends="specdocs-allinone, javadoc-api-allinone, war-allinone" name="server-allinone"/>
<target description="Compiles the Java classes for the 'allinone-stub' API implementation" name="classes-api-allinone-stub" depends="-load-properties-allinone,-prepare-classes,-classes-types-allinone">
<mkdir dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/allinone-stub/com/mycompany/allinone/api"/>
<dependset>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec/../impl-stub"/>
<srcfileset dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec">
<include name="${allinone.functionIncludes} ${allinone.typeIncludes} ${allinone.resultcodeIncludes}"/>
</srcfileset>
<targetfileset includes="*.java" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/allinone-stub/com/mycompany/allinone/api"/>
<targetfileset includes="resultcodes.xml" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/allinone-stub"/>
</dependset>
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</path>
<antcall target="-classes-api">
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
<propertyset refid="allinone.properties"/>
<param value="-stub" name="implName2"/>
</antcall>
</target>
<target unless="no-war-allinone-stub" description="Creates the WAR for the 'allinone-stub' API" depends="-load-properties-allinone, classes-api-allinone-stub, wsdl-allinone" name="war-allinone-stub">
<tstamp>
<format pattern="yyyy.MM.dd HH:mm:ss.SS" property="timestamp"/>
</tstamp>
<antcall target="-war">
<propertyset refid="allinone.properties"/>
<param value="-stub" name="implName2"/>
</antcall>
<property value="C:\Java\XINS\xins\demo\xins-project/build/classes-api/allinone-stub" name="classes.api.dir"/>
<war duplicate="fail" manifest="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone-stub/MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone-stub/allinone-stub.war" webxml="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone-stub/web.xml">
<lib includes="xins-common.jar xins-server.jar xins-client.jar" dir="C:\Java\XINS\xins/build"/>
<lib includes="commons-codec.jar httpclient.jar httpcore.jar commons-logging.jar log4j.jar xmlenc.jar json.jar logdoc.jar znerd-util.jar" dir="C:\Java\XINS\xins/lib"/>
<classes includes="**/*.class" dir="${classes.api.dir}"/>
<classes includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
<classes excludes="**/*.java,**/*.class,impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/impl-stub"/>
<zipfileset includes="org/xins/common/servlet/container/*.class org/xins/common/servlet/container/xins.gif" dir="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone-stub"/>
<zipfileset prefix="WEB-INF" includes="allinone.wsdl" dir="C:\Java\XINS\xins\demo\xins-project/build/wsdl"/>
<zipfileset prefix="WEB-INF/specs" includes="api.xml ${allinone.functionIncludes} ${allinone.typeIncludes} ${allinone.resultcodeIncludes} ${allinone.categoryIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec"/>
<zipfileset prefix="WEB-INF/specs" includes="EMail.typ" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec"/>
<zipfileset prefix="WEB-INF/specs" includes="Password.typ" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec"/>
<zipfileset prefix="WEB-INF/specs" includes="NoVowel.rcd" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/spec"/>
<zipgroupfileset includes="servlet.jar" dir="C:\Java\XINS\xins/lib"/>
</war>
<checksum property="war.md5" file="C:\Java\XINS\xins\demo\xins-project/build/webapps/allinone-stub/allinone-stub.war"/>
<echo message="MD5: ${war.md5}"/>
<echo message="Build time: ${timestamp}"/>
</target>
<target description="Runs the 'allinone-stub' API" name="run-allinone-stub" depends="war-allinone-stub">
<path id="run.classpath">
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-api/allinone-stub"/>
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</path>
<antcall target="-run">
<reference refid="run.classpath"/>
<reference refid="xins.classpath"/>
<propertyset refid="allinone.properties"/>
<param value="-stub" name="implName2"/>
</antcall>
</target>
<target description="Generates Javadoc API docs for the 'allinone-stub' API" depends="-load-properties, classes-api-allinone-stub" name="javadoc-api-allinone-stub">
<path id="javadoc.api.packageset">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/allinone-stub"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/impl-stub"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/allinone"/>
</path>
<antcall target="-javadoc-api">
<reference refid="javadoc.api.packageset"/>
<reference refid="classes.api.classpath"/>
<reference refid="xins.classpath"/>
<param value="allinone" name="api"/>
<param value="-stub" name="implName2"/>
</antcall>
</target>
<target description="Generates an Stub API using the defined examples" depends="-load-properties-allinone" name="stub-allinone-stub">
<antcall target="-stub">
<propertyset refid="allinone.properties"/>
<reference refid="all-dtds"/>
<param value="-stub" name="implName2"/>
</antcall>
</target>
<target description="Generates the war file, the Javadoc API docs for the server side and the specdocs for the 'allinone-stub' API." depends="specdocs-allinone, javadoc-api-allinone-stub, war-allinone-stub" name="server-allinone-stub"/>
<target description="Generates (if needed) and run the tests for the allinone API." name="test-allinone" depends="-load-properties-allinone">
<property value="com.mycompany.allinone.tests" name="packageTests"/>
<path id="test.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/capis/allinone-capi.jar"/>
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</path>
<antcall target="-test">
<reference refid="test.classpath"/>
<propertyset refid="allinone.properties"/>
</antcall>
</target>
<target unless="test.generated" depends="-load-properties-allinone" name="generatetests-allinone">
<property value="com.mycompany.allinone.tests" name="allinone.packageTests"/>
<property value="com/mycompany/allinone/tests" name="allinone.packageTestsAsDir"/>
<antcall target="-generatetests">
<propertyset refid="allinone.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the Javadoc of the unit tests of the allinone API." name="javadoc-test-allinone">
<path id="javadoc.test.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-tests/allinone"/>
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</path>
<antcall target="-javadoc-test">
<reference refid="javadoc.test.classpath"/>
<param value="allinone" name="api"/>
</antcall>
</target>
<target description="Generates and compiles the Java classes for the client-side 'allinone' API stubs" name="jar-allinone" depends="-load-properties-allinone,-classes-types-allinone">
<path id="jar.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</path>
<antcall target="-jar">
<propertyset refid="allinone.properties"/>
<reference refid="jar.classpath"/>
</antcall>
<copy todir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/allinone">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</copy>
<jar manifest="C:\Java\XINS\xins\demo\xins-project/build/capis/allinone-MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/capis/allinone-capi.jar">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/allinone"/>
<zipfileset prefix="specs" includes="api.xml ${allinone.functionIncludes} ${allinone.typeIncludes} ${allinone.resultcodeIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/allinone/spec"/>
</jar>
</target>
<target depends="jar-allinone" name="capi-allinone"/>
<target description="Generates Javadoc API docs for the client-side 'allinone' API stubs" name="javadoc-capi-allinone" depends="-load-properties-allinone, -classes-types-allinone">
<path id="javadoc.capi.packages">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-capi/allinone"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/allinone"/>
</path>
<antcall target="-javadoc-capi">
<reference refid="javadoc.capi.packages"/>
<propertyset refid="allinone.properties"/>
</antcall>
</target>
<target description="Generates an mock CAPI using the defined examples" depends="-load-properties-allinone, capi-allinone" name="mock-allinone">
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/allinone"/>
</path>
<antcall target="-mock">
<propertyset refid="allinone.properties"/>
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Put documentation and client implementation for 'allinone' in a zip file." depends="jar-allinone, javadoc-capi-allinone, specdocs-allinone, wsdl-allinone, opendoc-allinone, mock-allinone" name="client-allinone">
<antcall target="-client">
<param value="allinone" name="api"/>
</antcall>
</target>
<target description="Generates everything for the 'allinone' API stubs." name="all-allinone" depends="client-allinone, server-allinone"/>
<target description="Deletes everything for the 'allinone' API stubs." name="clean-allinone">
<antcall target="-clean">
<param value="allinone" name="api"/>
</antcall>
<antcall target="-clean-impl">
<param value="allinone" name="api"/>
<param value="stub" name="impl"/>
</antcall>
</target>
<target description="Regenerates everything for the 'allinone' API stubs." depends="clean-allinone, all-allinone" name="rebuild-allinone"/>
<target depends="-load-properties" name="-load-properties-myproject">
<property value="myproject" name="myproject.api"/>
<property value="${project_home}/apis/${myproject.api}/spec" name="myproject.api_specsdir"/>
<property value="${myproject.api_specsdir}/api.xml" name="myproject.api_file"/>
<property value="MyFunction.fnc" name="myproject.functionIncludes"/>
<property value="Gender.typ,LastName.typ" name="myproject.typeIncludes"/>
<property value="myproject/spec/Gender.typ,myproject/spec/LastName.typ" name="myproject.typeIncludesAll"/>
<property value="NoVowel.rcd" name="myproject.resultcodeIncludes"/>
<property value="myproject/spec/NoVowel.rcd" name="myproject.resultcodeIncludesAll"/>
<property value="com.mycompany.myproject.capi" name="myproject.clientPackage"/>
<property value="com/mycompany/myproject/capi" name="myproject.clientPackageAsDir"/>
<property value="com.mycompany.myproject.api" name="myproject.package"/>
<property value="com/mycompany/myproject/api" name="myproject.packageAsDir"/>
<property value="true" name="myproject.apiHasTypes"/>
<propertyset id="myproject.properties">
<propertyref prefix="myproject."/>
<mapper to="*" from="myproject.*" type="glob"/>
</propertyset>
</target>
<target name="-dependset-file-myproject">
<dirname file="C:\Java\XINS\xins\demo\xins-project/build/${dependset.destination}" property="dependset.directory"/>
<mkdir dir="${dependset.directory}"/>
<dependset>
<srcfilelist files="${functionIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/spec"/>
<srcfilelist files="${typeIncludesAll}" dir="C:\Java\XINS\xins\demo\xins-project/apis"/>
<srcfilelist files="${resultcodeIncludesAll}" dir="C:\Java\XINS\xins\demo\xins-project/apis"/>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/impl"/>
<targetfileset includes="${dependset.destination}" dir="C:\Java\XINS\xins\demo\xins-project/build"/>
</dependset>
</target>
<target description="Generates all specification docs for the 'myproject' API" depends="-load-properties-myproject, index-specdocs" name="specdocs-myproject">
<dependset>
<srcfilelist files="environments.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject"/>
<targetfileset includes="*.html" dir="C:\Java\XINS\xins\demo\xins-project/build/specdocs/myproject"/>
</dependset>
<xmlvalidate warn="false" file="C:\Java\XINS\xins\demo\xins-project/apis/myproject/environments.xml">
<xmlcatalog refid="all-dtds"/>
</xmlvalidate>
<antcall target="-specdocs">
<propertyset refid="myproject.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target depends="-load-properties-myproject" name="-classes-types-myproject">
<property value="com.mycompany.myproject.types" name="myproject.typePackage"/>
<property value="com/mycompany/myproject/types" name="myproject.typePackageAsDir"/>
<antcall target="-classes-types">
<propertyset refid="myproject.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the WSDL specification of the 'myproject' API" depends="-load-properties-myproject" name="wsdl-myproject">
<antcall target="-wsdl">
<propertyset refid="myproject.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the specification document for the 'myproject' API" depends="-load-properties-myproject" name="opendoc-myproject">
<antcall target="-opendoc">
<propertyset refid="myproject.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Compiles the Java classes for the 'myproject' API implementation" name="classes-api-myproject" depends="-load-properties-myproject,-prepare-classes,-classes-types-myproject">
<mkdir dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/myproject/com/mycompany/myproject/api"/>
<dependset>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/spec/../impl"/>
<srcfileset dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/spec">
<include name="${myproject.functionIncludes} ${myproject.typeIncludes} ${myproject.resultcodeIncludes}"/>
</srcfileset>
<targetfileset includes="*.java" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/myproject/com/mycompany/myproject/api"/>
<targetfileset includes="resultcodes.xml" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/myproject"/>
</dependset>
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/myproject"/>
</path>
<antcall target="-classes-api">
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
<propertyset refid="myproject.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target unless="no-war-myproject" description="Creates the WAR for the 'myproject' API" depends="-load-properties-myproject, classes-api-myproject, wsdl-myproject" name="war-myproject">
<tstamp>
<format pattern="yyyy.MM.dd HH:mm:ss.SS" property="timestamp"/>
</tstamp>
<antcall target="-war">
<propertyset refid="myproject.properties"/>
<param value="" name="implName2"/>
</antcall>
<property value="C:\Java\XINS\xins\demo\xins-project/build/classes-api/myproject" name="classes.api.dir"/>
<war duplicate="fail" manifest="C:\Java\XINS\xins\demo\xins-project/build/webapps/myproject/MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/webapps/myproject/myproject.war" webxml="C:\Java\XINS\xins\demo\xins-project/build/webapps/myproject/web.xml">
<lib includes="xins-common.jar xins-server.jar xins-client.jar" dir="C:\Java\XINS\xins/build"/>
<lib includes="commons-codec.jar httpclient.jar httpcore.jar commons-logging.jar log4j.jar xmlenc.jar json.jar logdoc.jar znerd-util.jar" dir="C:\Java\XINS\xins/lib"/>
<classes includes="**/*.class" dir="${classes.api.dir}"/>
<classes includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/myproject"/>
<classes excludes="**/*.java,**/*.class,impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/impl"/>
<zipfileset includes="org/xins/common/servlet/container/*.class org/xins/common/servlet/container/xins.gif" dir="C:\Java\XINS\xins\demo\xins-project/build/webapps/myproject"/>
<zipfileset prefix="WEB-INF" includes="myproject.wsdl" dir="C:\Java\XINS\xins\demo\xins-project/build/wsdl"/>
<zipfileset prefix="WEB-INF/specs" includes="api.xml ${myproject.functionIncludes} ${myproject.typeIncludes} ${myproject.resultcodeIncludes} ${myproject.categoryIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/spec"/>
<zipgroupfileset includes="servlet.jar" dir="C:\Java\XINS\xins/lib"/>
</war>
<checksum property="war.md5" file="C:\Java\XINS\xins\demo\xins-project/build/webapps/myproject/myproject.war"/>
<echo message="MD5: ${war.md5}"/>
<echo message="Build time: ${timestamp}"/>
</target>
<target description="Runs the 'myproject' API" name="run-myproject" depends="war-myproject">
<path id="run.classpath">
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-api/myproject"/>
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-types/myproject"/>
</path>
<antcall target="-run">
<reference refid="run.classpath"/>
<reference refid="xins.classpath"/>
<propertyset refid="myproject.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates Javadoc API docs for the 'myproject' API" depends="-load-properties, classes-api-myproject" name="javadoc-api-myproject">
<path id="javadoc.api.packageset">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/myproject"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/impl"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/myproject"/>
</path>
<antcall target="-javadoc-api">
<reference refid="javadoc.api.packageset"/>
<reference refid="classes.api.classpath"/>
<reference refid="xins.classpath"/>
<param value="myproject" name="api"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates an Stub API using the defined examples" depends="-load-properties-myproject" name="stub-myproject">
<antcall target="-stub">
<propertyset refid="myproject.properties"/>
<reference refid="all-dtds"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates the war file, the Javadoc API docs for the server side and the specdocs for the 'myproject' API." depends="specdocs-myproject, javadoc-api-myproject, war-myproject" name="server-myproject"/>
<target description="Generates and compiles the Java classes for the client-side 'myproject' API stubs" name="jar-myproject" depends="-load-properties-myproject,-classes-types-myproject">
<path id="jar.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/myproject"/>
</path>
<antcall target="-jar">
<propertyset refid="myproject.properties"/>
<reference refid="jar.classpath"/>
</antcall>
<copy todir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/myproject">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/myproject"/>
</copy>
<jar manifest="C:\Java\XINS\xins\demo\xins-project/build/capis/myproject-MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/capis/myproject-capi.jar">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/myproject"/>
<zipfileset prefix="specs" includes="api.xml ${myproject.functionIncludes} ${myproject.typeIncludes} ${myproject.resultcodeIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/spec"/>
</jar>
</target>
<target depends="jar-myproject" name="capi-myproject"/>
<target description="Generates Javadoc API docs for the client-side 'myproject' API stubs" name="javadoc-capi-myproject" depends="-load-properties-myproject, -classes-types-myproject">
<path id="javadoc.capi.packages">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-capi/myproject"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/myproject"/>
</path>
<antcall target="-javadoc-capi">
<reference refid="javadoc.capi.packages"/>
<propertyset refid="myproject.properties"/>
</antcall>
</target>
<target description="Generates an mock CAPI using the defined examples" depends="-load-properties-myproject, capi-myproject" name="mock-myproject">
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/myproject"/>
</path>
<antcall target="-mock">
<propertyset refid="myproject.properties"/>
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Put documentation and client implementation for 'myproject' in a zip file." depends="jar-myproject, javadoc-capi-myproject, specdocs-myproject, wsdl-myproject, opendoc-myproject, mock-myproject" name="client-myproject">
<antcall target="-client">
<param value="myproject" name="api"/>
</antcall>
</target>
<target description="Generates everything for the 'myproject' API stubs." name="all-myproject" depends="client-myproject, server-myproject"/>
<target description="Deletes everything for the 'myproject' API stubs." name="clean-myproject">
<antcall target="-clean">
<param value="myproject" name="api"/>
</antcall>
</target>
<target description="Regenerates everything for the 'myproject' API stubs." depends="clean-myproject, all-myproject" name="rebuild-myproject"/>
<target depends="-load-properties" name="-load-properties-filteredproject">
<property value="filteredproject" name="filteredproject.api"/>
<property value="${project_home}/apis/${filteredproject.api}/spec" name="filteredproject.api_specsdir"/>
<property value="${filteredproject.api_specsdir}/api.xml" name="filteredproject.api_file"/>
<property value="CallCAPI.fnc" name="filteredproject.functionIncludes"/>
<property value="com.mycompany.filteredproject.capi" name="filteredproject.clientPackage"/>
<property value="com/mycompany/filteredproject/capi" name="filteredproject.clientPackageAsDir"/>
<property value="com.mycompany.filteredproject.api" name="filteredproject.package"/>
<property value="com/mycompany/filteredproject/api" name="filteredproject.packageAsDir"/>
<propertyset id="filteredproject.properties">
<propertyref prefix="filteredproject."/>
<mapper to="*" from="filteredproject.*" type="glob"/>
</propertyset>
</target>
<target name="-dependset-file-filteredproject">
<dirname file="C:\Java\XINS\xins\demo\xins-project/build/${dependset.destination}" property="dependset.directory"/>
<mkdir dir="${dependset.directory}"/>
<dependset>
<srcfilelist files="${functionIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/spec"/>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/impl"/>
<targetfileset includes="${dependset.destination}" dir="C:\Java\XINS\xins\demo\xins-project/build"/>
</dependset>
</target>
<target description="Generates all specification docs for the 'filteredproject' API" depends="-load-properties-filteredproject, index-specdocs" name="specdocs-filteredproject">
<dependset>
<srcfilelist files="environments.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject"/>
<targetfileset includes="*.html" dir="C:\Java\XINS\xins\demo\xins-project/build/specdocs/filteredproject"/>
</dependset>
<xmlvalidate warn="false" file="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/environments.xml">
<xmlcatalog refid="all-dtds"/>
</xmlvalidate>
<antcall target="-specdocs">
<propertyset refid="filteredproject.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the WSDL specification of the 'filteredproject' API" depends="-load-properties-filteredproject" name="wsdl-filteredproject">
<antcall target="-wsdl">
<propertyset refid="filteredproject.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the specification document for the 'filteredproject' API" depends="-load-properties-filteredproject" name="opendoc-filteredproject">
<antcall target="-opendoc">
<propertyset refid="filteredproject.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Compiles the Java classes for the 'filteredproject' API implementation" name="classes-api-filteredproject" depends="-load-properties-filteredproject,-prepare-classes">
<mkdir dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/filteredproject/com/mycompany/filteredproject/api"/>
<dependset>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/spec/../impl"/>
<srcfileset dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/spec">
<include name="${filteredproject.functionIncludes} ${filteredproject.typeIncludes} ${filteredproject.resultcodeIncludes}"/>
</srcfileset>
<targetfileset includes="*.java" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/filteredproject/com/mycompany/filteredproject/api"/>
</dependset>
<path id="classes.api.classpath"/>
<antcall target="-classes-api">
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
<propertyset refid="filteredproject.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target unless="no-war-filteredproject" description="Creates the WAR for the 'filteredproject' API" depends="-load-properties-filteredproject, classes-api-filteredproject, wsdl-filteredproject" name="war-filteredproject">
<tstamp>
<format pattern="yyyy.MM.dd HH:mm:ss.SS" property="timestamp"/>
</tstamp>
<antcall target="-war">
<propertyset refid="filteredproject.properties"/>
<param value="" name="implName2"/>
</antcall>
<property value="C:\Java\XINS\xins\demo\xins-project/build/classes-api/filteredproject" name="classes.api.dir"/>
<war duplicate="fail" manifest="C:\Java\XINS\xins\demo\xins-project/build/webapps/filteredproject/MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/webapps/filteredproject/filteredproject.war" webxml="C:\Java\XINS\xins\demo\xins-project/build/webapps/filteredproject/web.xml">
<lib includes="xins-common.jar xins-server.jar xins-client.jar" dir="C:\Java\XINS\xins/build"/>
<lib includes="commons-codec.jar httpclient.jar httpcore.jar commons-logging.jar log4j.jar xmlenc.jar json.jar logdoc.jar znerd-util.jar" dir="C:\Java\XINS\xins/lib"/>
<classes includes="**/*.class" dir="${classes.api.dir}"/>
<classes excludes="**/*.java,**/*.class,impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/impl"/>
<zipfileset includes="org/xins/common/servlet/container/*.class org/xins/common/servlet/container/xins.gif" dir="C:\Java\XINS\xins\demo\xins-project/build/webapps/filteredproject"/>
<zipfileset prefix="WEB-INF" includes="filteredproject.wsdl" dir="C:\Java\XINS\xins\demo\xins-project/build/wsdl"/>
<zipfileset prefix="WEB-INF/specs" includes="api.xml ${filteredproject.functionIncludes} ${filteredproject.typeIncludes} ${filteredproject.resultcodeIncludes} ${filteredproject.categoryIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/spec"/>
<zipgroupfileset includes="servlet.jar" dir="C:\Java\XINS\xins/lib"/>
</war>
<checksum property="war.md5" file="C:\Java\XINS\xins\demo\xins-project/build/webapps/filteredproject/filteredproject.war"/>
<echo message="MD5: ${war.md5}"/>
<echo message="Build time: ${timestamp}"/>
</target>
<target description="Runs the 'filteredproject' API" name="run-filteredproject" depends="war-filteredproject">
<path id="run.classpath">
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-api/filteredproject"/>
</path>
<antcall target="-run">
<reference refid="run.classpath"/>
<reference refid="xins.classpath"/>
<propertyset refid="filteredproject.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates Javadoc API docs for the 'filteredproject' API" depends="-load-properties, classes-api-filteredproject" name="javadoc-api-filteredproject">
<path id="javadoc.api.packageset">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/filteredproject"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/impl"/>
</path>
<antcall target="-javadoc-api">
<reference refid="javadoc.api.packageset"/>
<reference refid="classes.api.classpath"/>
<reference refid="xins.classpath"/>
<param value="filteredproject" name="api"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates an Stub API using the defined examples" depends="-load-properties-filteredproject" name="stub-filteredproject">
<antcall target="-stub">
<propertyset refid="filteredproject.properties"/>
<reference refid="all-dtds"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates the war file, the Javadoc API docs for the server side and the specdocs for the 'filteredproject' API." depends="specdocs-filteredproject, javadoc-api-filteredproject, war-filteredproject" name="server-filteredproject"/>
<target description="Generates and compiles the Java classes for the client-side 'filteredproject' API stubs" name="jar-filteredproject" depends="-load-properties-filteredproject">
<path id="jar.classpath"/>
<antcall target="-jar">
<propertyset refid="filteredproject.properties"/>
<reference refid="jar.classpath"/>
</antcall>
<jar manifest="C:\Java\XINS\xins\demo\xins-project/build/capis/filteredproject-MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/capis/filteredproject-capi.jar">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/filteredproject"/>
<zipfileset prefix="specs" includes="api.xml ${filteredproject.functionIncludes} ${filteredproject.typeIncludes} ${filteredproject.resultcodeIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/filteredproject/spec"/>
</jar>
</target>
<target depends="jar-filteredproject" name="capi-filteredproject"/>
<target description="Generates Javadoc API docs for the client-side 'filteredproject' API stubs" name="javadoc-capi-filteredproject" depends="-load-properties-filteredproject">
<path id="javadoc.capi.packages">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-capi/filteredproject"/>
</path>
<antcall target="-javadoc-capi">
<reference refid="javadoc.capi.packages"/>
<propertyset refid="filteredproject.properties"/>
</antcall>
</target>
<target description="Generates an mock CAPI using the defined examples" depends="-load-properties-filteredproject, capi-filteredproject" name="mock-filteredproject">
<path id="classes.api.classpath"/>
<antcall target="-mock">
<propertyset refid="filteredproject.properties"/>
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Put documentation and client implementation for 'filteredproject' in a zip file." depends="jar-filteredproject, javadoc-capi-filteredproject, specdocs-filteredproject, wsdl-filteredproject, opendoc-filteredproject, mock-filteredproject" name="client-filteredproject">
<antcall target="-client">
<param value="filteredproject" name="api"/>
</antcall>
</target>
<target description="Generates everything for the 'filteredproject' API stubs." name="all-filteredproject" depends="client-filteredproject, server-filteredproject"/>
<target description="Deletes everything for the 'filteredproject' API stubs." name="clean-filteredproject">
<antcall target="-clean">
<param value="filteredproject" name="api"/>
</antcall>
</target>
<target description="Regenerates everything for the 'filteredproject' API stubs." depends="clean-filteredproject, all-filteredproject" name="rebuild-filteredproject"/>
<target depends="-load-properties" name="-load-properties-petstore">
<property value="petstore" name="petstore.api"/>
<property value="${project_home}/apis/${petstore.api}/spec" name="petstore.api_specsdir"/>
<property value="${petstore.api_specsdir}/api.xml" name="petstore.api_file"/>
<property value="LoginOkay.fnc,Logout.fnc,OrderPet.fnc,RegisterCustomerOkay.fnc,SearchPetOkay.fnc" name="petstore.functionIncludes"/>
<property value="Age.typ,EMail.typ,FirstName.typ,Password.typ,PhoneNumber.typ,Salutation.typ,Surname.typ" name="petstore.typeIncludes"/>
<property value="petstore/spec/Age.typ,petstore/spec/EMail.typ,petstore/spec/FirstName.typ,petstore/spec/Password.typ,petstore/spec/PhoneNumber.typ,petstore/spec/Salutation.typ,petstore/spec/Surname.typ" name="petstore.typeIncludesAll"/>
<property value="AlreadyRegistered.rcd,DatabaseFailure.rcd,IncorrectPassword.rcd,NotLoggedIn.rcd,ProductNotAvailable.rcd,UnknownLogin.rcd" name="petstore.resultcodeIncludes"/>
<property value="petstore/spec/AlreadyRegistered.rcd,petstore/spec/DatabaseFailure.rcd,petstore/spec/IncorrectPassword.rcd,petstore/spec/NotLoggedIn.rcd,petstore/spec/ProductNotAvailable.rcd,petstore/spec/UnknownLogin.rcd" name="petstore.resultcodeIncludesAll"/>
<property value="com.mycompany.petstore.capi" name="petstore.clientPackage"/>
<property value="com/mycompany/petstore/capi" name="petstore.clientPackageAsDir"/>
<property value="com.mycompany.petstore.api" name="petstore.package"/>
<property value="com/mycompany/petstore/api" name="petstore.packageAsDir"/>
<property value="true" name="petstore.apiHasTypes"/>
<propertyset id="petstore.properties">
<propertyref prefix="petstore."/>
<mapper to="*" from="petstore.*" type="glob"/>
</propertyset>
</target>
<target name="-dependset-file-petstore">
<dirname file="C:\Java\XINS\xins\demo\xins-project/build/${dependset.destination}" property="dependset.directory"/>
<mkdir dir="${dependset.directory}"/>
<dependset>
<srcfilelist files="${functionIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec"/>
<srcfilelist files="${typeIncludesAll}" dir="C:\Java\XINS\xins\demo\xins-project/apis"/>
<srcfilelist files="${resultcodeIncludesAll}" dir="C:\Java\XINS\xins\demo\xins-project/apis"/>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/impl"/>
<targetfileset includes="${dependset.destination}" dir="C:\Java\XINS\xins\demo\xins-project/build"/>
</dependset>
</target>
<target description="Generates all specification docs for the 'petstore' API" depends="-load-properties-petstore, index-specdocs" name="specdocs-petstore">
<dependset>
<srcfilelist files="environments.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore"/>
<targetfileset includes="*.html" dir="C:\Java\XINS\xins\demo\xins-project/build/specdocs/petstore"/>
</dependset>
<xmlvalidate warn="false" file="C:\Java\XINS\xins\demo\xins-project/apis/petstore/environments.xml">
<xmlcatalog refid="all-dtds"/>
</xmlvalidate>
<antcall target="-specdocs">
<propertyset refid="petstore.properties"/>
<reference refid="all-dtds"/>
</antcall>
<antcall target="-specdocs-impl-runtime">
<propertyset refid="petstore.properties"/>
<param value="" name="implName2"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target depends="-load-properties-petstore" name="-classes-types-petstore">
<property value="com.mycompany.petstore.types" name="petstore.typePackage"/>
<property value="com/mycompany/petstore/types" name="petstore.typePackageAsDir"/>
<antcall target="-classes-types">
<propertyset refid="petstore.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the WSDL specification of the 'petstore' API" depends="-load-properties-petstore" name="wsdl-petstore">
<antcall target="-wsdl">
<propertyset refid="petstore.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the specification document for the 'petstore' API" depends="-load-properties-petstore" name="opendoc-petstore">
<antcall target="-opendoc">
<propertyset refid="petstore.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Compiles the Java classes for the 'petstore' API implementation" name="classes-api-petstore" depends="-load-properties-petstore,-prepare-classes,-classes-types-petstore">
<mkdir dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/petstore/com/mycompany/petstore/api"/>
<dependset>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec/../impl"/>
<srcfileset dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec">
<include name="${petstore.functionIncludes} ${petstore.typeIncludes} ${petstore.resultcodeIncludes}"/>
</srcfileset>
<targetfileset includes="*.java" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/petstore/com/mycompany/petstore/api"/>
<targetfileset includes="resultcodes.xml" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/petstore"/>
</dependset>
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/petstore"/>
</path>
<antcall target="-classes-api">
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
<propertyset refid="petstore.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target unless="no-war-petstore" description="Creates the WAR for the 'petstore' API" depends="-load-properties-petstore, classes-api-petstore, wsdl-petstore" name="war-petstore">
<tstamp>
<format pattern="yyyy.MM.dd HH:mm:ss.SS" property="timestamp"/>
</tstamp>
<antcall target="-war">
<propertyset refid="petstore.properties"/>
<param value="" name="implName2"/>
</antcall>
<property value="C:\Java\XINS\xins\demo\xins-project/build/classes-api/petstore" name="classes.api.dir"/>
<war duplicate="fail" manifest="C:\Java\XINS\xins\demo\xins-project/build/webapps/petstore/MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/webapps/petstore/petstore.war" webxml="C:\Java\XINS\xins\demo\xins-project/build/webapps/petstore/web.xml">
<lib includes="xins-common.jar xins-server.jar xins-client.jar" dir="C:\Java\XINS\xins/build"/>
<lib includes="commons-codec.jar httpclient.jar httpcore.jar commons-logging.jar log4j.jar xmlenc.jar json.jar logdoc.jar znerd-util.jar" dir="C:\Java\XINS\xins/lib"/>
<classes includes="**/*.class" dir="${classes.api.dir}"/>
<classes includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/petstore"/>
<classes excludes="**/*.java,**/*.class,impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/impl"/>
<zipfileset includes="org/xins/common/servlet/container/*.class org/xins/common/servlet/container/xins.gif" dir="C:\Java\XINS\xins\demo\xins-project/build/webapps/petstore"/>
<zipfileset prefix="WEB-INF" includes="petstore.wsdl" dir="C:\Java\XINS\xins\demo\xins-project/build/wsdl"/>
<zipfileset prefix="WEB-INF/specs" includes="api.xml ${petstore.functionIncludes} ${petstore.typeIncludes} ${petstore.resultcodeIncludes} ${petstore.categoryIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec"/>
<zipgroupfileset includes="servlet.jar" dir="C:\Java\XINS\xins/lib"/>
</war>
<checksum property="war.md5" file="C:\Java\XINS\xins\demo\xins-project/build/webapps/petstore/petstore.war"/>
<echo message="MD5: ${war.md5}"/>
<echo message="Build time: ${timestamp}"/>
</target>
<target description="Runs the 'petstore' API" name="run-petstore" depends="war-petstore">
<path id="run.classpath">
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-api/petstore"/>
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-types/petstore"/>
</path>
<antcall target="-run">
<reference refid="run.classpath"/>
<reference refid="xins.classpath"/>
<propertyset refid="petstore.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates Javadoc API docs for the 'petstore' API" depends="-load-properties, classes-api-petstore" name="javadoc-api-petstore">
<path id="javadoc.api.packageset">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/petstore"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/impl"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/petstore"/>
</path>
<antcall target="-javadoc-api">
<reference refid="javadoc.api.packageset"/>
<reference refid="classes.api.classpath"/>
<reference refid="xins.classpath"/>
<param value="petstore" name="api"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates an Stub API using the defined examples" depends="-load-properties-petstore" name="stub-petstore">
<antcall target="-stub">
<propertyset refid="petstore.properties"/>
<reference refid="all-dtds"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates the war file, the Javadoc API docs for the server side and the specdocs for the 'petstore' API." depends="specdocs-petstore, javadoc-api-petstore, war-petstore" name="server-petstore"/>
<target description="Generates and compiles the Java classes for the client-side 'petstore' API stubs" name="jar-petstore" depends="-load-properties-petstore,-classes-types-petstore">
<path id="jar.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/petstore"/>
</path>
<antcall target="-jar">
<propertyset refid="petstore.properties"/>
<reference refid="jar.classpath"/>
</antcall>
<copy todir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/petstore">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/petstore"/>
</copy>
<jar manifest="C:\Java\XINS\xins\demo\xins-project/build/capis/petstore-MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/capis/petstore-capi.jar">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/petstore"/>
<zipfileset prefix="specs" includes="api.xml ${petstore.functionIncludes} ${petstore.typeIncludes} ${petstore.resultcodeIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/petstore/spec"/>
</jar>
</target>
<target depends="jar-petstore" name="capi-petstore"/>
<target description="Generates Javadoc API docs for the client-side 'petstore' API stubs" name="javadoc-capi-petstore" depends="-load-properties-petstore, -classes-types-petstore">
<path id="javadoc.capi.packages">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-capi/petstore"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/petstore"/>
</path>
<antcall target="-javadoc-capi">
<reference refid="javadoc.capi.packages"/>
<propertyset refid="petstore.properties"/>
</antcall>
</target>
<target description="Generates an mock CAPI using the defined examples" depends="-load-properties-petstore, capi-petstore" name="mock-petstore">
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/petstore"/>
</path>
<antcall target="-mock">
<propertyset refid="petstore.properties"/>
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Put documentation and client implementation for 'petstore' in a zip file." depends="jar-petstore, javadoc-capi-petstore, specdocs-petstore, wsdl-petstore, opendoc-petstore, mock-petstore" name="client-petstore">
<antcall target="-client">
<param value="petstore" name="api"/>
</antcall>
</target>
<target description="Generates everything for the 'petstore' API stubs." name="all-petstore" depends="client-petstore, server-petstore"/>
<target description="Deletes everything for the 'petstore' API stubs." name="clean-petstore">
<antcall target="-clean">
<param value="petstore" name="api"/>
</antcall>
</target>
<target description="Regenerates everything for the 'petstore' API stubs." depends="clean-petstore, all-petstore" name="rebuild-petstore"/>
<target depends="-load-properties" name="-load-properties-fileupload">
<property value="fileupload" name="fileupload.api"/>
<property value="${project_home}/apis/${fileupload.api}/spec" name="fileupload.api_specsdir"/>
<property value="${fileupload.api_specsdir}/api.xml" name="fileupload.api_file"/>
<property value="UploadFile.fnc" name="fileupload.functionIncludes"/>
<property value="com.mycompany.fileupload.capi" name="fileupload.clientPackage"/>
<property value="com/mycompany/fileupload/capi" name="fileupload.clientPackageAsDir"/>
<property value="com.mycompany.fileupload.api" name="fileupload.package"/>
<property value="com/mycompany/fileupload/api" name="fileupload.packageAsDir"/>
<propertyset id="fileupload.properties">
<propertyref prefix="fileupload."/>
<mapper to="*" from="fileupload.*" type="glob"/>
</propertyset>
</target>
<target name="-dependset-file-fileupload">
<dirname file="C:\Java\XINS\xins\demo\xins-project/build/${dependset.destination}" property="dependset.directory"/>
<mkdir dir="${dependset.directory}"/>
<dependset>
<srcfilelist files="${functionIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/spec"/>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/impl"/>
<targetfileset includes="${dependset.destination}" dir="C:\Java\XINS\xins\demo\xins-project/build"/>
</dependset>
</target>
<target description="Generates all specification docs for the 'fileupload' API" depends="-load-properties-fileupload, index-specdocs" name="specdocs-fileupload">
<dependset>
<srcfilelist files="environments.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload"/>
<targetfileset includes="*.html" dir="C:\Java\XINS\xins\demo\xins-project/build/specdocs/fileupload"/>
</dependset>
<xmlvalidate warn="false" file="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/environments.xml">
<xmlcatalog refid="all-dtds"/>
</xmlvalidate>
<antcall target="-specdocs">
<propertyset refid="fileupload.properties"/>
<reference refid="all-dtds"/>
</antcall>
<antcall target="-specdocs-impl-runtime">
<propertyset refid="fileupload.properties"/>
<param value="" name="implName2"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the WSDL specification of the 'fileupload' API" depends="-load-properties-fileupload" name="wsdl-fileupload">
<antcall target="-wsdl">
<propertyset refid="fileupload.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the specification document for the 'fileupload' API" depends="-load-properties-fileupload" name="opendoc-fileupload">
<antcall target="-opendoc">
<propertyset refid="fileupload.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Compiles the Java classes for the 'fileupload' API implementation" name="classes-api-fileupload" depends="-load-properties-fileupload,-prepare-classes">
<mkdir dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/fileupload/com/mycompany/fileupload/api"/>
<dependset>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/spec/../impl"/>
<srcfileset dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/spec">
<include name="${fileupload.functionIncludes} ${fileupload.typeIncludes} ${fileupload.resultcodeIncludes}"/>
</srcfileset>
<targetfileset includes="*.java" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/fileupload/com/mycompany/fileupload/api"/>
</dependset>
<path id="classes.api.classpath"/>
<antcall target="-classes-api">
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
<propertyset refid="fileupload.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target unless="no-war-fileupload" description="Creates the WAR for the 'fileupload' API" depends="-load-properties-fileupload, classes-api-fileupload, wsdl-fileupload" name="war-fileupload">
<tstamp>
<format pattern="yyyy.MM.dd HH:mm:ss.SS" property="timestamp"/>
</tstamp>
<antcall target="-war">
<propertyset refid="fileupload.properties"/>
<param value="" name="implName2"/>
</antcall>
<property value="C:\Java\XINS\xins\demo\xins-project/build/classes-api/fileupload" name="classes.api.dir"/>
<war duplicate="fail" manifest="C:\Java\XINS\xins\demo\xins-project/build/webapps/fileupload/MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/webapps/fileupload/fileupload.war" webxml="C:\Java\XINS\xins\demo\xins-project/build/webapps/fileupload/web.xml">
<lib includes="xins-common.jar xins-server.jar xins-client.jar" dir="C:\Java\XINS\xins/build"/>
<lib includes="commons-codec.jar httpclient.jar httpcore.jar commons-logging.jar log4j.jar xmlenc.jar json.jar logdoc.jar znerd-util.jar" dir="C:\Java\XINS\xins/lib"/>
<classes includes="**/*.class" dir="${classes.api.dir}"/>
<classes excludes="**/*.java,**/*.class,impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/impl"/>
<zipfileset includes="org/xins/common/servlet/container/*.class org/xins/common/servlet/container/xins.gif" dir="C:\Java\XINS\xins\demo\xins-project/build/webapps/fileupload"/>
<zipfileset prefix="WEB-INF" includes="fileupload.wsdl" dir="C:\Java\XINS\xins\demo\xins-project/build/wsdl"/>
<zipfileset prefix="WEB-INF/specs" includes="api.xml ${fileupload.functionIncludes} ${fileupload.typeIncludes} ${fileupload.resultcodeIncludes} ${fileupload.categoryIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/spec"/>
<zipgroupfileset includes="servlet.jar" dir="C:\Java\XINS\xins/lib"/>
</war>
<checksum property="war.md5" file="C:\Java\XINS\xins\demo\xins-project/build/webapps/fileupload/fileupload.war"/>
<echo message="MD5: ${war.md5}"/>
<echo message="Build time: ${timestamp}"/>
</target>
<target description="Runs the 'fileupload' API" name="run-fileupload" depends="war-fileupload">
<path id="run.classpath">
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-api/fileupload"/>
</path>
<antcall target="-run">
<reference refid="run.classpath"/>
<reference refid="xins.classpath"/>
<propertyset refid="fileupload.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates Javadoc API docs for the 'fileupload' API" depends="-load-properties, classes-api-fileupload" name="javadoc-api-fileupload">
<path id="javadoc.api.packageset">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/fileupload"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/impl"/>
</path>
<antcall target="-javadoc-api">
<reference refid="javadoc.api.packageset"/>
<reference refid="classes.api.classpath"/>
<reference refid="xins.classpath"/>
<param value="fileupload" name="api"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates an Stub API using the defined examples" depends="-load-properties-fileupload" name="stub-fileupload">
<antcall target="-stub">
<propertyset refid="fileupload.properties"/>
<reference refid="all-dtds"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates the war file, the Javadoc API docs for the server side and the specdocs for the 'fileupload' API." depends="specdocs-fileupload, javadoc-api-fileupload, war-fileupload" name="server-fileupload"/>
<target description="Generates and compiles the Java classes for the client-side 'fileupload' API stubs" name="jar-fileupload" depends="-load-properties-fileupload">
<path id="jar.classpath"/>
<antcall target="-jar">
<propertyset refid="fileupload.properties"/>
<reference refid="jar.classpath"/>
</antcall>
<jar manifest="C:\Java\XINS\xins\demo\xins-project/build/capis/fileupload-MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/capis/fileupload-capi.jar">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/fileupload"/>
<zipfileset prefix="specs" includes="api.xml ${fileupload.functionIncludes} ${fileupload.typeIncludes} ${fileupload.resultcodeIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/fileupload/spec"/>
</jar>
</target>
<target depends="jar-fileupload" name="capi-fileupload"/>
<target description="Generates Javadoc API docs for the client-side 'fileupload' API stubs" name="javadoc-capi-fileupload" depends="-load-properties-fileupload">
<path id="javadoc.capi.packages">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-capi/fileupload"/>
</path>
<antcall target="-javadoc-capi">
<reference refid="javadoc.capi.packages"/>
<propertyset refid="fileupload.properties"/>
</antcall>
</target>
<target description="Generates an mock CAPI using the defined examples" depends="-load-properties-fileupload, capi-fileupload" name="mock-fileupload">
<path id="classes.api.classpath"/>
<antcall target="-mock">
<propertyset refid="fileupload.properties"/>
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Put documentation and client implementation for 'fileupload' in a zip file." depends="jar-fileupload, javadoc-capi-fileupload, specdocs-fileupload, wsdl-fileupload, opendoc-fileupload, mock-fileupload" name="client-fileupload">
<antcall target="-client">
<param value="fileupload" name="api"/>
</antcall>
</target>
<target description="Generates everything for the 'fileupload' API stubs." name="all-fileupload" depends="client-fileupload, server-fileupload"/>
<target description="Deletes everything for the 'fileupload' API stubs." name="clean-fileupload">
<antcall target="-clean">
<param value="fileupload" name="api"/>
</antcall>
</target>
<target description="Regenerates everything for the 'fileupload' API stubs." depends="clean-fileupload, all-fileupload" name="rebuild-fileupload"/>
<target depends="-load-properties" name="-load-properties-rest">
<property value="rest" name="rest.api"/>
<property value="${project_home}/apis/${rest.api}/spec" name="rest.api_specsdir"/>
<property value="${rest.api_specsdir}/api.xml" name="rest.api_file"/>
<property value="AddUser.fnc,DeleteUser.fnc,GetUser.fnc,UpdateUser.fnc" name="rest.functionIncludes"/>
<property value="myproject/spec/LastName.typ" name="rest.typeIncludesAll"/>
<property value="AccountNotFound.rcd" name="rest.resultcodeIncludes"/>
<property value="rest/spec/AccountNotFound.rcd" name="rest.resultcodeIncludesAll"/>
<property value="com.mycompany.rest.capi" name="rest.clientPackage"/>
<property value="com/mycompany/rest/capi" name="rest.clientPackageAsDir"/>
<property value="com.mycompany.rest.api" name="rest.package"/>
<property value="com/mycompany/rest/api" name="rest.packageAsDir"/>
<property value="true" name="rest.apiHasTypes"/>
<propertyset id="rest.properties">
<propertyref prefix="rest."/>
<mapper to="*" from="rest.*" type="glob"/>
</propertyset>
</target>
<target name="-dependset-file-rest">
<dirname file="C:\Java\XINS\xins\demo\xins-project/build/${dependset.destination}" property="dependset.directory"/>
<mkdir dir="${dependset.directory}"/>
<dependset>
<srcfilelist files="${functionIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/rest/spec"/>
<srcfilelist files="${typeIncludesAll}" dir="C:\Java\XINS\xins\demo\xins-project/apis"/>
<srcfilelist files="${resultcodeIncludesAll}" dir="C:\Java\XINS\xins\demo\xins-project/apis"/>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/rest/impl"/>
<targetfileset includes="${dependset.destination}" dir="C:\Java\XINS\xins\demo\xins-project/build"/>
</dependset>
</target>
<target description="Generates all specification docs for the 'rest' API" depends="-load-properties-rest, index-specdocs" name="specdocs-rest">
<dependset>
<srcfilelist files="environments.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/rest"/>
<targetfileset includes="*.html" dir="C:\Java\XINS\xins\demo\xins-project/build/specdocs/rest"/>
</dependset>
<xmlvalidate warn="false" file="C:\Java\XINS\xins\demo\xins-project/apis/rest/environments.xml">
<xmlcatalog refid="all-dtds"/>
</xmlvalidate>
<antcall target="-specdocs">
<propertyset refid="rest.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target depends="-load-properties-rest" name="-classes-types-rest">
<property value="com.mycompany.rest.types" name="rest.typePackage"/>
<property value="com/mycompany/rest/types" name="rest.typePackageAsDir"/>
<antcall target="-classes-types">
<propertyset refid="rest.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the WSDL specification of the 'rest' API" depends="-load-properties-rest" name="wsdl-rest">
<antcall target="-wsdl">
<propertyset refid="rest.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Generates the specification document for the 'rest' API" depends="-load-properties-rest" name="opendoc-rest">
<antcall target="-opendoc">
<propertyset refid="rest.properties"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Compiles the Java classes for the 'rest' API implementation" name="classes-api-rest" depends="-load-properties-rest,-prepare-classes,-classes-types-rest">
<mkdir dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/rest/com/mycompany/rest/api"/>
<dependset>
<srcfilelist files="impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/rest/spec/../impl"/>
<srcfileset dir="C:\Java\XINS\xins\demo\xins-project/apis/rest/spec">
<include name="${rest.functionIncludes} ${rest.typeIncludes} ${rest.resultcodeIncludes}"/>
</srcfileset>
<targetfileset includes="*.java" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/rest/com/mycompany/rest/api"/>
<targetfileset includes="resultcodes.xml" dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/rest"/>
</dependset>
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/rest"/>
</path>
<antcall target="-classes-api">
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
<propertyset refid="rest.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target unless="no-war-rest" description="Creates the WAR for the 'rest' API" depends="-load-properties-rest, classes-api-rest, wsdl-rest" name="war-rest">
<tstamp>
<format pattern="yyyy.MM.dd HH:mm:ss.SS" property="timestamp"/>
</tstamp>
<antcall target="-war">
<propertyset refid="rest.properties"/>
<param value="" name="implName2"/>
</antcall>
<property value="C:\Java\XINS\xins\demo\xins-project/build/classes-api/rest" name="classes.api.dir"/>
<war duplicate="fail" manifest="C:\Java\XINS\xins\demo\xins-project/build/webapps/rest/MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/webapps/rest/rest.war" webxml="C:\Java\XINS\xins\demo\xins-project/build/webapps/rest/web.xml">
<lib includes="xins-common.jar xins-server.jar xins-client.jar" dir="C:\Java\XINS\xins/build"/>
<lib includes="commons-codec.jar httpclient.jar httpcore.jar commons-logging.jar log4j.jar xmlenc.jar json.jar logdoc.jar znerd-util.jar" dir="C:\Java\XINS\xins/lib"/>
<classes includes="**/*.class" dir="${classes.api.dir}"/>
<classes includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/rest"/>
<classes excludes="**/*.java,**/*.class,impl.xml" dir="C:\Java\XINS\xins\demo\xins-project/apis/rest/impl"/>
<zipfileset includes="org/xins/common/servlet/container/*.class org/xins/common/servlet/container/xins.gif" dir="C:\Java\XINS\xins\demo\xins-project/build/webapps/rest"/>
<zipfileset prefix="WEB-INF" includes="rest.wsdl" dir="C:\Java\XINS\xins\demo\xins-project/build/wsdl"/>
<zipfileset prefix="WEB-INF/specs" includes="api.xml ${rest.functionIncludes} ${rest.typeIncludes} ${rest.resultcodeIncludes} ${rest.categoryIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/rest/spec"/>
<zipfileset prefix="WEB-INF/specs" includes="LastName.typ" dir="C:\Java\XINS\xins\demo\xins-project/apis/myproject/spec"/>
<zipgroupfileset includes="servlet.jar" dir="C:\Java\XINS\xins/lib"/>
</war>
<checksum property="war.md5" file="C:\Java\XINS\xins\demo\xins-project/build/webapps/rest/rest.war"/>
<echo message="MD5: ${war.md5}"/>
<echo message="Build time: ${timestamp}"/>
</target>
<target description="Runs the 'rest' API" name="run-rest" depends="war-rest">
<path id="run.classpath">
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-api/rest"/>
<path location="C:\Java\XINS\xins\demo\xins-project/build/classes-types/rest"/>
</path>
<antcall target="-run">
<reference refid="run.classpath"/>
<reference refid="xins.classpath"/>
<propertyset refid="rest.properties"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates Javadoc API docs for the 'rest' API" depends="-load-properties, classes-api-rest" name="javadoc-api-rest">
<path id="javadoc.api.packageset">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-fundament/rest"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/apis/rest/impl"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/rest"/>
</path>
<antcall target="-javadoc-api">
<reference refid="javadoc.api.packageset"/>
<reference refid="classes.api.classpath"/>
<reference refid="xins.classpath"/>
<param value="rest" name="api"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates an Stub API using the defined examples" depends="-load-properties-rest" name="stub-rest">
<antcall target="-stub">
<propertyset refid="rest.properties"/>
<reference refid="all-dtds"/>
<param value="" name="implName2"/>
</antcall>
</target>
<target description="Generates the war file, the Javadoc API docs for the server side and the specdocs for the 'rest' API." depends="specdocs-rest, javadoc-api-rest, war-rest" name="server-rest"/>
<target description="Generates and compiles the Java classes for the client-side 'rest' API stubs" name="jar-rest" depends="-load-properties-rest,-classes-types-rest">
<path id="jar.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/rest"/>
</path>
<antcall target="-jar">
<propertyset refid="rest.properties"/>
<reference refid="jar.classpath"/>
</antcall>
<copy todir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/rest">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-types/rest"/>
</copy>
<jar manifest="C:\Java\XINS\xins\demo\xins-project/build/capis/rest-MANIFEST.MF" destfile="C:\Java\XINS\xins\demo\xins-project/build/capis/rest-capi.jar">
<fileset includes="**/*.class" dir="C:\Java\XINS\xins\demo\xins-project/build/classes-capi/rest"/>
<zipfileset prefix="specs" includes="api.xml ${rest.functionIncludes} ${rest.typeIncludes} ${rest.resultcodeIncludes}" dir="C:\Java\XINS\xins\demo\xins-project/apis/rest/spec"/>
</jar>
</target>
<target depends="jar-rest" name="capi-rest"/>
<target description="Generates Javadoc API docs for the client-side 'rest' API stubs" name="javadoc-capi-rest" depends="-load-properties-rest, -classes-types-rest">
<path id="javadoc.capi.packages">
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-capi/rest"/>
<dirset dir="C:\Java\XINS\xins\demo\xins-project/build/java-types/rest"/>
</path>
<antcall target="-javadoc-capi">
<reference refid="javadoc.capi.packages"/>
<propertyset refid="rest.properties"/>
</antcall>
</target>
<target description="Generates an mock CAPI using the defined examples" depends="-load-properties-rest, capi-rest" name="mock-rest">
<path id="classes.api.classpath">
<pathelement path="C:\Java\XINS\xins\demo\xins-project/build/classes-types/rest"/>
</path>
<antcall target="-mock">
<propertyset refid="rest.properties"/>
<reference refid="classes.api.classpath"/>
<reference refid="all-dtds"/>
</antcall>
</target>
<target description="Put documentation and client implementation for 'rest' in a zip file." depends="jar-rest, javadoc-capi-rest, specdocs-rest, wsdl-rest, opendoc-rest, mock-rest" name="client-rest">
<antcall target="-client">
<param value="rest" name="api"/>
</antcall>
</target>
<target description="Generates everything for the 'rest' API stubs." name="all-rest" depends="client-rest, server-rest"/>
<target description="Deletes everything for the 'rest' API stubs." name="clean-rest">
<antcall target="-clean">
<param value="rest" name="api"/>
</antcall>
</target>
<target description="Regenerates everything for the 'rest' API stubs." depends="clean-rest, all-rest" name="rebuild-rest"/>
</project>
