KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > ruby > rubyproject > api > RubyExecution


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.ruby.rubyproject.api;
21
22 import org.netbeans.modules.ruby.rubyproject.execution.RegexpOutputRecognizer;
23
24 /**
25  * Services related to executing Ruby
26  *
27  * @author Tor Norbye
28  */

29 public class RubyExecution {
30     // JRuby 0.9.1:
31
// main.rb:6 warning: parenthesize argument(s) for future version
32
// :[-1,-1]:[0,0]: main.rb:7: unterminated string meets end of file (SyntaxError)
33
// Ruby 1.8.2:
34
// main.rb:5: unterminated string meets end of file
35
// Ruby stack trace lines, 3 variants:
36
///Users/tor/codehaus/jruby/trunk/trunk/jruby/src/builtin/socket.rb:240:in `initialize': Errno::EADDRINUSE (Errno::EADDRINUSE)
37
// from /Users/tor/semplice/modules/scripting/build/cluster/jruby-0.9.1/lib/ruby/1.8/webrick/utils.rb:73:in `new'
38
// from /Users/tor/semplice/modules/scripting/build/cluster/jruby-0.9.1/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
39
public static final RegexpOutputRecognizer RUBY_COMPILER =
40         new RegexpOutputRecognizer("^((\\[|\\]|\\-|\\:|[0-9]|\\s|\\,)*)(\\s*from )?(\\S.*\\.rb)\\:([0-9]+).*", 4, 5, -1); // NOI18N
41

42     private RubyExecution() {
43     }
44     
45 }
46
Popular Tags