Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 110 lines (99 sloc) 4.631 kb
3f14a9c @enebo git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@5453 961051c9-f516...
enebo authored
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project basedir="." name="netbeans-ant">
3
4 <target name="profile-gem-install-rake" depends="jar" description="Profile a local gem installation of Rake">
5 <fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
6
7 <nbprofiledirect>
8 <classpath> <pathelement location="... specify ..."/> </classpath>
9 </nbprofiledirect>
10
11 <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
12 <classpath>
13 <pathelement location="${jruby.instrumented.classes.dir}" />
14 <path refid="build.classpath"/>
15 <pathelement path="${lib.dir}/jruby.jar"/>
16 <pathelement path="${test.classes.dir}"/>
17 <pathelement path="${test.dir}/requireTest.jar"/>
18 </classpath>
19 <jvmarg value="-Djruby.home=${basedir}"/>
20 <jvmarg value="-Djruby.lib=${lib.dir}"/>
21 <jvmarg value="-Djruby.shell=/bin/sh"/>
22 <jvmarg value="-Djruby.script=jruby"/>
23 <jvmarg value="${profiler.info.jvmargs.agent}"/>
24 <arg value="bin/gem"/>
25 <arg value="install"/>
26 <arg value="lib/ruby/gems/1.8/cache/rake-0.7.1.gem"/>
27 </java>
28 </target>
29
c5a0b96 @vvs JRUBY-2674: ant -projecthelp output is incorrect
vvs authored
30 <target name="profile-rails-server" depends="jar" description="Profile the Rails server">
3f14a9c @enebo git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@5453 961051c9-f516...
enebo authored
31 <fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
32
33 <nbprofiledirect>
34 <classpath> <pathelement location="... specify ..."/> </classpath>
35 </nbprofiledirect>
36
37 <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
38 <classpath>
39 <pathelement location="${jruby.instrumented.classes.dir}" />
40 <path refid="build.classpath"/>
41 <pathelement path="${lib.dir}/jruby.jar"/>
42 <pathelement path="${test.classes.dir}"/>
43 <pathelement path="${test.dir}/requireTest.jar"/>
44 </classpath>
45 <jvmarg value="-Djruby.home=${basedir}"/>
46 <jvmarg value="-Djruby.lib=${lib.dir}"/>
47 <jvmarg value="-Djruby.shell=/bin/sh"/>
48 <jvmarg value="-Djruby.script=jruby"/>
49 <jvmarg value="-Djruby.thread.pooling=true"/>
50 <jvmarg value="-server"/>
51 <jvmarg value="${profiler.info.jvmargs.agent}"/>
52 <arg value="testapp/script/server"/>
53 </java>
54 </target>
55
56 <target name="profile-nb" depends="compile" description="Profile Project">
57 <fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
58
59 <nbprofiledirect>
60 <classpath>
61 <pathelement path="${jruby.classes.dir}"/>
62 <path refid="build.classpath"/>
63 </classpath>
64 </nbprofiledirect>
65
66 <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
67 <classpath>
68 <pathelement path="${jruby.classes.dir}"/>
69 <path refid="build.classpath"/>
70 </classpath>
71 <sysproperty key="jruby.home" value="${jruby.home}"/>
72 <jvmarg value="${profiler.info.jvmargs.agent}"/>
73 <jvmarg value="-Djruby.home=${basedir}"/>
74 <jvmarg value="-Djruby.lib=${lib.dir}"/>
75 <jvmarg value="-Djruby.shell=/bin/sh"/>
76 <jvmarg value="-Djruby.script=jruby"/>
77 <!-- uncomment below and point to your ruby script -->
78 <!-- <arg value="/path/to/your/ruby/script.rb"/> -->
79 </java>
80 </target>
81
82 <target name="debug-nb" depends="jar" description="Task for debugging JRuby within NetBeans">
83 <fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
84 <nbjpdastart addressproperty="jpda.address" name="JRuby" transport="dt_socket">
85 <classpath>
86 <pathelement path="${jruby.classes.dir}"/>
87 <path refid="build.classpath"/>
88 </classpath>
6be812c @headius Add sourcefiles line to debug target.
headius authored
89 <sourcepath path="${src.dir}"/>
3f14a9c @enebo git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@5453 961051c9-f516...
enebo authored
90 </nbjpdastart>
91 <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
92 <classpath>
93 <pathelement path="${jruby.classes.dir}"/>
94 <path refid="build.classpath"/>
95 </classpath>
96 <sysproperty key="jruby.home" value="${jruby.home}"/>
97 <jvmarg value="-Xdebug"/>
98 <jvmarg value="-Xnoagent"/>
99 <jvmarg value="-Djava.compiler=none"/>
100 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
101 <jvmarg value="-Djruby.home=${basedir}"/>
102 <jvmarg value="-Djruby.lib=${lib.dir}"/>
103 <jvmarg value="-Djruby.shell=/bin/sh"/>
104 <jvmarg value="-Djruby.script=jruby"/>
105 <!-- uncomment below and point to your ruby script -->
106 <!-- <arg value="/path/to/your/ruby/script.rb"/> -->
107 </java>
108 </target>
c5a0b96 @vvs JRUBY-2674: ant -projecthelp output is incorrect
vvs authored
109 </project>
Something went wrong with that request. Please try again.