<commit_before><?xml version="1.0"?>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Filename: build.xml
   Purpose:  Ant build file for Jabref.

             Ant-Download: http://jakarta.apache.org/ant
             Ant-Manual:   http://jakarta.apache.org/ant/manual/index.html

             Jabref homepage:       http://jabref.sourceforge.net
             Jabref@OpenHub:        https://www.openhub.net/p/jabref

             Further questions:
               help mailing list:   https://lists.sourceforge.net/lists/listinfo/jabref-users

   Precondition: 1. Ant should be installed.
                 2. JAVA_HOME environment variable contains the path to JDK1.7 or higher
                 3. ANT_HOME environment variable contains the path to ant's home directory

   Language: XML
   Compiler: Ant
   Authors:  <NAME>, <EMAIL>
             <NAME>

   modified: see at git checkout and "gitk build.xml"

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->

<project name="JabRef" default="jars" basedir=".">

	<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        PROPERTY SETUP
     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->

	<!-- some version information -->
	<property name="jabref.version" value="2.11dev" />
	<property name="jabref.version.full" value="2.11.3.0" /> <!-- a version number with 4 places. Required by launch4j -->
	<property name="jabref.year" value="2015" />
	<property name="jabref.placeholder.version" value="@version@" />
	<property name="jabref.placeholder.year" value="@year@" />
	<!-- used by replace task -->

	<!-- Set the properties for intermediate directory -->
	<property name="build.jar" value="JabRef-${jabref.version}.jar" />
	<property name="build.dir" value="buildant" />
	<property name="build.classes" value="${build.dir}/classes" />
	<property name="build.tmp" value="${build.dir}/tmp" />
	<property name="build.classes.osx" value="${build.dir}/classes/osxadapter" />
	<property name="build.lib" value="${build.dir}/lib" />
	<property name="build.win" value="${build.dir}/windows" />
	<property name="build.images" value="${build.dir}/images" />
	<property name="build.resource" value="${build.dir}/resource" />
	<property name="build.help" value="${build.dir}/help" />
	<property name="build.extensions" value="${build.dir}/extensions" />
	<property name="build.extension-javadocs" value="${build.extensions}/API" />
	<property name="build.extension-layout" value="${build.extensions}/layout" />
	<property name="build.openoffice.meta" value="${build.resource}/openoffice" />

	<!-- Set the properties for source directories -->
	<property name="resources.dir" value="src/main/resources" />
	<property name="plugin.dir" value="${resources.dir}/plugins/" />
	<property name="txt.dir" value="." />
	<property name="java.dir" value="src/main/java" />
    <property name="gen.dir" value="src/main/gen" />
	<property name="osx.dir" value="${resources.dir}/osx" />
	<property name="win.installer.dir" value="${resources.dir}/windows/nsis" />
	<property name="resource.dir" value="${resources.dir}/resource" />
	<property name="images.dir" value="${resources.dir}/images" />
	<property name="help.dir" value="${resources.dir}/help" />
	<property name="extensions.dir" value="${resources.dir}/extensions" />
	<property name="layout.dir" value="${resources.dir}/resource/layout" />
	<property name="lib.dir" value="lib" />
	<property name="buildlib.dir" value="buildlib" />

	<property name="osxbin.dir" value="osx" />

	<!-- Load user dependent properties. Has to happen before setting the properties here -->
	<!-- For instance to redefine the NSIS-compiler write
		nsis.executable="d:\\prog\\dev\\NSIS\\makensis.exe"
	  -->
	<property file="user.properties" />

	<property name="nsis.executable" value="C:\Program files\NSIS\makensis.exe"/>
	<property name="nsis.executable.linux" value="makensis"/>
	<property name="launch4j.dir" location="/opt/launch4j" />

	<!-- win.installer can only be build under Windows if the nsis.executable is found -->
	<condition property="is.windows">
	  <and>
	    <isset property="nsis.executable" />
	    <os family="windows" />
	  </and>
	</condition>

	<fileset id="jarsFileset" dir="${lib.dir}">
		<include name="antlr.jar" />
		<include name="antlr-3.4-complete.jar" />
        <include name="jgoodies-common-1.4.0.jar" />
		<include name="jgoodies-looks-2.5.2.jar" />
		<include name="jgoodies-forms-1.6.0.jar" />
        <include name="jgoodies/com.jgoodies.uif_lite-2.1.4.jar" />
        <include name="jna-4.1.0.jar" />
        <include name="ritopt/ritopt-0.2.1-bin.jar" />
		<include name="spin.jar" />
		<include name="glazedlists-1.8.0_java15.jar" />
		<include name="microba.jar" />
		<include name="pdfbox-1.7.1.jar" />
		<include name="jempbox-1.7.1.jar" />
		<include name="fontbox-1.7.1.jar" />
		<include name="zoom-java.jar" />
    	<include name="mysql-connector-java-5.0.7-bin.jar" />
		<include name="postgresql-9.2-1002.jdbc4.jar" />
        <!-- Plugin runtime dependencies -->
		<include name="plugin/JPFCodeGenerator-rt.jar" />
		<include name="plugin/jpf.jar" />
		<include name="plugin/jpf-boot.jar" />
		<include name="plugin/commons-logging.jar" />
	</fileset>

    <!-- Openoffice connection dependencies. Compile-time only -->
    <fileset id="ooFileset" dir="${lib.dir}">
        <include name="oo/unoil.jar" />
        <include name="oo/ridl.jar" />
        <include name="oo/juh.jar" />
        <include name="oo/jurt.jar" />
    </fileset>

    <!-- Done by MrDlib -->
    <fileset id="splJars" dir="${lib.dir}">
        <include name="spl/**/*.jar" />
    </fileset>
	<fileset id="deletableMeta-InfFiles" dir="${build.tmp}/META-INF">
	        <exclude name="services/**/*" />
	</fileset>
    <!-- Done by MrDlib -->

	<!-- Build classpath -->
	<path id="classpath">
		<pathelement path="${build.classes}" />
		<pathelement path="${build.dir}" />
        <!-- Done by MrDlib -->
        <fileset refid="splJars" />
        <!-- Done by MrDlib -->
		<fileset refid="jarsFileset" />
        <fileset refid="ooFileset" />
	</path>

	<target name="run" depends="build">
		<java classname="net.sf.jabref.JabRefMain" fork="true">
			<classpath refid="classpath" />
		</java>
	</target>

	<!-- Runs project -->
	<target name="runFromJar">
		<java dir="${build.lib}" classname="net.sf.jabref.JabRefMain" fork="true">
			<classpath>
				<pathelement location="${build.lib}/${build.jar}" />
			</classpath>
		</java>
	</target>

	<!-- Compiles project -->
	<target name="compile">
		<mkdir dir="${build.classes}" />
		<javac destdir="${build.classes}" encoding="UTF8" source="1.7" target="1.7">
			<src path="${java.dir}" />
            <src path="${gen.dir}" />
			<classpath refid="classpath" />
		</javac>
	</target>

	<!-- Builds the OSXAdapter -->
	<target name="osx">
		<mkdir dir="${build.classes}" />

		<javac srcdir="${osx.dir}" destdir="${build.classes}" target="1.7">
		</javac>
	</target>

	<!-- Copies in the OSXAdapter class, which is compilable only on Mac  -->
	<target name="non_osx">
		<mkdir dir="${build.classes.osx}" />
		<copy file="${osxbin.dir}/OSXAdapter.class" todir="${build.classes.osx}" />
	</target>

	<!-- Jars up project -->
	<target name="jars" depends="build, unjarlib">
		<mkdir dir="${build.lib}" />

		<mkdir dir="${build.tmp}" />
		<jar destfile="${build.lib}/${build.jar}" >

			<fileset dir="${build.classes}" />
			<fileset dir="${build.tmp}" />
			<fileset dir="${build.dir}">
				<include name="images/**" />
				<include name="help/**" />
				<include name="resource/**" />
			</fileset>

			<!-- Add Plugins -->
			<fileset dir="${resources.dir}">
				<include name="plugins/**" />
			</fileset>
			<fileset dir="${txt.dir}">
				<include name="gpl2.txt" />
				<include name="gpl3.txt" />
				<include name="lesser.txt" />
				<include name="jgoodies.txt" />
				<include name="README" /><commit_msg>Adjusting build script to handle the issue of symbol visibility for com.apple.eawt in JDK 7 and 8<commit_after><?xml version="1.0"?>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Filename: build.xml
   Purpose:  Ant build file for Jabref.

             Ant-Download: http://jakarta.apache.org/ant
             Ant-Manual:   http://jakarta.apache.org/ant/manual/index.html

             Jabref homepage:       http://jabref.sourceforge.net
             Jabref@OpenHub:        https://www.openhub.net/p/jabref

             Further questions:
               help mailing list:   https://lists.sourceforge.net/lists/listinfo/jabref-users

   Precondition: 1. Ant should be installed.
                 2. JAVA_HOME environment variable contains the path to JDK1.7 or higher
                 3. ANT_HOME environment variable contains the path to ant's home directory

   Language: XML
   Compiler: Ant
   Authors:  <NAME>, <EMAIL>
             <NAME>

   modified: see at git checkout and "gitk build.xml"

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->

<project name="JabRef" default="jars" basedir=".">

	<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        PROPERTY SETUP
     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->

	<!-- some version information -->
	<property name="jabref.version" value="2.11dev" />
	<property name="jabref.version.full" value="2.11.3.0" /> <!-- a version number with 4 places. Required by launch4j -->
	<property name="jabref.year" value="2015" />
	<property name="jabref.placeholder.version" value="@version@" />
	<property name="jabref.placeholder.year" value="@year@" />
	<!-- used by replace task -->

	<!-- Set the properties for intermediate directory -->
	<property name="build.jar" value="JabRef-${jabref.version}.jar" />
	<property name="build.dir" value="buildant" />
	<property name="build.classes" value="${build.dir}/classes" />
	<property name="build.tmp" value="${build.dir}/tmp" />
	<property name="build.classes.osx" value="${build.dir}/classes/osxadapter" />
	<property name="build.lib" value="${build.dir}/lib" />
	<property name="build.win" value="${build.dir}/windows" />
	<property name="build.images" value="${build.dir}/images" />
	<property name="build.resource" value="${build.dir}/resource" />
	<property name="build.help" value="${build.dir}/help" />
	<property name="build.extensions" value="${build.dir}/extensions" />
	<property name="build.extension-javadocs" value="${build.extensions}/API" />
	<property name="build.extension-layout" value="${build.extensions}/layout" />
	<property name="build.openoffice.meta" value="${build.resource}/openoffice" />

	<!-- Set the properties for source directories -->
	<property name="resources.dir" value="src/main/resources" />
	<property name="plugin.dir" value="${resources.dir}/plugins/" />
	<property name="txt.dir" value="." />
	<property name="java.dir" value="src/main/java" />
    <property name="gen.dir" value="src/main/gen" />
	<property name="osx.dir" value="${resources.dir}/osx" />
	<property name="win.installer.dir" value="${resources.dir}/windows/nsis" />
	<property name="resource.dir" value="${resources.dir}/resource" />
	<property name="images.dir" value="${resources.dir}/images" />
	<property name="help.dir" value="${resources.dir}/help" />
	<property name="extensions.dir" value="${resources.dir}/extensions" />
	<property name="layout.dir" value="${resources.dir}/resource/layout" />
	<property name="lib.dir" value="lib" />
	<property name="buildlib.dir" value="buildlib" />

	<property name="osxbin.dir" value="osx" />

	<!-- Load user dependent properties. Has to happen before setting the properties here -->
	<!-- For instance to redefine the NSIS-compiler write
		nsis.executable="d:\\prog\\dev\\NSIS\\makensis.exe"
	  -->
	<property file="user.properties" />

	<property name="nsis.executable" value="C:\Program files\NSIS\makensis.exe"/>
	<property name="nsis.executable.linux" value="makensis"/>
	<property name="launch4j.dir" location="/opt/launch4j" />

	<!-- win.installer can only be build under Windows if the nsis.executable is found -->
	<condition property="is.windows">
	  <and>
	    <isset property="nsis.executable" />
	    <os family="windows" />
	  </and>
	</condition>

	<fileset id="jarsFileset" dir="${lib.dir}">
		<include name="antlr.jar" />
		<include name="antlr-3.4-complete.jar" />
        <include name="jgoodies-common-1.4.0.jar" />
		<include name="jgoodies-looks-2.5.2.jar" />
		<include name="jgoodies-forms-1.6.0.jar" />
        <include name="jgoodies/com.jgoodies.uif_lite-2.1.4.jar" />
        <include name="jna-4.1.0.jar" />
        <include name="ritopt/ritopt-0.2.1-bin.jar" />
		<include name="spin.jar" />
		<include name="glazedlists-1.8.0_java15.jar" />
		<include name="microba.jar" />
		<include name="pdfbox-1.7.1.jar" />
		<include name="jempbox-1.7.1.jar" />
		<include name="fontbox-1.7.1.jar" />
		<include name="zoom-java.jar" />
    	<include name="mysql-connector-java-5.0.7-bin.jar" />
		<include name="postgresql-9.2-1002.jdbc4.jar" />
        <!-- Plugin runtime dependencies -->
		<include name="plugin/JPFCodeGenerator-rt.jar" />
		<include name="plugin/jpf.jar" />
		<include name="plugin/jpf-boot.jar" />
		<include name="plugin/commons-logging.jar" />
	</fileset>

    <!-- Openoffice connection dependencies. Compile-time only -->
    <fileset id="ooFileset" dir="${lib.dir}">
        <include name="oo/unoil.jar" />
        <include name="oo/ridl.jar" />
        <include name="oo/juh.jar" />
        <include name="oo/jurt.jar" />
    </fileset>

    <!-- Done by MrDlib -->
    <fileset id="splJars" dir="${lib.dir}">
        <include name="spl/**/*.jar" />
    </fileset>
	<fileset id="deletableMeta-InfFiles" dir="${build.tmp}/META-INF">
	        <exclude name="services/**/*" />
	</fileset>
    <!-- Done by MrDlib -->

	<!-- Build classpath -->
	<path id="classpath">
		<pathelement path="${build.classes}" />
		<pathelement path="${build.dir}" />
        <!-- Done by MrDlib -->
        <fileset refid="splJars" />
        <!-- Done by MrDlib -->
		<fileset refid="jarsFileset" />
        <fileset refid="ooFileset" />
	</path>

	<target name="run" depends="build">
		<java classname="net.sf.jabref.JabRefMain" fork="true">
			<classpath refid="classpath" />
		</java>
	</target>

	<!-- Runs project -->
	<target name="runFromJar">
		<java dir="${build.lib}" classname="net.sf.jabref.JabRefMain" fork="true">
			<classpath>
				<pathelement location="${build.lib}/${build.jar}" />
			</classpath>
		</java>
	</target>

	<!-- Compiles project -->
	<target name="compile">
		<mkdir dir="${build.classes}" />
		<javac destdir="${build.classes}" encoding="UTF8" source="1.7" target="1.7">
			<src path="${java.dir}" />
            <src path="${gen.dir}" />
			<classpath refid="classpath" />
		</javac>
	</target>

	<!-- Builds the OSXAdapter -->
	<target name="osx" depends="compile">
		<mkdir dir="${build.classes}" />
		<javac srcdir="${osx.dir}" destdir="${build.classes}" target="1.7">
			<!-- Hack to force visibility of com.apple.eawt in rt.jar in JDK7 & 8
				 https://bugs.openjdk.java.net/browse/JDK-8008714 -->
			<compilerarg value="-XDignore.symbol.file"/>			
		</javac>
	</target>
	
	<!-- Copies in the OSXAdapter class, which is compilable only on Mac  -->
	<target name="non_osx">
		<mkdir dir="${build.classes.osx}" />
		<copy file="${osxbin.dir}/OSXAdapter.class" todir="${build.classes.osx}" />
	</target>

	<!-- Jars up project -->
	<target name="jars" depends="build, unjarlib">
		<mkdir dir="${build.lib}" />

		<mkdir dir="${build.tmp}" />
		<jar destfile="${build.lib}/${build.jar}" >

			<fileset dir="${build.classes}" />
			<fileset dir="${build.tmp}" />
			<fileset dir="${build.dir}">
				<include name="images/**" />
				<include name="help/**" />
				<include name="resource/**" />
			</fileset>

			<!-- Add Plugins -->
			<fileset dir="${resources.dir}">
				<include name="plugins/**" />
			</fileset>
			<fileset dir="${txt.dir}">
				<include name="gpl2.txt" />
				<include name="gpl3.txt" />
				<include name="lesser.txt" />
				<include name="jgoodies.txt" />
				<include name="README" />
{'fraction_non_alphanumeric': 0.23462106299212598, 'fraction_numerical': 0.010027066929133858, 'mean_word_length': 3.515833333333333, 'pattern_counts': {'":': 0, '<': 331, '<?xml version=': 2, '>': 331, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4166769', 'n_tokens_mistral': 5756, 'n_tokens_neox': 5275, 'n_words': 997}