/
ide-file-targets.xml
71 lines (71 loc) · 4.54 KB
/
ide-file-targets.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." name="jruby-netbeans-ide-targets">
<import file="../build.xml"/>
<target name="compile-selected-files-in-test">
<fail unless="files">Must set property 'files'</fail>
<mkdir dir="${test.classes.dir}"/>
<javac debug="true" destdir="${test.classes.dir}" includes="${files}" source="${javac.version}" srcdir="test" target="${javac.version}">
<classpath refid="test.class.path"/>
</javac>
</target>
<target name="run-selected-files-in-test">
<fail unless="classname">Must set property 'classname'</fail>
<mkdir dir="${test.classes.dir}"/>
<junit dir="${test.classes.dir}" errorProperty="test.failed" failureProperty="test.failed" filtertrace="false" fork="true" printsummary="withOutAndErr" showoutput="true">
<classpath refid="test.class.path"/>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<test name="${classname}"/>
</junit>
</target>
<target name="compile-selected-files-in-src">
<fail unless="files">Must set property 'files'</fail>
<mkdir dir="${jruby.classes.dir}"/>
<javac debug="true" destdir="${jruby.classes.dir}" includes="${files}" source="${javac.version}" srcdir="${src.dir}" target="${javac.version}">
<classpath refid="build.classpath"/>
</javac>
</target>
<target description="Debug a Single Test" if="netbeans.home" name="debug-selected-files-in-test">
<fail unless="classname">Must set property 'classname'</fail>
<nbjpdastart addressproperty="jpda.address" name="${classname}" transport="dt_socket">
<classpath refid="test.class.path"/>
<!-- Optional - If source roots are properly declared in project, should
work without setting source path.
<sourcepath refid="debug.sourcepath"/> -->
</nbjpdastart>
<junit dir="${test.classes.dir}" errorProperty="test.failed" failureProperty="test.failed" filtertrace="false" fork="true" printsummary="withOutAndErr" showoutput="true">
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xnoagent"/>
<jvmarg value="-Djava.compiler=none"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
<classpath refid="test.class.path"/>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<test name="${classname}"/>
</junit>
</target>
<property file="nbproject/nbjdk.properties"/>
<property location="${netbeans.user}/build.properties" name="user.properties.file"/>
<property file="${user.properties.file}"/>
<import file="jdk.xml"/>
<!-- TODO: edit the following target according to your needs -->
<!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
<target depends="-jdk-init" name="debug-selected-file-in-src">
<fail unless="debug.class">Must set property 'debug.class'</fail>
<path id="cp">
<pathelement path="build_lib/junit.jar:build_lib/jline-1.0.jar:build_lib/jna.jar:build_lib/nailgun-0.7.1.jar:build_lib/joni.jar:build_lib/dynalang-0.3.jar:build_lib/invokedynamic.jar:build_lib/jcodings.jar:build_lib/bytelist.jar:build_lib/jffi.jar:build_lib/yydebug.jar:build_lib/bsf.jar:build_lib/jnr-ffi.jar:build_lib/jsr292-mock.jar:build_lib/jgrapht-jdk1.5.jar:build_lib/jnr-netdb.jar:build_lib/jnr-posix.jar:build_lib/joda-time-2.1.jar:build_lib/livetribe-jsr223-2.0.6.jar:build_lib/ant.jar:build_lib/org.osgi.core-4.2.0.jar:build_lib/jnr-constants.jar:build_lib/slf4j-api-1.6.1.jar:build_lib/asm-4.0.jar:build_lib/asm-analysis-4.0.jar:build_lib/asm-commons-4.0.jar:build_lib/asm-tree-4.0.jar:build_lib/asm-util-4.0.jar:build_lib/jzlib-gzip.jar:build_lib/snakeyaml-1.9.jar:build_lib/coro-mock-1.0-SNAPSHOT.jar:build_lib/jzlib-1.1.0.jar"/>
<pathelement location="${jruby.classes.dir}"/>
<pathelement location="${lib.dir}/jruby.jar"/>
</path>
<nbjpdastart addressproperty="jpda.address" name="JRuby trunk" transport="dt_socket">
<classpath refid="cp"/>
</nbjpdastart>
<input message="Enter command-line args" addproperty="command.line.args"/>
<java classname="${debug.class}" fork="true">
<classpath refid="cp"/>
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
<arg line="${command.line.args}"/>
</java>
</target>
</project>