<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." name="ffdec-IDE">
    <import file="../build.xml"/>
    <target name="debug-nb" depends="compile">
        <path id="cp">
            <pathelement path="${basedir}/build/classes"/>
            <pathelement path="${basedir}/libsrc/ffdec_lib/build/classes"/>
            <fileset dir="${basedir}/lib" includes="**/*.jar"/>
        </path>
        <nbjpdastart addressproperty="jpda.address" name="ffdec" transport="dt_socket">
            <classpath refid="cp"/>
        </nbjpdastart>
        <java classname="com.jpexs.decompiler.flash.gui.Main" fork="true">
            <classpath refid="cp"/>
            <jvmarg value="-Xdebug"/>
            <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
            <jvmarg value="-Xmx3072m"/>
            <arg line="${RUNPARAMS}"/>
        </java>
    </target>
    <!-- TODO: edit the following target according to your needs -->
    <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
    <target name="run-selected-file-in-src">
        <fail unless="run.class">Must set property 'run.class'</fail>
        <java classname="${run.class}" failonerror="true" fork="true">
            <classpath>
                <pathelement path="lib/LZMA.jar;lib/jna-3.5.1.jar;lib/jpproxy.jar;lib/jsyntaxpane-0.9.5.jar"/>
                <pathelement location="build/classes"/>
            </classpath>
        </java>
    </target>
    <!-- TODO: edit the following target according to your needs -->
    <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
    <target name="run-selected-file-in-test">
        <fail unless="run.class">Must set property 'run.class'</fail>
        <java classname="${run.class}" failonerror="true" fork="true">
            <classpath>
                <pathelement path="lib/LZMA.jar;lib/jna-3.5.1.jar;lib/jpproxy.jar;lib/jsyntaxpane-0.9.5.jar;src;testlib/emma.jar;testlib/emma_ant.jar;testlib/junit-4.8.2.jar;testlib/testng-6.8.jar"/>
                <pathelement location="build/classes"/>
                <pathelement location="build/test"/>
            </classpath>
        </java>
    </target>
    <!-- TODO: edit the following target according to your needs -->
    <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
    <target name="debug-selected-file-in-test" depends="compile-tests">
        <fail unless="debug.class">Must set property 'debug.class'</fail>
        <delete dir="${TESTRESULTSDIR}"/>
        <mkdir dir="${TESTRESULTSDIR}"/>
        <mkdir dir="${TESTRESULTSDIR}/raw/"/>        
        <nbjpdastart addressproperty="jpda.address" name="ffdec" transport="dt_socket">
            <classpath id="cp">
                <pathelement path="${COMPILEDIR}"/>
                <fileset dir="${LIBRARIESDIR}" includes="**/*.jar"/>
                <fileset dir="${TESTLIBDIR}" includes="**/*.jar"/>
            </classpath>
        </nbjpdastart>
        
        <java classname="${debug.class}" fork="true">
            <classpath refid="cp"/>
            <jvmarg value="-Xdebug"/>
            <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
        </java>
    </target>
    
    
    
    
</project>
