Fix for JRUBY-2469 - make sure that the meta-attribute always defines the method...
[jruby.git] / netbeans-ant.xml
blob8e5f080470d017ad115f7b537b19cefbecd75ac5
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   
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>
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>      
89     </nbjpdastart>
90     <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
91       <classpath>        
92         <pathelement path="${jruby.classes.dir}"/>
93         <path refid="build.classpath"/>
94       </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"/> -->
106     </java>
107   </target>   
108 </project>