<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="Broadleaf-internal" default="usage" basedir="..">
	<description>
            Broadleaf Build File
    </description>
	<property name="stage.dir" value="${basedir}/build/stage" />
	<property name="framework.src.dir" value="${basedir}/src-framework" />
	<property name="extensibility.src.dir" value="${basedir}/src-extensibility" />
	<property name="profile.src.dir" value="${basedir}/src-profile" />
	<property name="layout.src.dir" value="${basedir}/src-layout" />
	<property name="lib.dir" value="${basedir}/lib" />
	<property name="config.dir" value="${basedir}/config" />
	<property name="compile.lib.dir" value="${lib.dir}/compile/bin" />
	<property name="common.lib.dir" value="${lib.dir}/common" />
	<property name="spring.config.dir" value="${config.dir}/spring" />
	<property name="jdbc.config.dir" value="${config.dir}/jdbc" />
	<property name="test.output.dir" value="${basedir}/test-output" />
	<property file="${basedir}/build/build.properties" />

	<taskdef resource="net/sf/antcontrib/antcontrib.properties">
		<classpath>
			<pathelement location="${lib.dir}/test/bin/ant-contrib-1.0b3.jar" />
		</classpath>
	</taskdef>

	<fileset id="compile.lib" dir="${compile.lib.dir}" description="compile-time dependencies">
		<include name="**/*.jar" />
	</fileset>

	<fileset id="common.lib" dir="${common.lib.dir}" description="common dependencies">
		<include name="**/*.jar" />
	</fileset>

	<target name="build-framework-jar" depends="setup, build-extensibility-jar, build-profile-jar">
		<mkdir dir="${stage.dir}/framework-jar" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
			<fileset file="${stage.dir}/*.jar" />
		</path>

		<echo>Compiling with debug=${debug.compile}</echo>
		<javac destdir="${stage.dir}/framework-jar" srcdir="${framework.src.dir}" classpathref="compile-lib" debug="${debug.compile}"/>

		<copy todir="${stage.dir}/framework-jar">
			<fileset dir="${framework.src.dir}">
				<include name="**/*.*" />
				<exclude name="**/*.java" />
			</fileset>
		</copy>

		<copy tofile="${stage.dir}/framework-jar/applicationContext.xml">
			<fileset dir="${spring.config.dir}">
				<include name="applicationContext.xml" />
			</fileset>
		</copy>

		<copy tofile="${stage.dir}/framework-jar/jdbc.properties">
			<fileset dir="${jdbc.config.dir}">
				<include name="jdbc.properties" />
			</fileset>
		</copy>
		
		<if>
			<equals arg1="${hibernate.hbm2ddl.auto}" arg2="false" />
			<then>
				<replace file="${stage.dir}/framework-jar/META-INF/persistence-framework-catalog.xml">
					<replacetoken><![CDATA[<property name="hibernate.hbm2ddl.auto" value="update"/>]]></replacetoken>
					<replacevalue><![CDATA[<!-- <property name="hibernate.hbm2ddl.auto" value="update"/>-->]]></replacevalue>
				</replace>
				<replace file="${stage.dir}/framework-jar/META-INF/persistence-framework-user.xml">
					<replacetoken><![CDATA[<property name="hibernate.hbm2ddl.auto" value="update"/>]]></replacetoken>
					<replacevalue><![CDATA[<!-- <property name="hibernate.hbm2ddl.auto" value="update"/>-->]]></replacevalue>
				</replace>
			</then>
		</if>

		<jar jarfile="${stage.dir}/broadleaf-framework.jar" basedir="${stage.dir}/framework-jar">
			<include name="**/*.class" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
		<delete dir="${stage.dir}/framework-jar" />
	</target>

	<target name="build-framework-source-jar" depends="build-extensibility-source-jar, build-profile-source-jar">
		<delete file="${stage.dir}/broadleaf-framework-sources.jar" />
		<jar jarfile="${stage.dir}/broadleaf-framework-sources.jar" basedir="${framework.src.dir}">
			<include name="**/*.java" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
	</target>

	<target name="build-extensibility-jar" depends="setup">
		<mkdir dir="${stage.dir}/extensibility-jar" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
			<fileset file="${stage.dir}/*.jar" />
		</path>

		<echo>Compiling with debug=${debug.compile}</echo>
		<javac destdir="${stage.dir}/extensibility-jar" srcdir="${extensibility.src.dir}" classpathref="compile-lib" debug="${debug.compile}"/>

		<copy todir="${stage.dir}/extensibility-jar">
			<fileset dir="${extensibility.src.dir}">
				<include name="**/*.*" />
				<exclude name="**/*.java" />
			</fileset>
		</copy>

		<copy tofile="${stage.dir}/extensibility-jar/jdbc.properties">
			<fileset dir="${jdbc.config.dir}">
				<include name="jdbc.properties" />
			</fileset>
		</copy>

		<jar jarfile="${stage.dir}/broadleaf-extensibility.jar" basedir="${stage.dir}/extensibility-jar">
			<include name="**/*.class" />
			<include name="**/*.properties" />
			<include name="**/*.txt" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
		
	</target>

	<target name="build-extensibility-source-jar">
		<delete file="${stage.dir}/build-extensibility-source-jar" />
		<jar jarfile="${stage.dir}/broadleaf-extensibility-sources.jar" basedir="${extensibility.src.dir}">
			<include name="**/*.java" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
	</target>

	<target name="generate-javadocs">
		<mkdir dir="${stage.dir}/javadocs" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
		</path>

		<javadoc packagenames="org.broadleafcommerce.*" destdir="${stage.dir}/javadocs" classpathref="compile-lib" useexternalfile="true">
			<fileset dir="${framework.src.dir}">
				<include name="**/*.java" />
			</fileset>
		</javadoc>
	</target>

	<target name="build-layout-jar" depends="setup, build-extensibility-jar, build-profile-jar, build-framework-jar">
		<mkdir dir="${stage.dir}/layout-jar" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
			<fileset file="${stage.dir}/*.jar" />
		</path>

		<echo>Compiling with debug=${debug.compile}</echo>
		<javac destdir="${stage.dir}/layout-jar"
			srcdir="${layout.src.dir}" classpathref="compile-lib" debug="${debug.compile}"/>

		<copy todir="${stage.dir}/layout-jar">
			<fileset dir="${layout.src.dir}">
				<include name="**/*.*" />
				<exclude name="**/*.java" />
			</fileset>
			<fileset dir="${config.dir}">
				<include name="**/*.properties" />
			</fileset>
		</copy>

		<jar jarfile="${stage.dir}/broadleaf-layout.jar" basedir="${stage.dir}/layout-jar">
			<include name="**/*.class" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
		<delete dir="${stage.dir}/layout-jar" />
	</target>

	<target name="build-layout-source-jar" depends="build-extensibility-source-jar, build-profile-source-jar, build-framework-source-jar">
		<delete file="${stage.dir}/broadleaf-layout-sources.jar" />
		<jar jarfile="${stage.dir}/broadleaf-layout-sources.jar" basedir="${layout.src.dir}">
			<include name="**/*.java" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
	</target>

	<target name="build-profile-jar" depends="setup, build-extensibility-jar">
		<mkdir dir="${stage.dir}/profile-jar" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
			<fileset file="${stage.dir}/broadleaf-extensibility.jar" />
		</path>

		<echo>Compiling with debug=${debug.compile}</echo>
		<javac destdir="${stage.dir}/profile-jar"
			srcdir="${profile.src.dir}" classpathref="compile-lib" debug="${debug.compile}"/>

		<copy todir="${stage.dir}/profile-jar">
			<fileset dir="${profile.src.dir}">
				<include name="**/*.*" />
				<exclude name="**/*.java" />
			</fileset>
			<fileset dir="${config.dir}">
				<include name="**/*.properties" />
				<include name="**/*.vm" />
			</fileset>
		</copy>
		
		<if>
			<equals arg1="${hibernate.hbm2ddl.auto}" arg2="false" />
			<then>
				<replace file="${stage.dir}/profile-jar/META-INF/persistence-profile.xml">
					<replacetoken><![CDATA[<property name="hibernate.hbm2ddl.auto" value="update"/>]]></replacetoken>
					<replacevalue><![CDATA[<!-- <property name="hibernate.hbm2ddl.auto" value="update"/>-->]]></replacevalue>
				</replace>
			</then>
		</if>

		<jar jarfile="${stage.dir}/broadleaf-profile.jar" basedir="${stage.dir}/profile-jar">
			<include name="**/*.class" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="**/*.vm" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
		<delete dir="${stage.dir}/profile-jar" />
	</target>

	<target name="build-profile-source-jar" depends="build-extensibility-source-jar">
		<delete file="${stage.dir}/broadleaf-profile-sources.jar" />
		<jar jarfile="${stage.dir}/broadleaf-profile-sources.jar" basedir="${profile.src.dir}">
			<include name="**/*.java" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="**/*.vm" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
	</target>

	<target name="build-jars" depends="build-framework-jar,build-extensibility-jar,build-profile-jar,build-layout-jar"/>

	<target name="build-source-jars" depends="build-framework-source-jar,build-extensibility-source-jar,build-profile-source-jar,build-layout-source-jar"/>

    <target name="publish-jars"
            depends="build-jars, build-source-jars"
            description="Publishes all artifacts from this build to the shared repository">
    	<copy file="${stage.dir}/broadleaf-extensibility.jar" todir="${basedir}/../web/lib/include/bin" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-extensibility-sources.jar" todir="${basedir}/../web/lib/include/src" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-framework.jar" todir="${basedir}/../web/lib/include/bin" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-framework-sources.jar" todir="${basedir}/../web/lib/include/src" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-layout.jar" todir="${basedir}/../web/lib/include/bin" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-layout-sources.jar" todir="${basedir}/../web/lib/include/src" overwrite="true"/>
       	<copy file="${stage.dir}/broadleaf-profile.jar" todir="${basedir}/../web/lib/include/bin" overwrite="true"/>
       	<copy file="${stage.dir}/broadleaf-profile-sources.jar" todir="${basedir}/../web/lib/include/src" overwrite="true"/>
    </target>

	<target name="clean">
		<delete dir="${stage.dir}" />
		<delete dir="${test.output.dir}" />
	</target>

	<target name="setup" depends="clean">
		<echo>Setting up for environment = ${build.env}</echo>
		<mkdir dir="${stage.dir}" />
		<if>
			<equals arg1="${build.env}" arg2="dev" />
			<then>
				<property name="debug.compile" value="true" />
			</then><commit_msg>copy framework jars to libraries<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="Broadleaf-internal" default="usage" basedir="..">
	<description>
            Broadleaf Build File
    </description>
	<property name="stage.dir" value="${basedir}/build/stage" />
	<property name="framework.src.dir" value="${basedir}/src-framework" />
	<property name="extensibility.src.dir" value="${basedir}/src-extensibility" />
	<property name="profile.src.dir" value="${basedir}/src-profile" />
	<property name="layout.src.dir" value="${basedir}/src-layout" />
	<property name="lib.dir" value="${basedir}/lib" />
	<property name="config.dir" value="${basedir}/config" />
	<property name="compile.lib.dir" value="${lib.dir}/compile/bin" />
	<property name="common.lib.dir" value="${lib.dir}/common" />
	<property name="spring.config.dir" value="${config.dir}/spring" />
	<property name="jdbc.config.dir" value="${config.dir}/jdbc" />
	<property name="test.output.dir" value="${basedir}/test-output" />
	<property file="${basedir}/build/build.properties" />

	<taskdef resource="net/sf/antcontrib/antcontrib.properties">
		<classpath>
			<pathelement location="${lib.dir}/test/bin/ant-contrib-1.0b3.jar" />
		</classpath>
	</taskdef>

	<fileset id="compile.lib" dir="${compile.lib.dir}" description="compile-time dependencies">
		<include name="**/*.jar" />
	</fileset>

	<fileset id="common.lib" dir="${common.lib.dir}" description="common dependencies">
		<include name="**/*.jar" />
	</fileset>

	<target name="build-framework-jar" depends="setup, build-extensibility-jar, build-profile-jar">
		<mkdir dir="${stage.dir}/framework-jar" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
			<fileset file="${stage.dir}/*.jar" />
		</path>

		<echo>Compiling with debug=${debug.compile}</echo>
		<javac destdir="${stage.dir}/framework-jar" srcdir="${framework.src.dir}" classpathref="compile-lib" debug="${debug.compile}"/>

		<copy todir="${stage.dir}/framework-jar">
			<fileset dir="${framework.src.dir}">
				<include name="**/*.*" />
				<exclude name="**/*.java" />
			</fileset>
		</copy>

		<copy tofile="${stage.dir}/framework-jar/applicationContext.xml">
			<fileset dir="${spring.config.dir}">
				<include name="applicationContext.xml" />
			</fileset>
		</copy>

		<copy tofile="${stage.dir}/framework-jar/jdbc.properties">
			<fileset dir="${jdbc.config.dir}">
				<include name="jdbc.properties" />
			</fileset>
		</copy>

		<if>
			<equals arg1="${hibernate.hbm2ddl.auto}" arg2="false" />
			<then>
				<replace file="${stage.dir}/framework-jar/META-INF/persistence-framework-catalog.xml">
					<replacetoken><![CDATA[<property name="hibernate.hbm2ddl.auto" value="update"/>]]></replacetoken>
					<replacevalue><![CDATA[<!-- <property name="hibernate.hbm2ddl.auto" value="update"/>-->]]></replacevalue>
				</replace>
				<replace file="${stage.dir}/framework-jar/META-INF/persistence-framework-user.xml">
					<replacetoken><![CDATA[<property name="hibernate.hbm2ddl.auto" value="update"/>]]></replacetoken>
					<replacevalue><![CDATA[<!-- <property name="hibernate.hbm2ddl.auto" value="update"/>-->]]></replacevalue>
				</replace>
			</then>
		</if>

		<jar jarfile="${stage.dir}/broadleaf-framework.jar" basedir="${stage.dir}/framework-jar">
			<include name="**/*.class" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
		<delete dir="${stage.dir}/framework-jar" />
	</target>

	<target name="build-framework-source-jar" depends="build-extensibility-source-jar, build-profile-source-jar">
		<delete file="${stage.dir}/broadleaf-framework-sources.jar" />
		<jar jarfile="${stage.dir}/broadleaf-framework-sources.jar" basedir="${framework.src.dir}">
			<include name="**/*.java" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
	</target>

	<target name="build-extensibility-jar" depends="setup">
		<mkdir dir="${stage.dir}/extensibility-jar" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
			<fileset file="${stage.dir}/*.jar" />
		</path>

		<echo>Compiling with debug=${debug.compile}</echo>
		<javac destdir="${stage.dir}/extensibility-jar" srcdir="${extensibility.src.dir}" classpathref="compile-lib" debug="${debug.compile}"/>

		<copy todir="${stage.dir}/extensibility-jar">
			<fileset dir="${extensibility.src.dir}">
				<include name="**/*.*" />
				<exclude name="**/*.java" />
			</fileset>
		</copy>

		<copy tofile="${stage.dir}/extensibility-jar/jdbc.properties">
			<fileset dir="${jdbc.config.dir}">
				<include name="jdbc.properties" />
			</fileset>
		</copy>

		<jar jarfile="${stage.dir}/broadleaf-extensibility.jar" basedir="${stage.dir}/extensibility-jar">
			<include name="**/*.class" />
			<include name="**/*.properties" />
			<include name="**/*.txt" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>

	</target>

	<target name="build-extensibility-source-jar">
		<delete file="${stage.dir}/build-extensibility-source-jar" />
		<jar jarfile="${stage.dir}/broadleaf-extensibility-sources.jar" basedir="${extensibility.src.dir}">
			<include name="**/*.java" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
	</target>

	<target name="generate-javadocs">
		<mkdir dir="${stage.dir}/javadocs" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
		</path>

		<javadoc packagenames="org.broadleafcommerce.*" destdir="${stage.dir}/javadocs" classpathref="compile-lib" useexternalfile="true">
			<fileset dir="${framework.src.dir}">
				<include name="**/*.java" />
			</fileset>
		</javadoc>
	</target>

	<target name="build-layout-jar" depends="setup, build-extensibility-jar, build-profile-jar, build-framework-jar">
		<mkdir dir="${stage.dir}/layout-jar" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
			<fileset file="${stage.dir}/*.jar" />
		</path>

		<echo>Compiling with debug=${debug.compile}</echo>
		<javac destdir="${stage.dir}/layout-jar"
			srcdir="${layout.src.dir}" classpathref="compile-lib" debug="${debug.compile}"/>

		<copy todir="${stage.dir}/layout-jar">
			<fileset dir="${layout.src.dir}">
				<include name="**/*.*" />
				<exclude name="**/*.java" />
			</fileset>
			<fileset dir="${config.dir}">
				<include name="**/*.properties" />
			</fileset>
		</copy>

		<jar jarfile="${stage.dir}/broadleaf-layout.jar" basedir="${stage.dir}/layout-jar">
			<include name="**/*.class" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
		<delete dir="${stage.dir}/layout-jar" />
	</target>

	<target name="build-layout-source-jar" depends="build-extensibility-source-jar, build-profile-source-jar, build-framework-source-jar">
		<delete file="${stage.dir}/broadleaf-layout-sources.jar" />
		<jar jarfile="${stage.dir}/broadleaf-layout-sources.jar" basedir="${layout.src.dir}">
			<include name="**/*.java" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
	</target>

	<target name="build-profile-jar" depends="setup, build-extensibility-jar">
		<mkdir dir="${stage.dir}/profile-jar" />

		<path id="compile-lib">
			<fileset refid="compile.lib" />
			<fileset refid="common.lib" />
			<fileset file="${stage.dir}/broadleaf-extensibility.jar" />
		</path>

		<echo>Compiling with debug=${debug.compile}</echo>
		<javac destdir="${stage.dir}/profile-jar"
			srcdir="${profile.src.dir}" classpathref="compile-lib" debug="${debug.compile}"/>

		<copy todir="${stage.dir}/profile-jar">
			<fileset dir="${profile.src.dir}">
				<include name="**/*.*" />
				<exclude name="**/*.java" />
			</fileset>
			<fileset dir="${config.dir}">
				<include name="**/*.properties" />
				<include name="**/*.vm" />
			</fileset>
		</copy>

		<if>
			<equals arg1="${hibernate.hbm2ddl.auto}" arg2="false" />
			<then>
				<replace file="${stage.dir}/profile-jar/META-INF/persistence-profile.xml">
					<replacetoken><![CDATA[<property name="hibernate.hbm2ddl.auto" value="update"/>]]></replacetoken>
					<replacevalue><![CDATA[<!-- <property name="hibernate.hbm2ddl.auto" value="update"/>-->]]></replacevalue>
				</replace>
			</then>
		</if>

		<jar jarfile="${stage.dir}/broadleaf-profile.jar" basedir="${stage.dir}/profile-jar">
			<include name="**/*.class" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="**/*.vm" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
		<delete dir="${stage.dir}/profile-jar" />
	</target>

	<target name="build-profile-source-jar" depends="build-extensibility-source-jar">
		<delete file="${stage.dir}/broadleaf-profile-sources.jar" />
		<jar jarfile="${stage.dir}/broadleaf-profile-sources.jar" basedir="${profile.src.dir}">
			<include name="**/*.java" />
			<include name="**/*.properties" />
			<include name="**/*.xml" />
			<include name="**/*.vm" />
			<include name="META-INF/**" />
			<exclude name="**/test/**/*.class" />
		</jar>
	</target>

	<target name="build-jars" depends="build-framework-jar,build-extensibility-jar,build-profile-jar,build-layout-jar"/>

	<target name="build-source-jars" depends="build-framework-source-jar,build-extensibility-source-jar,build-profile-source-jar,build-layout-source-jar"/>

    <target name="publish-jars"
            depends="build-jars, build-source-jars"
            description="Publishes all artifacts from this build to the shared repository">
    	<copy file="${stage.dir}/broadleaf-extensibility.jar" todir="${basedir}/../web/lib/include/bin" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-extensibility-sources.jar" todir="${basedir}/../web/lib/include/src" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-framework.jar" todir="${basedir}/../web/lib/include/bin" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-framework-sources.jar" todir="${basedir}/../web/lib/include/src" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-layout.jar" todir="${basedir}/../web/lib/include/bin" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-layout-sources.jar" todir="${basedir}/../web/lib/include/src" overwrite="true"/>
       	<copy file="${stage.dir}/broadleaf-profile.jar" todir="${basedir}/../web/lib/include/bin" overwrite="true"/>
       	<copy file="${stage.dir}/broadleaf-profile-sources.jar" todir="${basedir}/../web/lib/include/src" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-extensibility.jar" todir="${basedir}/../libraries/org.broadleafcommerce/extensibility/0.0.0/jars" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-extensibility-sources.jar" todir="${basedir}/../libraries/org.broadleafcommerce/extensibility/0.0.0/sources" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-framework.jar" todir="${basedir}/../libraries/org.broadleafcommerce/framework/0.0.0/jars" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-framework-sources.jar" todir="${basedir}/../libraries/org.broadleafcommerce/framework/0.0.0/sources" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-layout.jar" todir="${basedir}/../libraries/org.broadleafcommerce/layout/0.0.0/jars" overwrite="true"/>
    	<copy file="${stage.dir}/broadleaf-layout-sources.jar" todir="${basedir}/../libraries/org.broadleafcommerce/layout/0.0.0/sources" overwrite="true"/>
       	<copy file="${stage.dir}/broadleaf-profile.jar" todir="${basedir}/../libraries/org.broadleafcommerce/profile/0.0.0/jars" overwrite="true"/>
       	<copy file="${stage.dir}/broadleaf-profile-sources.jar" todir="${basedir}/../libraries/org.broadleafcommerce/profile/0.0.0/sources" overwrite="true"/>
    </target>

	<target name="clean">
		<delete dir="${stage.dir}" />
		<delete dir="${test.output.dir}" />
	</target>

	<target name="setup" depends="clean">
		<echo>Setting up for environment = ${build.env}</echo>
		<mkdir dir="${stage.dir}" />
		<if>
			<equals arg1="${build.env}" arg2="dev" />
			<then>
				<property name="debug.compile" value="true" />
			</then>
{'fraction_non_alphanumeric': 0.23993957450379758, 'fraction_numerical': 0.002685577608996685, 'mean_word_length': 4.1573252542739665, 'pattern_counts': {'":': 0, '<': 555, '<?xml version=': 2, '>': 555, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 28}, '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': '3821737', 'n_tokens_mistral': 8995, 'n_tokens_neox': 8104, 'n_words': 1121}