1 <?xml version="1.0" encoding="UTF-8"?>
2 <project basedir="." name="netbeans-ant">
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>
8 <classpath> <pathelement location="... specify ..."/> </classpath>
11 <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
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"/>
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"/>
30 <target name="profile-rails-server" depends="jar" description="Profile a local gem installation of Rake">
31 <fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
34 <classpath> <pathelement location="... specify ..."/> </classpath>
37 <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
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"/>
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"/>
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>
61 <pathelement path="${jruby.classes.dir}"/>
62 <path refid="build.classpath"/>
66 <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
68 <pathelement path="${jruby.classes.dir}"/>
69 <path refid="build.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"/> -->
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">
86 <pathelement path="${jruby.classes.dir}"/>
87 <path refid="build.classpath"/>
90 <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
92 <pathelement path="${jruby.classes.dir}"/>
93 <path refid="build.classpath"/>
95 <sysproperty key="jruby.home" value="${jruby.home}"/>
96 <jvmarg value="-Xdebug"/>
97 <jvmarg value="-Xnoagent"/>
98 <jvmarg value="-Djava.compiler=none"/>
99 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
100 <jvmarg value="-Djruby.home=${basedir}"/>
101 <jvmarg value="-Djruby.lib=${lib.dir}"/>
102 <jvmarg value="-Djruby.shell=/bin/sh"/>
103 <jvmarg value="-Djruby.script=jruby"/>
104 <!-- uncomment below and point to your ruby script -->
105 <!-- <arg value="/path/to/your/ruby/script.rb"/> -->