Wrong property in netbeans-ant.xml
----------------------------------

                 Key: JRUBY-3823
                 URL: http://jira.codehaus.org/browse/JRUBY-3823
             Project: JRuby
          Issue Type: Bug
          Components: Miscellaneous
    Affects Versions: JRuby 1.4
         Environment: System:
Linux fedora-vm 2.6.29.5-191.fc11.i686.PAE #1 SMP Tue Jun 16 23:19:53 EDT 2009 
i686 i686 i386 GNU/Linux

JRuby:
jruby 1.4.0dev (ruby 1.8.6p287) (2009-07-18 9f22dea) (OpenJDK Client VM 
1.6.0_0) [i386-java]

NetBeans:
NetBeans IDE 6.5 (Build 090226)
            Reporter: Markus Pointner
            Priority: Minor
         Attachments: netbeans-ant.xml.patch

I tried to investigate the bug #JRUBY-3757 by using NetBeans to step through 
the ruby 1.9 source of prettyprint. As seen in the example below, I changed 
netbeans-ant.xml to use 1.9 compatibility. But when I started the debug-task, 
NetBeans always told me {color:red}"Warning: JRuby home "${jruby.home}" does 
not exist, using /tmp"{color}. Also, because of a stracktrace, I could see that 
it was using the 1.8 version of prettyprint instead of the 1.9 version.

After I changed the sysproperty-tag as seen below, the warning was gone and it 
used the correct version of prettyprint, so I guess that the tag was wrong.
The same error exists in the "profile-nb"-tag.

{code:xml}
  <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>
    <nbjpdastart addressproperty="jpda.address" name="JRuby" 
transport="dt_socket">
      <classpath>        
        <pathelement path="${jruby.classes.dir}"/>
        <path refid="build.classpath"/>
      </classpath>      
      <sourcepath path="${src.dir}"/>
    </nbjpdastart>
    <java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" 
fork="true">
      <classpath>        
        <pathelement path="${jruby.classes.dir}"/>
        <path refid="build.classpath"/>
      </classpath> 
      <!-- <sysproperty key="jruby.home" value="${jruby.home}"/> --> <!-- --- 
OLD LINE --- -->
      <sysproperty key="jruby.home" value="${basedir}"/>             <!-- +++ 
NEW LINE +++ -->
      <jvmarg value="-Xdebug"/>
      <jvmarg value="-Xnoagent"/>
      <jvmarg value="-Djava.compiler=none"/>
      <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
      <jvmarg value="-Djruby.home=${basedir}"/>
      <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"/> -->
      <jvmarg value="-Djruby.compat.version=RUBY1_9"/>
      <arg value="/home/mooware/test_pp.rb"/>
    </java>
  </target>
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to