<?xml version="1.0" encoding="UTF-8"?>
<!-- WARNING: Eclipse auto-generated file.
              Any modifications will be overwritten.
              To include a user specific buildfile here, simply create one in the same
              directory with the processing instruction <?eclipse.ant.import?>
              as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="CabosCore">
    <property environment="env"/>
    <property name="core.link" value="../core"/>
    <property name="corebridge.link" value="../corebridge"/>
    <property name="lib.link" value="../lib"/>
    <property name="ECLIPSE_HOME" value="../../../../../Program Files/eclipse"/>
    <property name="debuglevel" value="source,lines,vars"/>
    <property name="target" value="1.2"/>
    <property name="source" value="1.3"/>
    <path id="CabosCore.classpath">
        <pathelement location="bin"/>
        <pathelement location="lib/jars/clink.jar"/>
        <pathelement location="lib/jars/commons-httpclient.jar"/>
        <pathelement location="lib/jars/commons-logging.jar"/>
        <pathelement location="lib/jars/i18n.jar"/>
        <pathelement location="lib/jars/icu4j.jar"/>
        <pathelement location="lib/jars/id3v2.jar"/>
        <pathelement location="lib/jars/jcraft.jar"/>
        <pathelement location="lib/jars/jmdns.jar"/>
        <pathelement location="lib/jars/xerces.jar"/>
    </path>
    <target name="init">
        <mkdir dir="bin"/>
        <copy includeemptydirs="false" todir="bin">
            <fileset dir="${core.link}" excludes="**/*.launch, **/*.java"/>
        </copy>
        <copy includeemptydirs="false" todir="bin">
            <fileset dir="${corebridge.link}" excludes="**/*.launch, **/*.java"/>
        </copy>
        <copy includeemptydirs="false" todir="bin">
            <fileset dir="${lib.link}" excludes="**/*.launch, **/*.java"/>
        </copy>
    </target>
    <target name="clean">
        <delete dir="bin"/>
    </target>
    <target depends="clean" name="cleanall"/>
    <target depends="build-subprojects,build-project" name="build"/>
    <target name="build-subprojects"/>
    <target depends="init" name="build-project">
        <echo message="${ant.project.name}: ${ant.file}"/>
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
            <src path="${core.link}"/>
            <include name="**/*.java"/>
            <exclude name="com/limegroup/gnutella/archive/"/>
            <exclude name="com/limegroup/gnutella/browser/"/>
            <exclude name="com/limegroup/gnutella/chat/"/>
            <exclude name="com/limegroup/gnutella/updates/"/>
            <exclude name="com/limegroup/gnutella/version/"/>
            <exclude name="com/limegroup/gnutella/Main.java"/>
            <exclude name="com/limegroup/gnutella/downloader/InNetworkDownloader.java"/>
            <exclude name="com/limegroup/gnutella/downloader/MagnetDownloader.java"/>
            <exclude name="com/limegroup/gnutella/settings/BugSettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/ColorSetting.java"/>
            <exclude name="com/limegroup/gnutella/settings/ConsoleSettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/DaapSettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/FontNameSetting.java"/>
            <exclude name="com/limegroup/gnutella/settings/InstallSettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/InternetArchiveSetting.java"/>
            <exclude name="com/limegroup/gnutella/settings/iTunesSettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/PlayerSettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/QuestionsHandler.java"/>
            <exclude name="com/limegroup/gnutella/settings/StatusBarSettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/TablesHandler.java"/>
            <exclude name="com/limegroup/gnutella/settings/UISettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/UpdateSettings.java"/>
            <exclude name="com/limegroup/gnutella/settings/URLHandlerSettings.java"/>
            <exclude name="com/limegroup/gnutella/util/ArrayListUtil.java"/>
            <exclude name="com/limegroup/gnutella/util/AutoCompleteDictionary.java"/>
            <exclude name="com/limegroup/gnutella/util/Hasher.java"/>
            <exclude name="com/limegroup/gnutella/util/HasherSet.java"/>
            <exclude name="com/limegroup/gnutella/util/Launcher.java"/>
            <exclude name="com/limegroup/gnutella/util/LimitedArray.java"/>
            <exclude name="com/limegroup/gnutella/util/LimitedList.java"/>
            <exclude name="com/limegroup/gnutella/util/MacOSXUtils.java"/>
            <exclude name="com/limegroup/gnutella/util/PackagedMediaFileUtils.java"/>
            <exclude name="com/limegroup/gnutella/util/Pair.java"/>
            <exclude name="com/limegroup/gnutella/util/PairTuple.java"/>
            <exclude name="com/limegroup/gnutella/util/RoundRobinQueue.java"/>
            <exclude name="com/limegroup/gnutella/util/RoundRobinSetQueue.java"/>
            <exclude name="com/limegroup/gnutella/util/TrieSet.java"/>
            <exclude name="com/limegroup/gnutella/util/VersionUtils.java"/>
            <exclude name="com/limegroup/gnutella/util/Weighable.java"/>
            <exclude name="com/limegroup/gnutella/util/WeightBasedHashMap.java"/>
            <exclude name="com/limegroup/gnutella/util/WindowsLauncher.java"/>
            <classpath refid="CabosCore.classpath"/>
        </javac>
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
            <src path="${corebridge.link}"/>
            <include name="**/*.java"/>
            <classpath refid="CabosCore.classpath"/>
        </javac>
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
            <src path="${lib.link}"/>
            <exclude name="**/*"/>
            <classpath refid="CabosCore.classpath"/>
        </javac>
    </target>
    <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
    <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
        <copy todir="${ant.library.dir}">
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
        </copy>
        <unzip dest="${ant.library.dir}">
            <patternset includes="jdtCompilerAdapter.jar"/>
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
        </unzip>
    </target>
    <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
        <antcall target="build"/>
    </target>
</project>
