<commit_before><?xml version="1.0" encoding="utf-8"?>
<project basedir="." default="package.create" name="CONNECTCommonTypesLib">

  <property name="dist.type" value="jar" />
  <property name="coverage.isneeded" value="false" />
  <property name="unittest.hasTests" value="false" />
  <property name="deploy.type" value="shared" />
  <property name="deploy.isDeployable" value="true"/>
  <property name="build.generated.dir" value="build.generated"/>
  <property name="build.wsdl.output.dir" value="build.wsdl.output.dir"/>

  <!-- Please make sure that this goes up to the correct directory -->
  <import file="../../../build/build.targets.xml" />

  <!-- You can add more or less wsld files here... -->
  <patternset id="schema.list">
    <include name="nhinc/**/*.xsd"/>
    <include name="docs.oasis-open.org/**/*.xsd"/>
    <include name="ebRS/**/*.xsd"/>
    <include name="ihe/**/*.xsd"/>
    <include name="nhin/**/*.xsd"/>
    <include name="oasis/**/*.xsd"/>
    <include name="uddi/uddi_v3.xsd"/>
    <include name="uddi/uddi_v3custody.xsd"/>
    <include name="uddi/uddi_v3policy_instanceParms.xsd"/>
    <include name="uddi/uddi_v3subscriptionListener.xsd"/>
    <include name="uddi/uddi_v3subscription.xsd"/>
    <include name="www.w3.org/**/*.xsd"/>
    <include name="xmlsoap.org/**/*.xsd"/>
    <include name="Endpoint/**/*.xsd"/>
  </patternset>


  <path id="wsdl.list">
    <!-- You can add more or less wsld files here... -->
    <fileset dir="../Interfaces/src/wsdl">
      <include name="*.wsdl" />
      <exclude name="NhinUddiSubrV3PortType.wsdl" />
      <exclude name="NhincComponentInternalSubDiscovery201309Orch.wsdl" />
      <exclude name="rw-2.wsdl" />
      <exclude name="uddi_api_v3_binding.wsdl" />
      <exclude name="uddi_api_v3_portType.wsdl" />
      <exclude name="uddi_custody_v3_binding.wsdl" />
      <exclude name="uddi_custody_v3_portType.wsdl" />
      <exclude name="uddi_repl_v3_binding.wsdl" />
      <exclude name="uddi_repl_v3_portType.wsdl" />
      <exclude name="uddi_sub_v3_binding.wsdl" />
      <exclude name="uddi_sub_v3_portType.wsdl" />
      <exclude name="uddi_subr_v3_binding.wsdl" />
      <exclude name="uddi_subr_v3_portType.wsdl" />
      <exclude name="uddi_vs_v3_binding.wsdl" />
      <exclude name="uddi_vs_v3_portType.wsdl" />
      <exclude name="uddi_vscache_v3_binding.wsdl" />
      <exclude name="uddi_vscache_v3_portType.wsdl" />
    </fileset>
  </path>

  <taskdef name="WsImportConnect" classname="gov.hhs.fha.nhinc.tools.ws.ant.WsImportConnect" />
  
  <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"/>
  
  <target name="just.quick.clean">
    <if>
      <not>
        <isset property="delete.commontypes.lib" />
      </not>
      <then>
          <delete dir="${build.dir.root}" failonerror="true" />
          <delete dir="${dist.root.dir}" failonerror="true" />
      </then>
    </if>
  </target>

  <target name="just.clean" depends="just.quick.clean">
    <if>
      <not>
        <isset property="delete.commontypes.lib" />
      </not>
      <then>
          <delete dir="${lib.dir}" failonerror="true" />
          <delete dir="${build.generated.dir}" failonerror="true" />
          <delete dir="${build.wsdl.output.dir}" failonerror="true"/>
      </then>
    </if>
  </target>

  <target name="-compile.source">
    <echo message="compile.source for ${project.name}" level="info"/>
    <mkdir dir="${build.classes.dir}" />
    <mkdir dir="${build.generated.dir}/generated/client"/>
    <mkdir dir="${build.wsdl.output.dir}"/>
    <call target="generate.proxies.xjc"/>
    <call target="generate.proxies.wsdl"/>
    <call target="copy.util.src"/>
    <javac srcdir="${build.generated.dir}/generated/client" destdir="${build.classes.dir}"/>
  </target>

  <target name="-quick.compile.source">
    <echo message="quick compile.source for ${project.name}" level="info"/>
    <mkdir dir="${build.classes.dir}" />
    <call target="copy.util.src"/>
    <javac srcdir="${build.generated.dir}/generated/client" destdir="${build.classes.dir}"/>
  </target>

  <target name="copy.util.src">
    <copy todir="${build.generated.dir}/generated/client" overwrite="true">
      <fileset dir="src/main/java">
        <include name="**/*.java"/>
      </fileset>
    </copy>
  </target>

  <target name="generate.proxies.xjc">
    <outofdate verbose="true" force="${force.package}">
      <sourcefiles >
        <fileset dir="../Interfaces/src/schemas" >
          <patternset refid="schema.list"/>
        </fileset>
      </sourcefiles>
      <targetfiles path="${build.dir.root}/compilexjc.flag"/>
      <sequential>
        <xjc destdir="${build.generated.dir}/generated/client" >
          <arg value="-xmlschema"/>
          <schema dir="../Interfaces/src/schemas">
            <patternset refid="schema.list"/>
          </schema>
        </xjc>
        <echo file="${build.dir.root}/compilexjc.flag" append="false"/>
      </sequential>
    </outofdate>
  </target>
  
  <target name="generate.proxies.wsdl">
    <outofdate verbose="true" force="${force.package}">
      <sourcefiles>
        <path refid="wsdl.list"/>
      </sourcefiles>
      <targetfiles path="${build.dir.root}/compilewsdl.flag"/>
      <sequential>
        <for param="wsdl.file.path">
          <path refid="wsdl.list"/>
          <sequential>
            <var name="wsdl.file" unset="true"/>
            <basename property="wsdl.file" file="@{wsdl.file.path}" />
	    <java classname="gov.hhs.fha.nhinc.tools.ws.WsImportConnect"
		   fork="true"
		   failonerror="true">
		<arg value="-d"/>
		<arg value="${build.wsdl.output.dir}"/>
		<arg value="-extension"/>
		<arg value="-Xnocompile"/>
		<arg value="-keep"/>	
		<arg value="-s"/>
		<arg value="${build.generated.dir}/generated/client"/>
		<arg value="-verbose"/>			
		<arg value="@{wsdl.file.path}"/>			
		<arg value="-wsdllocation"/>
		<arg value="${wsdl.file}"/>
		<jvmarg line="-Xmx1024m -Xms1024m"/>
		<classpath>
			<pathelement path="${env.ANT_HOME}/lib/webservices-rt.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxb-impl.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxb-xjc.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxws-api.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxws-rt.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxws-tools.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/agilex-ant-tasks.jar"/>
		</classpath>
	    </java><commit_msg>GATEWAY-1455; adding wsdls to common types lib jar<commit_after><?xml version="1.0" encoding="utf-8"?>
<project basedir="." default="package.create" name="CONNECTCommonTypesLib">

  <property name="dist.type" value="jar" />
  <property name="coverage.isneeded" value="false" />
  <property name="unittest.hasTests" value="false" />
  <property name="deploy.type" value="shared" />
  <property name="deploy.isDeployable" value="true"/>
  <property name="build.generated.dir" value="build/generated/client"/>
  <property name="build.wsdl.output.dir" value="build/wsdl"/>

  <!-- Please make sure that this goes up to the correct directory -->
  <import file="../../../build/build.targets.xml" />

  <!-- You can add more or less wsld files here... -->
  <patternset id="schema.list">
    <include name="nhinc/**/*.xsd"/>
    <include name="docs.oasis-open.org/**/*.xsd"/>
    <include name="ebRS/**/*.xsd"/>
    <include name="ihe/**/*.xsd"/>
    <include name="nhin/**/*.xsd"/>
    <include name="oasis/**/*.xsd"/>
    <include name="uddi/uddi_v3.xsd"/>
    <include name="uddi/uddi_v3custody.xsd"/>
    <include name="uddi/uddi_v3policy_instanceParms.xsd"/>
    <include name="uddi/uddi_v3subscriptionListener.xsd"/>
    <include name="uddi/uddi_v3subscription.xsd"/>
    <include name="www.w3.org/**/*.xsd"/>
    <include name="xmlsoap.org/**/*.xsd"/>
    <include name="Endpoint/**/*.xsd"/>
  </patternset>


  <path id="wsdl.list">
    <!-- You can add more or less wsld files here... -->
    <fileset dir="../Interfaces/src/wsdl">
      <include name="*.wsdl" />
      <exclude name="NhinUddiSubrV3PortType.wsdl" />
      <exclude name="NhincComponentInternalSubDiscovery201309Orch.wsdl" />
      <exclude name="rw-2.wsdl" />
      <exclude name="uddi_api_v3_binding.wsdl" />
      <exclude name="uddi_api_v3_portType.wsdl" />
      <exclude name="uddi_custody_v3_binding.wsdl" />
      <exclude name="uddi_custody_v3_portType.wsdl" />
      <exclude name="uddi_repl_v3_binding.wsdl" />
      <exclude name="uddi_repl_v3_portType.wsdl" />
      <exclude name="uddi_sub_v3_binding.wsdl" />
      <exclude name="uddi_sub_v3_portType.wsdl" />
      <exclude name="uddi_subr_v3_binding.wsdl" />
      <exclude name="uddi_subr_v3_portType.wsdl" />
      <exclude name="uddi_vs_v3_binding.wsdl" />
      <exclude name="uddi_vs_v3_portType.wsdl" />
      <exclude name="uddi_vscache_v3_binding.wsdl" />
      <exclude name="uddi_vscache_v3_portType.wsdl" />
    </fileset>
  </path>

  <taskdef name="WsImportConnect" classname="gov.hhs.fha.nhinc.tools.ws.ant.WsImportConnect" />
  
  <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"/>
  
  <target name="just.quick.clean">
    <if>
      <not>
        <isset property="delete.commontypes.lib" />
      </not>
      <then>
          <delete dir="${build.dir.root}" failonerror="true" />
          <delete dir="${dist.root.dir}" failonerror="true" />
      </then>
    </if>
  </target>

  <target name="just.clean" depends="just.quick.clean">
    <if>
      <not>
        <isset property="delete.commontypes.lib" />
      </not>
      <then>
          <delete dir="${lib.dir}" failonerror="true" />
          <delete dir="${build.generated.dir}" failonerror="true" />
          <delete dir="${build.wsdl.output.dir}" failonerror="true"/>
      </then>
    </if>
  </target>

  <target name="-compile.source">
    <echo message="compile.source for ${project.name}" level="info"/>
    <mkdir dir="${build.classes.dir}" />
    <mkdir dir="${build.generated.dir}"/>
    <mkdir dir="${build.wsdl.output.dir}"/>
    <call target="generate.proxies.xjc"/>
    <call target="generate.proxies.wsdl"/>
    <call target="copy.util.src"/>
    <javac srcdir="${build.generated.dir}" destdir="${build.classes.dir}"/>
    <copy todir="${build.classes.dir}/META-INF/wsdl" overwrite="true">
		<path refid="wsdl.list" />
	</copy>
  </target>

  <target name="-quick.compile.source">
    <echo message="quick compile.source for ${project.name}" level="info"/>
    <mkdir dir="${build.classes.dir}" />
    <call target="copy.util.src"/>
    <javac srcdir="${build.generated.dir}" destdir="${build.classes.dir}"/>
  </target>

  <target name="copy.util.src">
    <copy todir="${build.generated.dir}" overwrite="true">
      <fileset dir="src/main/java">
        <include name="**/*.java"/>
      </fileset>
    </copy>
  </target>

  <target name="generate.proxies.xjc">
    <outofdate verbose="true" force="${force.package}">
      <sourcefiles >
        <fileset dir="../Interfaces/src/schemas" >
          <patternset refid="schema.list"/>
        </fileset>
      </sourcefiles>
      <targetfiles path="${build.dir.root}/compilexjc.flag"/>
      <sequential>
        <xjc destdir="${build.generated.dir}" >
          <arg value="-xmlschema"/>
          <schema dir="../Interfaces/src/schemas">
            <patternset refid="schema.list"/>
          </schema>
        </xjc>
        <echo file="${build.dir.root}/compilexjc.flag" append="false"/>
      </sequential>
    </outofdate>
  </target>
  
  <target name="generate.proxies.wsdl">
    <outofdate verbose="true" force="${force.package}">
      <sourcefiles>
        <path refid="wsdl.list"/>
      </sourcefiles>
      <targetfiles path="${build.dir.root}/compilewsdl.flag"/>
      <sequential>
        <for param="wsdl.file.path">
          <path refid="wsdl.list"/>
          <sequential>
            <var name="wsdl.file" unset="true"/>
            <basename property="wsdl.file" file="@{wsdl.file.path}" />
	    <java classname="gov.hhs.fha.nhinc.tools.ws.WsImportConnect"
		   fork="true"
		   failonerror="true">
		<arg value="-d"/>
		<arg value="${build.wsdl.output.dir}"/>
		<arg value="-extension"/>
		<arg value="-Xnocompile"/>
		<arg value="-keep"/>	
		<arg value="-s"/>
		<arg value="${build.generated.dir}"/>
		<arg value="-verbose"/>			
		<arg value="@{wsdl.file.path}"/>			
		<arg value="-wsdllocation"/>
		<arg value="META-INF/wsdl/${wsdl.file}"/>
		<jvmarg line="-Xmx1024m -Xms1024m"/>
		<classpath>
			<pathelement path="${env.ANT_HOME}/lib/webservices-rt.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxb-impl.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxb-xjc.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxws-api.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxws-rt.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/jaxws-tools.jar"/>
			<pathelement path="${env.ANT_HOME}/lib/agilex-ant-tasks.jar"/>
		</classpath>
	    </java>
{'fraction_non_alphanumeric': 0.20192606399502952, 'fraction_numerical': 0.006368437402920162, 'mean_word_length': 3.1525314414704932, 'pattern_counts': {'":': 0, '<': 312, '<?xml version=': 2, '>': 312, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5625719', 'n_tokens_mistral': 4759, 'n_tokens_neox': 4451, 'n_words': 666}