forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ide-file-targets.xml
47 lines (47 loc) · 2.53 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
<?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>
</project>