Permalink
Browse files

Make debug action maintain sticky arguments in .debug.properties

  • Loading branch information...
1 parent a72230e commit 5b7ac291ab7c38651d2d3b2c28a1d3b362c65c72 @enebo enebo committed Aug 6, 2009
Showing with 9 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +8 −2 netbeans-ant.xml
View
@@ -27,3 +27,4 @@ gem/pkg
*.rej
tool/nailgun/ng
jruby-findbugs.html
+.debug.properties
View
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="netbeans-ant">
+ <property name="args.default.file" value=".debug.properties"/>
+ <property file="${args.default.file}"/>
<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>
@@ -62,7 +64,9 @@
<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"/>
+ <input message="Enter flags and args for `jruby` command:" addproperty="jruby.args" defaultvalue="${args.default}"/>
+ <echo file="${args.default.file}" append="false">args.default=${jruby.args}
+</echo>
<nbprofiledirect>
<classpath>
@@ -89,7 +93,9 @@
<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"/>
+ <input message="Enter flags and args for `jruby` command:" addproperty="jruby.args" defaultvalue="${args.default}"/>
+ <echo file="${args.default.file}" append="false">args.default=${jruby.args}
+</echo>
<nbjpdastart addressproperty="jpda.address" name="JRuby" transport="dt_socket">
<classpath>

0 comments on commit 5b7ac29

Please sign in to comment.