<commit_before><project name="juddi-portal.tomcat" default="package-tomcat" basedir=".">
	<property file="package.properties"/>
	<property name="shared.lib.dir" value="${basedir}/target/tomcat/juddi-tomcat-${juddi.tomcat.version}/shared/lib"/>
	<property name="conf.dir" value="${basedir}/target/tomcat/juddi-tomcat-${juddi.tomcat.version}/conf"/>
	<property name="webapps.dir" value="${basedir}/target/tomcat/juddi-tomcat-${juddi.tomcat.version}/webapps"/>

	<target name="unzip-tomcat">
		<mkdir dir="${basedir}/target/tomcat"/>

		<unzip dest="${basedir}/target/tomcat" src="${dependency.juddi-tomcat.zip}"/>
		<copy file="${basedir}/tomcat-users.xml" todir="${conf.dir}" overwrite="yes"/>
		<copy file="${basedir}/pluto.xml" todir="${conf.dir}/Catalina/localhost" overwrite="yes"/>
		<unzip dest="${webapps.dir}/pluto" src="${dependency.pluto-portal.war}"/>
		<unzip dest="${webapps.dir}/uddi-portlets" src="${dependency.uddi-portlets.war}"/>
		<unzip dest="${webapps.dir}/subscription-listener" src="${dependency.subscription-listener.war}"/>
		<!--
		<copy file="${basedir}/pluto-portal-driver-config.xml" todir="${webapps.dir}/pluto/WEB-INF"/>
		-->
		<copy todir="${webapps.dir}/pluto">
			<fileset dir="${basedir}/pluto"/>
		</copy>
		<chmod perm="ugo+x">
			<fileset dir="${basedir}/target/tomcat/juddi-tomcat-${juddi.tomcat.version}/bin">
				<include name="*.sh"/>
			</fileset>
		</chmod>
	</target>
	
	<target name="copy-resources" depends="unzip-tomcat">
		<copy file="${dependency.castor.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.pluto-container.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.pluto-descriptor-api.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.pluto-descriptor-impl.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.pluto-taglib.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.portlet-api.jar}" todir="${shared.lib.dir}"/>
	</target>
	
	<target name="package-tomcat" depends="copy-resources"/>
</project><commit_msg>JUDDI-247 Remove commons-logging from pluto war.<commit_after><project name="juddi-portal.tomcat" default="package-tomcat" basedir=".">
	<property file="package.properties"/>
	<property name="shared.lib.dir" value="${basedir}/target/tomcat/juddi-tomcat-${juddi.tomcat.version}/shared/lib"/>
	<property name="conf.dir" value="${basedir}/target/tomcat/juddi-tomcat-${juddi.tomcat.version}/conf"/>
	<property name="webapps.dir" value="${basedir}/target/tomcat/juddi-tomcat-${juddi.tomcat.version}/webapps"/>

	<target name="unzip-tomcat">
		<mkdir dir="${basedir}/target/tomcat"/>

		<unzip dest="${basedir}/target/tomcat" src="${dependency.juddi-tomcat.zip}"/>
		<copy file="${basedir}/tomcat-users.xml" todir="${conf.dir}" overwrite="yes"/>
		<copy file="${basedir}/pluto.xml" todir="${conf.dir}/Catalina/localhost" overwrite="yes"/>
		<unzip dest="${webapps.dir}/pluto" src="${dependency.pluto-portal.war}"/>
		<delete file="${webapps.dir}/pluto/WEB-INF/lib/commons-logging-api-1.1.jar"/>
		<unzip dest="${webapps.dir}/uddi-portlets" src="${dependency.uddi-portlets.war}"/>
		<unzip dest="${webapps.dir}/subscription-listener" src="${dependency.subscription-listener.war}"/>
		<!--
		<copy file="${basedir}/pluto-portal-driver-config.xml" todir="${webapps.dir}/pluto/WEB-INF"/>
		-->
		<copy todir="${webapps.dir}/pluto">
			<fileset dir="${basedir}/pluto"/>
		</copy>
		<chmod perm="ugo+x">
			<fileset dir="${basedir}/target/tomcat/juddi-tomcat-${juddi.tomcat.version}/bin">
				<include name="*.sh"/>
			</fileset>
		</chmod>
	</target>
	
	<target name="copy-resources" depends="unzip-tomcat">
		<copy file="${dependency.castor.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.pluto-container.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.pluto-descriptor-api.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.pluto-descriptor-impl.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.pluto-taglib.jar}" todir="${shared.lib.dir}"/>
		<copy file="${dependency.portlet-api.jar}" todir="${shared.lib.dir}"/>
	</target>
	
	<target name="package-tomcat" depends="copy-resources"/>
</project>
{'fraction_non_alphanumeric': 0.23995186522262335, 'fraction_numerical': 0.0012033694344163659, 'mean_word_length': 5.524332810047095, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4921603', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1447, 'n_words': 170}