Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modife NB debug/profile targets to prompt for command-line args.

  • Loading branch information...
commit a72230e1c7a0dbb795ae015313becfacb37fa71b 1 parent 6ecd924
@headius headius authored
Showing with 18 additions and 8 deletions.
  1. +18 −8 netbeans-ant.xml
View
26 netbeans-ant.xml
@@ -3,9 +3,12 @@
<target name="profile-gem-install-rake" depends="jar" description="Profile a local gem installation of Rake">
<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
-
+
<nbprofiledirect>
- <classpath> <pathelement location="... specify ..."/> </classpath>
+ <classpath>
+ <pathelement path="${jruby.classes.dir}"/>
+ <path refid="build.classpath"/>
+ </classpath>
</nbprofiledirect>
<java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
@@ -29,9 +32,12 @@
<target name="profile-rails-server" depends="jar" description="Profile the Rails server">
<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
-
+
<nbprofiledirect>
- <classpath> <pathelement location="... specify ..."/> </classpath>
+ <classpath>
+ <pathelement path="${jruby.classes.dir}"/>
+ <path refid="build.classpath"/>
+ </classpath>
</nbprofiledirect>
<java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
@@ -55,6 +61,8 @@
<target name="profile-nb" depends="compile" description="Profile Project">
<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
+
+ <input message="Enter flags and args for `jruby` command:" addproperty="jruby.args"/>
<nbprofiledirect>
<classpath>
@@ -74,13 +82,15 @@
<jvmarg value="-Djruby.lib=${lib.dir}"/>
<jvmarg value="-Djruby.shell=/bin/sh"/>
<jvmarg value="-Djruby.script=jruby"/>
- <!-- uncomment below and point to your ruby script -->
- <!-- <arg value="/path/to/your/ruby/script.rb"/> -->
+ <arg line="${jruby.args}"/>
</java>
</target>
<target name="debug-nb" depends="jar" description="Task for debugging JRuby within NetBeans">
<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
+
+ <input message="Enter flags and args for `jruby` command:" addproperty="jruby.args"/>
+
<nbjpdastart addressproperty="jpda.address" name="JRuby" transport="dt_socket">
<classpath>
<pathelement path="${jruby.classes.dir}"/>
@@ -88,6 +98,7 @@
</classpath>
<sourcepath path="${src.dir}"/>
</nbjpdastart>
+
<java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
<classpath>
<pathelement path="${jruby.classes.dir}"/>
@@ -102,8 +113,7 @@
<jvmarg value="-Djruby.lib=${lib.dir}"/>
<jvmarg value="-Djruby.shell=/bin/sh"/>
<jvmarg value="-Djruby.script=jruby"/>
- <!-- uncomment below and point to your ruby script -->
- <!-- <arg value="/path/to/your/ruby/script.rb"/> -->
+ <arg line="${jruby.args}"/>
</java>
</target>
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.