<commit_before><?xml version="1.0" encoding="UTF-8"?>

<project name="Spark" default="release" basedir="..">

	<description>
        Spark build script.
    </description>

	<taskdef resource="net/sf/antcontrib/antcontrib.properties">
		<classpath>
			<pathelement location="${basedir}/build/lib/ant-contrib.jar"/>
		</classpath>
	</taskdef>

	<taskdef name="pack200" classname="com.sun.tools.apache.ant.pack200.Pack200Task">
		<classpath>
			<pathelement location="${basedir}/build/lib/pack200task.jar"/>
		</classpath>
	</taskdef>


	<!-- Optional add this file to override any of the properties below -->
	<property file="${basedir}/build/build.properties"/>
	<property name="version.major" value="2"/>
	<property name="version.minor" value="6"/>
	<property name="version.revision" value="3"/>

	<property name="version.extra" value="12555"/>

	<!--
	<loadfile property="version.extra" srcFile="./.svn/entries">
	<filterchain>
		<headfilter lines="1" skip="3"/>
		<deletecharacters chars="\n"/>
		</filterchain>
		</loadfile> -->

	<!-- For 'beta' or 'alpha' -->

	<!-- Setup the full version property correctly -->
	<if>
		<equals arg1="${version.extra}" arg2=""/>
		<then>
			<property name="version"
                      value="${version.major}.${version.minor}.${version.revision}"/>
			<property name="version.filename"
                      value="${version.major}_${version.minor}_${version.revision}"/>
		</then>
		<else>
			<property name="version"
                      value="${version.major}.${version.minor}.${version.revision}.${version.extra}"/>
			<property name="version.filename"
                      value="${version.major}_${version.minor}_${version.revision}_${version.extra}"/>
		</else>
	</if>

	<description>Spark Build</description>
	<!--set global properties for this build-->
	<property name="src" location="${basedir}/src/java"/>
	<property name="patch.dir" location="${basedir}/patches/"/>
	<property name="lib.dir" location="${basedir}/build/lib"/>
	<property name="dist.libs.dir" location="${basedir}/build/lib/dist"/>
	<property name="merge.libs.dir" location="${basedir}/build/lib/merge"/>
	<property name="libs.windows.dir" location="${dist.libs.dir}/windows"/>
	<property name="libs.linux.dir" location="${dist.libs.dir}/linux"/>
	<property name="libs.mac.dir" location="${dist.libs.dir}/mac"/>
	<property name="target" location="${basedir}/target"/>
	<property name="classes" location="${target}/classes"/>
	<property name="test.classes" location="${target}/classestest"/>
	<property name="test.src" location="${basedir}/src/test"/>
	<property name="target.build" location="${target}/build"/>
	<property name="sparkplugs.build" location="${target}/sparkplugs"/>
	<property name="target.resources" location="${target.build}/resources"/>
	<property name="targetlib" location="${target.build}/lib"/>
	<property name="targetlogs" location="${target.build}/logs"/>
	<property name="targetdocs" location="${target.build}/documentation"/>
	<property name="targetdocsapi" location="${targetdocs}/api"/>
	<property name="plugins" location="${target.build}/plugins"/>
	<property name="bin" location="${target.build}/bin"/>
	<property name="resources.dir" location="${basedir}/src/resources"/>
	<property name="commercial.plugin.dir" location="${basedir}/src/commercial"/>
	<property name="xtra.dir" location="${basedir}/src/xtra"/>
	<property name="target.xtra" location="${target.build}/xtra"/>
	<property name="release.dir" value="${basedir}/installer"/>
	<property name="proxy.host"     value=""/>
	<property name="proxy.port"     value=""/>
	<property name="proxy.user"     value=""/>
	<property name="proxy.pass"     value=""/>
	<property name="proxy.enabled"  value=""/>


	<!-- Installer Ant Script -->

	<property name="installer.install4j.home" value="/home/j2ee-bamboo/install4j.4.0.5"/>
	<property name="installer.dest.dir" value="${target}/installer"/>
	<property name="installer.install4j.srcfile" value="${basedir}/build/installer/spark.install4j"/>
	<property name="installer.app_name" value="Spark"/>
	<property name="installer.app_short_name" value="Spark"/>
	<property name="installer.product_name" value="Spark"/>
	<property name="installer.publisher" value="Jive Software"/>
	<property name="installer.publisher_url" value="www.jivesoftware.com"/>
	<property name="installer.file_prefix" value="${installer.app_short_name}"/>
	<property name="installer.release_root_path" value="${target.build}"/>

	<property name="advinst.path" value="C:\Programme\Caphyon\Advanced Installer 7.2.1"/>
	<property name="mac.build.dir" value="${target}/spark_app"/>
	<property name="mac.app.file" value="${mac.build.dir}/Spark.app"/>
	<property name="mac.dmg.file" value="${target}/installer/spark_${version.filename}.dmg"/>
	<property name="mac.volname" value="Spark_${version.major}.${version.minor}.${version.revision}"/>
	<property name="win.msi.withjre" value="${basedir}\installer\spark_${version.filename}.msi"/>
	<property name="win.msi.nojre" value="${basedir}\installer\spark_${version.filename}_online.msi"/>
	<property name="pack200.excludes"
              value="jingle.jar,mail.jar,activation.jar,dom4j.jar,startup.jar,base.jar,i4jruntime.jar"/>

	<!-- IzPack Installer -->
	<property name="installer.izpack.dir" value="/opt/IzPack/"/>
	<property name="launch4j.dir" location="/opt/Launch4j" />

	<!-- Inno Setup -->
	<property name="innosetup.dir" location="C:\\Programme\\Inno Setup 5\\" />

	<!-- Pack200 Config -->
	<property name="pack200.enabled" value="false"/>

	<!-- User Defined Properties -->
	<property file="build.properties"/>


	<!-- Define Default Library Archives -->
	<path id="agent.dependencies">
		<fileset dir="${dist.libs.dir}" includes="*.jar"/>
		<fileset dir="${merge.libs.dir}" includes="*.jar"/>
		<fileset dir="${libs.windows.dir}" includes="*.jar"/>
		<fileset dir="${lib.dir}" includes="*.jar"/>
	</path>

	<!-- clean =================================================================================== -->
	<target name="clean" description="Deletes files generated during the build.">
		<!--Delete created directory trees-->
		<delete failonerror="false">
			<fileset dir="${target}" followsymlinks="false"/>
		</delete>
		<delete dir="${release.dir}"  failonerror="false" followsymlinks="false" />
		<delete dir="${basedir}/work" failonerror="false" followsymlinks="false" />
	</target>

	<!-- init =================================================================================== -->
	<target name="init">
		<!-- Check for min build requirements -->
		<condition property="ant.not.ok" value="true">
			<not>
				<or>
					<contains string="${ant.version}" substring="1.6"/>
					<contains string="${ant.version}" substring="1.7"/>
					<contains string="${ant.version}" substring="1.8"/>
				</or>
			</not>
		</condition>
		<condition property="java.not.ok" value="true">
			<not>
				<or>
					<contains string="${ant.java.version}" substring="1.5"/>
					<contains string="${ant.java.version}" substring="1.6"/>
					<contains string="${ant.java.version}" substring="1.7"/>
				</or>
			</not>
		</condition>
		<fail if="ant.not.ok" message="Must use Ant 1.6.x or higher to build Spark"/>
		<fail if="java.not.ok" message="Must use JDK 1.6.x or higher to build Spark"/>

		<!-- Platform-specific initializations -->
		<condition property="windows">
			<os family="windows"/>
		</condition>
		<condition property="unix">
			<os family="unix"/>
		</condition>
		<condition property="solaris">
			<os name="SunOS"/>
		</condition>
		<condition property="linux">
			<os name="Linux"/>
		</condition>
		<condition property="mac">
			<os name="Mac OS X"/><commit_msg>SPARK-1557: Allow ant 1.9 as accepted version to build the product<commit_after><?xml version="1.0" encoding="UTF-8"?>

<project name="Spark" default="release" basedir="..">

	<description>
        Spark build script.
    </description>

	<taskdef resource="net/sf/antcontrib/antcontrib.properties">
		<classpath>
			<pathelement location="${basedir}/build/lib/ant-contrib.jar"/>
		</classpath>
	</taskdef>

	<taskdef name="pack200" classname="com.sun.tools.apache.ant.pack200.Pack200Task">
		<classpath>
			<pathelement location="${basedir}/build/lib/pack200task.jar"/>
		</classpath>
	</taskdef>


	<!-- Optional add this file to override any of the properties below -->
	<property file="${basedir}/build/build.properties"/>
	<property name="version.major" value="2"/>
	<property name="version.minor" value="6"/>
	<property name="version.revision" value="3"/>

	<property name="version.extra" value="12555"/>

	<!--
	<loadfile property="version.extra" srcFile="./.svn/entries">
	<filterchain>
		<headfilter lines="1" skip="3"/>
		<deletecharacters chars="\n"/>
		</filterchain>
		</loadfile> -->

	<!-- For 'beta' or 'alpha' -->

	<!-- Setup the full version property correctly -->
	<if>
		<equals arg1="${version.extra}" arg2=""/>
		<then>
			<property name="version"
                      value="${version.major}.${version.minor}.${version.revision}"/>
			<property name="version.filename"
                      value="${version.major}_${version.minor}_${version.revision}"/>
		</then>
		<else>
			<property name="version"
                      value="${version.major}.${version.minor}.${version.revision}.${version.extra}"/>
			<property name="version.filename"
                      value="${version.major}_${version.minor}_${version.revision}_${version.extra}"/>
		</else>
	</if>

	<description>Spark Build</description>
	<!--set global properties for this build-->
	<property name="src" location="${basedir}/src/java"/>
	<property name="patch.dir" location="${basedir}/patches/"/>
	<property name="lib.dir" location="${basedir}/build/lib"/>
	<property name="dist.libs.dir" location="${basedir}/build/lib/dist"/>
	<property name="merge.libs.dir" location="${basedir}/build/lib/merge"/>
	<property name="libs.windows.dir" location="${dist.libs.dir}/windows"/>
	<property name="libs.linux.dir" location="${dist.libs.dir}/linux"/>
	<property name="libs.mac.dir" location="${dist.libs.dir}/mac"/>
	<property name="target" location="${basedir}/target"/>
	<property name="classes" location="${target}/classes"/>
	<property name="test.classes" location="${target}/classestest"/>
	<property name="test.src" location="${basedir}/src/test"/>
	<property name="target.build" location="${target}/build"/>
	<property name="sparkplugs.build" location="${target}/sparkplugs"/>
	<property name="target.resources" location="${target.build}/resources"/>
	<property name="targetlib" location="${target.build}/lib"/>
	<property name="targetlogs" location="${target.build}/logs"/>
	<property name="targetdocs" location="${target.build}/documentation"/>
	<property name="targetdocsapi" location="${targetdocs}/api"/>
	<property name="plugins" location="${target.build}/plugins"/>
	<property name="bin" location="${target.build}/bin"/>
	<property name="resources.dir" location="${basedir}/src/resources"/>
	<property name="commercial.plugin.dir" location="${basedir}/src/commercial"/>
	<property name="xtra.dir" location="${basedir}/src/xtra"/>
	<property name="target.xtra" location="${target.build}/xtra"/>
	<property name="release.dir" value="${basedir}/installer"/>
	<property name="proxy.host"     value=""/>
	<property name="proxy.port"     value=""/>
	<property name="proxy.user"     value=""/>
	<property name="proxy.pass"     value=""/>
	<property name="proxy.enabled"  value=""/>


	<!-- Installer Ant Script -->

	<property name="installer.install4j.home" value="/home/j2ee-bamboo/install4j.4.0.5"/>
	<property name="installer.dest.dir" value="${target}/installer"/>
	<property name="installer.install4j.srcfile" value="${basedir}/build/installer/spark.install4j"/>
	<property name="installer.app_name" value="Spark"/>
	<property name="installer.app_short_name" value="Spark"/>
	<property name="installer.product_name" value="Spark"/>
	<property name="installer.publisher" value="Jive Software"/>
	<property name="installer.publisher_url" value="www.jivesoftware.com"/>
	<property name="installer.file_prefix" value="${installer.app_short_name}"/>
	<property name="installer.release_root_path" value="${target.build}"/>

	<property name="advinst.path" value="C:\Programme\Caphyon\Advanced Installer 7.2.1"/>
	<property name="mac.build.dir" value="${target}/spark_app"/>
	<property name="mac.app.file" value="${mac.build.dir}/Spark.app"/>
	<property name="mac.dmg.file" value="${target}/installer/spark_${version.filename}.dmg"/>
	<property name="mac.volname" value="Spark_${version.major}.${version.minor}.${version.revision}"/>
	<property name="win.msi.withjre" value="${basedir}\installer\spark_${version.filename}.msi"/>
	<property name="win.msi.nojre" value="${basedir}\installer\spark_${version.filename}_online.msi"/>
	<property name="pack200.excludes"
              value="jingle.jar,mail.jar,activation.jar,dom4j.jar,startup.jar,base.jar,i4jruntime.jar"/>

	<!-- IzPack Installer -->
	<property name="installer.izpack.dir" value="/opt/IzPack/"/>
	<property name="launch4j.dir" location="/opt/Launch4j" />

	<!-- Inno Setup -->
	<property name="innosetup.dir" location="C:\\Programme\\Inno Setup 5\\" />

	<!-- Pack200 Config -->
	<property name="pack200.enabled" value="false"/>

	<!-- User Defined Properties -->
	<property file="build.properties"/>


	<!-- Define Default Library Archives -->
	<path id="agent.dependencies">
		<fileset dir="${dist.libs.dir}" includes="*.jar"/>
		<fileset dir="${merge.libs.dir}" includes="*.jar"/>
		<fileset dir="${libs.windows.dir}" includes="*.jar"/>
		<fileset dir="${lib.dir}" includes="*.jar"/>
	</path>

	<!-- clean =================================================================================== -->
	<target name="clean" description="Deletes files generated during the build.">
		<!--Delete created directory trees-->
		<delete failonerror="false">
			<fileset dir="${target}" followsymlinks="false"/>
		</delete>
		<delete dir="${release.dir}"  failonerror="false" followsymlinks="false" />
		<delete dir="${basedir}/work" failonerror="false" followsymlinks="false" />
	</target>

	<!-- init =================================================================================== -->
	<target name="init">
		<!-- Check for min build requirements -->
		<condition property="ant.not.ok" value="true">
			<not>
				<or>
					<contains string="${ant.version}" substring="1.6"/>
					<contains string="${ant.version}" substring="1.7"/>
					<contains string="${ant.version}" substring="1.8"/>
					<contains string="${ant.version}" substring="1.9"/>
				</or>
			</not>
		</condition>
		<condition property="java.not.ok" value="true">
			<not>
				<or>
					<contains string="${ant.java.version}" substring="1.5"/>
					<contains string="${ant.java.version}" substring="1.6"/>
					<contains string="${ant.java.version}" substring="1.7"/>
				</or>
			</not>
		</condition>
		<fail if="ant.not.ok" message="Must use Ant 1.6.x or higher to build Spark"/>
		<fail if="java.not.ok" message="Must use JDK 1.6.x or higher to build Spark"/>

		<!-- Platform-specific initializations -->
		<condition property="windows">
			<os family="windows"/>
		</condition>
		<condition property="unix">
			<os family="unix"/>
		</condition>
		<condition property="solaris">
			<os name="SunOS"/>
		</condition>
		<condition property="linux">
			<os name="Linux"/>
		</condition>
		<condition property="mac">
			<os name="Mac OS X"/>
{'fraction_non_alphanumeric': 0.22912608752110117, 'fraction_numerical': 0.009349435138293729, 'mean_word_length': 4.799322289156627, 'pattern_counts': {'":': 0, '<': 316, '<?xml version=': 2, '>': 316, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3047010', 'n_tokens_mistral': 5118, 'n_tokens_neox': 4698, 'n_words': 850}