<commit_before><project name="caaers-grid" default="compile" xmlns:ivy="antlib:org.apache.ivy.ant">
	<property name="parent.dir" value="${basedir}/.." />
	<property file="${parent.dir}/build.properties" />
	<property file="build.properties" />
	<property name="wsrf" value="wsrf"/>
	<property name="wsrf-caaers" value="wsrf-caaers"/>
	<property name="ccts.grid-services.working.location" value="${build.dir}/working"/>
	<!--Working tomcat folder or file name 	-->
	<property name="ccts.grid-services.working.tomcat.file" value="apache-tomcat-5.5.20"/>
	<!--Working globus folder or file name-->
	<property name="ccts.grid-services.working.globus.file" value="ws-core-4.0.3"/>
	
	<property name="registration.consumer.grid.service.dir" value="RegistrationConsumerGridService-caGrid1.3.1"/>
	<property name="study.consumer.grid.service.dir" value="StudyConsumerGridService-caGrid1.3.1"/>
	<property name="lab.consumer.grid.service.dir" value="LabConsumerService-caGrid13"/>	
	<property name="aees.nes.service.dir" value="${basedir}/introduce/AdverseEventEnterpriseService"/>	
	
	
	<import file="${parent.dir}/common.xml"/>
	
	<target name="init" depends="common.init">
		<mkdir dir="${ccts.grid-services.working.location}"/>
	</target>
	
	<target name="publish-local" depends="common.clean-dist,init,common.resolve,download-tomcat,download-globus,deploy-globus,deploy-grid-services,war"/>

	<!-- ==============================================================
		target: resolve-dist , resolves all core and dependent jars ..
	================================================================== -->
	 <target name="resolve-dist" depends="load-ivy"
	    	description="--> resolve and retrieve dist conf dependencies with ivy">
	    	<echo message="Executing ${ant.project.name} : resolve-dist " />
	 		<ivy:resolve file="ivy.xml" haltonfailure="false" settingsRef="caaers.ivy.instance" conf="distGrid"/>
	 		<ivy:retrieve pattern="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}/webapps/${wsrf}/WEB-INF/lib/[artifact]-[revision].[ext]"  haltonfailure="false" settingsRef="caaers.ivy.instance" conf="distGrid"/>
	  </target>
	
	<!-- ==============================================================
		target: build-grid-services , compiles and builds all grid services ..
	================================================================== -->	
	<target name="build-grid-services">		
		<!-- First build CTMS grid services -->
		<subant target="all">
			<fileset dir="${ccts.grid-services.location}" includes="${registration.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<subant target="all">
			<fileset dir="${ccts.grid-services.location}" includes="${study.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<subant target="all">
			<fileset dir="${ccts.grid-services.location}" includes="${lab.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<!-- Then build caAERS's own NES grid services -->
		<echo message="Adverse Event Enterprise Service located in ${aees.nes.service.dir}, build file is ${aees.nes.service.dir}/build.xml" />
		<subant target="all">
			<fileset dir="${aees.nes.service.dir}" includes="${aees.nes.service.dir}/build.xml"/>
		</subant>
	</target>

	<!-- ==============================================================
		target: deploy-grid-services , deploys all grid services to working tomcat location ..
	================================================================== -->	
	<target name="deploy-grid-services" depends="build-grid-services">		
		<subant target="deployTomcat">
			<property name="globus.webapp" value="${wsrf}"/>
			<property name="tomcat.dir" value="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}"/>
			<fileset dir="${ccts.grid-services.location}" includes="${registration.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<subant target="deployTomcat">
			<property name="globus.webapp" value="${wsrf}"/>
			<property name="tomcat.dir" value="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}"/>
			<fileset dir="${ccts.grid-services.location}" includes="${study.consumer.grid.service.dir}/build.xml"/>
		</subant>	
		<subant target="deployTomcat">
			<property name="globus.webapp" value="${wsrf}"/>
			<property name="tomcat.dir" value="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}"/>
			<fileset dir="${ccts.grid-services.location}" includes="${lab.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<subant target="deployTomcat">
				<property name="globus.webapp" value="${wsrf}"/>
				<property name="tomcat.dir" value="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}"/>
				<fileset dir="${aees.nes.service.dir}" includes="${aees.nes.service.dir}/build.xml"/>
		</subant>		
		<copy todir="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}/webapps/${wsrf}/WEB-INF/lib">
	        <fileset dir="${parent.dir}/grid/registration-consumer/build/dist" includes="caaers-registration-consumer.jar"/>
			<fileset dir="${parent.dir}/grid/study-consumer/build/dist" includes="caaers-study-consumer.jar"/>
			<fileset dir="${parent.dir}/grid/lab-consumer/build/dist" includes="caaers-lab-consumer.jar"/><commit_msg>CAAERS-4517: implementation in progress. Fixed the problem that prevented AEES jars from being included in wsrf-caaers.war<commit_after><project name="caaers-grid" default="compile" xmlns:ivy="antlib:org.apache.ivy.ant">
	<property name="parent.dir" value="${basedir}/.." />
	<property file="${parent.dir}/build.properties" />
	<property file="build.properties" />
	<property name="wsrf" value="wsrf"/>
	<property name="wsrf-caaers" value="wsrf-caaers"/>
	<property name="ccts.grid-services.working.location" value="${build.dir}/working"/>
	<!--Working tomcat folder or file name 	-->
	<property name="ccts.grid-services.working.tomcat.file" value="apache-tomcat-5.5.20"/>
	<!--Working globus folder or file name-->
	<property name="ccts.grid-services.working.globus.file" value="ws-core-4.0.3"/>
	
	<property name="registration.consumer.grid.service.dir" value="RegistrationConsumerGridService-caGrid1.3.1"/>
	<property name="study.consumer.grid.service.dir" value="StudyConsumerGridService-caGrid1.3.1"/>
	<property name="lab.consumer.grid.service.dir" value="LabConsumerService-caGrid13"/>	
	<property name="aees.nes.service.dir" value="${basedir}/introduce/AdverseEventEnterpriseService"/>	
	
	
	<import file="${parent.dir}/common.xml"/>
	
	<target name="init" depends="common.init">
		<mkdir dir="${ccts.grid-services.working.location}"/>
	</target>
	
	<target name="publish-local" depends="common.clean-dist,init,common.resolve,download-tomcat,download-globus,deploy-globus,deploy-grid-services,war"/>

	<!-- ==============================================================
		target: resolve-dist , resolves all core and dependent jars ..
	================================================================== -->
	 <target name="resolve-dist" depends="load-ivy"
	    	description="--> resolve and retrieve dist conf dependencies with ivy">
	    	<echo message="Executing ${ant.project.name} : resolve-dist " />
	 		<ivy:resolve file="ivy.xml" haltonfailure="false" settingsRef="caaers.ivy.instance" conf="distGrid"/>
	 		<ivy:retrieve pattern="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}/webapps/${wsrf}/WEB-INF/lib/[artifact]-[revision].[ext]"  haltonfailure="false" settingsRef="caaers.ivy.instance" conf="distGrid"/>
	  </target>
	
	<!-- ==============================================================
		target: build-grid-services , compiles and builds all grid services ..
	================================================================== -->	
	<target name="build-grid-services">		
		<!-- First build CTMS grid services -->
		<subant target="all">
			<fileset dir="${ccts.grid-services.location}" includes="${registration.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<subant target="all">
			<fileset dir="${ccts.grid-services.location}" includes="${study.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<subant target="all">
			<fileset dir="${ccts.grid-services.location}" includes="${lab.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<!-- Then build caAERS's own NES grid services -->
		<echo message="Adverse Event Enterprise Service located in ${aees.nes.service.dir}, build file is ${aees.nes.service.dir}/build.xml" />
		<subant target="all">
			<fileset dir="${aees.nes.service.dir}" includes="build.xml"/>
		</subant>
	</target>

	<!-- ==============================================================
		target: deploy-grid-services , deploys all grid services to working tomcat location ..
	================================================================== -->	
	<target name="deploy-grid-services" depends="build-grid-services">		
		<subant target="deployTomcat">
			<property name="globus.webapp" value="${wsrf}"/>
			<property name="tomcat.dir" value="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}"/>
			<fileset dir="${ccts.grid-services.location}" includes="${registration.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<subant target="deployTomcat">
			<property name="globus.webapp" value="${wsrf}"/>
			<property name="tomcat.dir" value="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}"/>
			<fileset dir="${ccts.grid-services.location}" includes="${study.consumer.grid.service.dir}/build.xml"/>
		</subant>	
		<subant target="deployTomcat">
			<property name="globus.webapp" value="${wsrf}"/>
			<property name="tomcat.dir" value="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}"/>
			<fileset dir="${ccts.grid-services.location}" includes="${lab.consumer.grid.service.dir}/build.xml"/>
		</subant>
		<subant target="deployTomcat">
				<property name="globus.webapp" value="${wsrf}"/>
				<property name="tomcat.dir" value="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}"/>
				<fileset dir="${aees.nes.service.dir}" includes="build.xml"/>
		</subant>		
		<copy todir="${ccts.grid-services.working.location}/${ccts.grid-services.working.tomcat.file}/webapps/${wsrf}/WEB-INF/lib">
	        <fileset dir="${parent.dir}/grid/registration-consumer/build/dist" includes="caaers-registration-consumer.jar"/>
			<fileset dir="${parent.dir}/grid/study-consumer/build/dist" includes="caaers-study-consumer.jar"/>
			<fileset dir="${parent.dir}/grid/lab-consumer/build/dist" includes="caaers-lab-consumer.jar"/>
{'fraction_non_alphanumeric': 0.2543172596017741, 'fraction_numerical': 0.003208455223176371, 'mean_word_length': 5.415254237288136, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 145, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 24}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1864073', 'n_tokens_mistral': 3549, 'n_tokens_neox': 3231, 'n_words': 468}