Return-Path: Delivered-To: apmail-incubator-buildr-commits-archive@locus.apache.org Received: (qmail 24292 invoked from network); 17 Jan 2008 23:02:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2008 23:02:20 -0000 Received: (qmail 4856 invoked by uid 500); 17 Jan 2008 23:02:10 -0000 Delivered-To: apmail-incubator-buildr-commits-archive@incubator.apache.org Received: (qmail 4845 invoked by uid 500); 17 Jan 2008 23:02:10 -0000 Mailing-List: contact buildr-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-dev@incubator.apache.org Delivered-To: mailing list buildr-commits@incubator.apache.org Received: (qmail 4836 invoked by uid 99); 17 Jan 2008 23:02:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 15:02:10 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 23:02:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B05A714275 for ; Thu, 17 Jan 2008 15:01:54 -0800 (PST) Message-ID: <23108753.1200610914172.JavaMail.jira@brutus> Date: Thu, 17 Jan 2008 15:01:54 -0800 (PST) From: "Nick Sieger (JIRA)" To: buildr-commits@incubator.apache.org Subject: [jira] Commented: (BUILDR-3) Buildr being usable on JRuby In-Reply-To: <21783801.1197404203309.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/BUILDR-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560139#action_12560139 ] Nick Sieger commented on BUILDR-3: ---------------------------------- If JRuby running buildr should need to fork itself, you should know that the default behavior of JRuby is to spawn another instance of itself in the same VM. If you want to pass Java VM arguments, then you'll want to actually fork a subprocess VM. To do this: {noformat} require 'rbconfig' require 'jruby' RUBY = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) def jruby(*args) prev_in_process = JRuby.runtime.instance_config.run_ruby_in_process JRuby.runtime.instance_config.run_ruby_in_process = false system "#{RUBY} #{args.join(' ')}" ensure JRuby.runtime.instance_config.run_ruby_in_process = prev_in_process end {noformat} > Buildr being usable on JRuby > ---------------------------- > > Key: BUILDR-3 > URL: https://issues.apache.org/jira/browse/BUILDR-3 > Project: Buildr > Issue Type: New Feature > Environment: JDK 1.6. > JRuby SNAPSHOT: jruby-complete-1.1-20071211.100054-17 > Reporter: Victor Hugo Borja > Assignee: Assaf Arkin > Attachments: 0001-Added-the-tools.jar-to-the-systemClassLoader-this-m.patch, 0001-BuildR-is-usable-in-JRuby.patch, 0001-More-JRuby-1.1RC1-integration-changes-for-buildr-1.patch, 0002-Use-RubyString.to_java_bytes-instead-of-unpacking-th.patch > > > Attached patch makes buildr-HEAD usable on JRuby. See the patch changelog for details. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.