<commit_before><?xml version="1.0"?>

<!--

	ADOBE SYSTEMS INCORPORATED
	Copyright 2008 Adobe Systems Incorporated
	All Rights Reserved.

	NOTICE: Adobe permits you to use, modify, and distribute this file
	in accordance with the terms of the license agreement accompanying it.

-->

<project name="spark" default="main" basedir=".">
	<property name="FLEX_HOME" location="${basedir}/../../.."/>

	<property file="${FLEX_HOME}/build.properties"/>

	<target name="main" depends="clean,compile,en_US" description="Clean build of spark.swc and its English resources"/>

	<target name="other.locales" depends="da_DK,de_DE,es_ES,fi_FI,fr_FR,it_IT,ja_JP,ko_KR,nb_NO,nl_NL,pt_BR,ru_RU,sv_SE,zh_CN,zh_TW" description="Build other locale SWCs"/>
	
	<target name="clean">
		<delete failonerror="false">
			<fileset dir="${basedir}" >
				<include name="bundles.properties"/>
				<include name="manifest.xml"/>
			</fileset>
			<fileset dir="${FLEX_HOME}/frameworks/libs">
				<include name="spark.swc"/>
				<include name="graphics.swc"/>
				<include name="spark.swc.incr"/>
				<include name="flex4.swc"/>
			</fileset>
			<fileset dir="${FLEX_HOME}/frameworks/locale">
				<include name="*/spark_rb.swc"/>
				<include name="*/spark_rb.swc.incr"/>
				<include name="*/flex4_rb.swc"/>
			</fileset>
		</delete>
	</target>
	
	<target name="prepare" description="Copies manifests to project directories so the IDE can find them">
		<copy file="${FLEX_HOME}/frameworks/spark-manifest.xml" tofile="${basedir}/manifest.xml" overwrite="true"/>
	</target>
	
	<target name="compile" depends="prepare" description="Compiles spark.swc">
		<echo file="${FLEX_HOME}/frameworks/version.properties" append="false">build=${build.number}</echo>
		<echo message="Compiling frameworks/libs/spark.swc"/>
		<!-- Load the <compc> task. We can't do this at the <project> level -->
		<!-- because targets that run before flexTasks.jar gets built would fail. -->
		<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/>
		<!--
			Link in the classes (and their dependencies) for the MXML tags
			listed in this project's manifest.xml.
			Also link the additional classes (and their dependencies)
			listed in SparkClasses.as,
			because these aren't referenced by the manifest classes.
			Link in accessibility support.
			Include the appropriate CSS files and assets in the SWC.
			Don't include any resources in the SWC.
			Write a bundle list of referenced resource bundles
			into the file bundles.properties in this directory.
		-->
		<compc fork="true" minimum-supported-version="4.0.0"
			   output="${FLEX_HOME}/frameworks/libs/spark.swc"
			   resource-bundle-list="${basedir}/bundles.properties">
			<jvmarg line="${compc.jvm.args}"/>
			<namespace uri="library://ns.adobe.com/flex/spark" manifest="${basedir}/manifest.xml"/>
			<include-namespaces uri="library://ns.adobe.com/flex/spark"/>
			<include-classes>SparkClasses</include-classes>
			<source-path path-element="${basedir}/src"/>
			<library-path />
			<external-library-path dir="${FLEX_HOME}/frameworks/libs">
                <include name="player/${global.playerglobal.version}/playerglobal.swc"/>
				<include name="framework.swc"/>
                <include name="osmf.swc"/>
                <include name="textLayout.swc"/>
			</external-library-path>
			<include-file name="version.properties" path="${FLEX_HOME}/frameworks/version.properties"/>
			<include-file name="defaults.css" path="${basedir}/defaults.css"/>
			<include-file name="defaults-3.0.0.css" path="${basedir}/defaults-3.0.0.css"/>	
			<locale/>
            <keep-as3-metadata name="SkinPart"/>
			<accessible>true</accessible>
		</compc>
		<delete file="${FLEX_HOME}/frameworks/version.properties"/>
	</target>

	<!-- This is a private target for building spark_rb.swc for various locales. -->
	<!-- The targets below set the 'locale' parameter and call it with <antcall>. -->
	<target name="bundle">
		<echo message="Compiling frameworks/locale/${locale}/spark_rb.swc"/>
		<!-- Load the <compc> task. We can't do this at the <project> level -->
		<!-- because targets that run before flexTasks.jar gets built would fail. -->
		<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/>
		<compc fork="true" minimum-supported-version="4.0.0"
			   output="${FLEX_HOME}/frameworks/locale/${locale}/spark_rb.swc"
			   locale="${locale}">

            <target-player>10</target-player>
			<jvmarg line="${compc.jvm.args}"/>
 			<include-resource-bundles bundle="components"/>
			<include-resource-bundles bundle="sparkEffects"/>
			<include-resource-bundles bundle="layout"/>
			<include-namespaces/>
			<include-classes/>
			<source-path path-element="${basedir}/bundles/${locale}"/>
			<source-path path-element="${FLEX_HOME}/frameworks/projects/spark/src"/>
			<source-path path-element="${FLEX_HOME}/frameworks/projects/framework/src"/>
			<include-libraries/>
			<library-path/>
            <external-library-path dir="${FLEX_HOME}/frameworks/libs"><commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after><?xml version="1.0"?>

<!--

	ADOBE SYSTEMS INCORPORATED
	Copyright 2008 Adobe Systems Incorporated
	All Rights Reserved.

	NOTICE: Adobe permits you to use, modify, and distribute this file
	in accordance with the terms of the license agreement accompanying it.

-->

<project name="spark" default="main" basedir=".">
	<property name="FLEX_HOME" location="${basedir}/../../.."/>

	<property file="${FLEX_HOME}/build.properties"/>

	<target name="main" depends="clean,compile,en_US" description="Clean build of spark.swc and its English resources"/>

	<target name="other.locales" depends="da_DK,de_DE,es_ES,fi_FI,fr_FR,it_IT,ja_JP,ko_KR,nb_NO,nl_NL,pt_BR,ru_RU,sv_SE,zh_CN,zh_TW" description="Build other locale SWCs"/>
	
	<target name="clean">
		<delete failonerror="false">
			<fileset dir="${basedir}" >
				<include name="bundles.properties"/>
				<include name="manifest.xml"/>
			</fileset>
			<fileset dir="${FLEX_HOME}/frameworks/libs">
				<include name="spark.swc"/>
				<include name="graphics.swc"/>
				<include name="spark.swc.incr"/>
				<include name="flex4.swc"/>
			</fileset>
			<fileset dir="${FLEX_HOME}/frameworks/locale">
				<include name="*/spark_rb.swc"/>
				<include name="*/spark_rb.swc.incr"/>
				<include name="*/flex4_rb.swc"/>
			</fileset>
		</delete>
	</target>
	
	<target name="prepare" description="Copies manifests to project directories so the IDE can find them">
		<copy file="${FLEX_HOME}/frameworks/spark-manifest.xml" tofile="${basedir}/manifest.xml" overwrite="true"/>
	</target>
	
	<target name="compile" depends="prepare" description="Compiles spark.swc">
		<echo file="${FLEX_HOME}/frameworks/version.properties" append="false">build=${build.number}</echo>
		<echo message="Compiling frameworks/libs/spark.swc"/>
		<!-- Load the <compc> task. We can't do this at the <project> level -->
		<!-- because targets that run before flexTasks.jar gets built would fail. -->
		<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/>
		<!--
			Link in the classes (and their dependencies) for the MXML tags
			listed in this project's manifest.xml.
			Also link the additional classes (and their dependencies)
			listed in SparkClasses.as,
			because these aren't referenced by the manifest classes.
			Link in accessibility support.
			Include the appropriate CSS files and assets in the SWC.
			Don't include any resources in the SWC.
			Write a bundle list of referenced resource bundles
			into the file bundles.properties in this directory.
		-->
		<compc fork="true" minimum-supported-version="4.0.0"
			   output="${FLEX_HOME}/frameworks/libs/spark.swc"
			   resource-bundle-list="${basedir}/bundles.properties">
			<jvmarg line="${compc.jvm.args}"/>
			<namespace uri="library://ns.adobe.com/flex/spark" manifest="${basedir}/manifest.xml"/>
			<include-namespaces uri="library://ns.adobe.com/flex/spark"/>
			<include-classes>SparkClasses</include-classes>
			<source-path path-element="${basedir}/src"/>
			<library-path />
			<external-library-path dir="${FLEX_HOME}/frameworks/libs">
                <include name="player/${global.playerglobal.version}/playerglobal.swc"/>
				<include name="framework.swc"/>
                <include name="osmf.swc"/>
                <include name="textLayout.swc"/>
			</external-library-path>
			<include-file name="version.properties" path="${FLEX_HOME}/frameworks/version.properties"/>
			<include-file name="defaults.css" path="${basedir}/defaults.css"/>
			<include-file name="defaults-3.0.0.css" path="${basedir}/defaults-3.0.0.css"/>	
			<locale/>
            <keep-as3-metadata name="SkinPart"/>
			<accessible>true</accessible>
		</compc>
		<delete file="${FLEX_HOME}/frameworks/version.properties"/>
	</target>

	<!-- This is a private target for building spark_rb.swc for various locales. -->
	<!-- The targets below set the 'locale' parameter and call it with <antcall>. -->
	<target name="bundle">
		<echo message="Compiling frameworks/locale/${locale}/spark_rb.swc"/>
		<!-- Load the <compc> task. We can't do this at the <project> level -->
		<!-- because targets that run before flexTasks.jar gets built would fail. -->
		<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/>
		<compc fork="true" minimum-supported-version="4.0.0"
			   output="${FLEX_HOME}/frameworks/locale/${locale}/spark_rb.swc"
			   locale="${locale}">

            <target-player>10</target-player>
			<jvmarg line="${compc.jvm.args}"/>
 			<include-resource-bundles bundle="components"/>
			<include-resource-bundles bundle="layout"/>
			<include-resource-bundles bundle="sparkEffects"/>
			<include-resource-bundles bundle="textLayout"/>
			<include-namespaces/>
			<include-classes/>
			<source-path path-element="${basedir}/bundles/${locale}"/>
			<source-path path-element="${FLEX_HOME}/frameworks/projects/spark/src"/>
			<source-path path-element="${FLEX_HOME}/frameworks/projects/framework/src"/>
			<include-libraries/>
			<library-path/>
            <external-library-path dir="${FLEX_HOME}/frameworks/libs">
{'fraction_non_alphanumeric': 0.16640378548895898, 'fraction_numerical': 0.004534700315457414, 'mean_word_length': 4.113407258064516, 'pattern_counts': {'":': 0, '<': 180, '<?xml version=': 2, '>': 180, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '5610690', 'n_tokens_mistral': 3555, 'n_tokens_neox': 3099, 'n_words': 694}