<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xalan="http://xml.apache.org/xslt" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:jaxws="http://www.netbeans.org/ns/jax-ws/1">
    <!--
                ===================
                JAX-WS WSIMPORT SECTION
                ===================
            -->
    <target name="wsimport-init" depends="init">
        <mkdir dir="${build.generated.dir}/wsimport/client"/>
        <mkdir dir="${build.generated.dir}/wsimport/binaries"/>
        <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
            <classpath path="${java.home}/../lib/tools.jar:${j2ee.platform.wsimport.classpath}:${javac.classpath}"/>
        </taskdef>
        <condition property="conf-dir" value="${conf.dir}/" else="">
            <isset property="conf.dir"/>
        </condition>
    </target>
    <target name="wsimport-client-check-travelWSDL" depends="wsimport-init">
        <condition property="wsimport-client-travelWSDL.notRequired">
            <available file="${build.generated.dir}/wsimport/client/org/netbeans/j2ee/wsdl/travelwsdl" type="dir"/>
        </condition>
    </target>
    <target name="wsimport-client-travelWSDL" depends="wsimport-init,wsimport-client-check-travelWSDL" unless="wsimport-client-travelWSDL.notRequired">
        <wsimport xendorsed="true" verbose="true" sourcedestdir="${build.generated.dir}/wsimport/client" extension="true" destdir="${build.generated.dir}/wsimport/binaries" wsdl="${basedir}/${conf-dir}xml-resources/web-service-references/travelWSDL/wsdl/travelWSDL.wsdl" wsdlLocation="file:/E:/DesktopFulvio/Desktop/CorsiDamiani/SOASecurity/Laboratorio/TravelServiceBPEL/src/travelWSDL.wsdl" catalog="catalog.xml"/>
        <copy todir="${build.classes.dir}">
            <fileset dir="${build.generated.dir}/wsimport/binaries" includes="**/*.xml"/>
        </copy>
    </target>
    <target name="wsimport-client-clean-travelWSDL" depends="-init-project">
        <delete dir="${build.generated.dir}/wsimport/client/org/netbeans/j2ee/wsdl/travelwsdl"/>
    </target>
    <target name="wsimport-client-generate" depends="wsimport-client-travelWSDL"/>
    <target name="wsimport-client-compile" depends="-pre-pre-compile">
        <webproject2:javac srcdir="${build.generated.dir}/wsimport/client" classpath="${j2ee.platform.wsimport.classpath}:${javac.classpath}" destdir="${build.classes.dir}"/>
    </target>
</project>
