Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.RC2, JRuby 1.7.0.RC1
Assignee: Thomas E Enebo
Created: 10/Oct/12 12:39 PM
Description:

This may or may not be related to JRUBY-6914 (It was actually the entire reason that I created the issue). RC2 seems to have fixed not being able to run rake tasks from the command-line but it does not fix the issue with TeamCity trying to run rake builds. This issue actually causes TeamCity to hang and become completely unresponsive, forcing the user to restart the service.

TeamCity is attempting to call its own rakerunner.rb file (see below). This worked fine in all of the JRuby 1.7 preview releases, but it fails in the RC's. I'm not sure of the actual error being thrown (if any). As I said, TeamCity just becomes unresponsive when it tries to call this file.

The command being issued is:

C:\jruby\jruby-1.7.0.RC1\bin\jruby.exe C:\TeamCity\buildAgent\plugins\rake-runner\rb\runner\rakerunner.rb assets:clean

The contents of the rakerunner.rb file are as follows:

rakerunner.rb
# Copyright 2000-2009 JetBrains s.r.o.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Created by IntelliJ IDEA.
#
# @author: Roman.Chernyatchik
# @date: 07.06.2007

# TeamCity build server uses this file for running rake tasks
######################################################################
STDOUT.sync=true
STDERR.sync=true

######################################################################
# ENV["idea.rake.debug.log.path"] = File.expand_path(File.dirname(__FILE__) + "/../..")
######################################################################

require 'rubygems'
version = "> 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
  version = $1
  ARGV.shift
end

gem 'rake', version
load  File.expand_path(File.dirname(__FILE__) + '/rake_ext.rb')
#################################################################
#################################################################
Rake.application.run
Environment: Windows 7 / Windows Server 2008
Project: JRuby
Priority: Major Major
Reporter: Scott Nelson
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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