Compiling from source fails if git is not installed
---------------------------------------------------

                 Key: JRUBY-5790
                 URL: http://jira.codehaus.org/browse/JRUBY-5790
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.1, JRuby 1.6
            Reporter: Trejkaz
            Assignee: Thomas E Enebo


Attempting to compile JRuby without git being installed currently fails with 
the following error:

{noformat}
    [javac] Compiling 1 source file to 
C:\Data\Projects\nuix\trunk\vendor\jruby\build\work\build\classes\jruby
    [javac] 
C:\Data\Projects\nuix\trunk\vendor\jruby\build\work\src_gen\org\jruby\runtime\Constants.java:62:
 unclosed string literal
    [javac]         REVISION = "'git' is not recognized as an internal or 
external command,
    [javac]                    ^
    [javac] 
C:\Data\Projects\nuix\trunk\vendor\jruby\build\work\src_gen\org\jruby\runtime\Constants.java:63:
 ';' expected
    [javac] operable program or batch file.";
    [javac]                 ^
    [javac] 
C:\Data\Projects\nuix\trunk\vendor\jruby\build\work\src_gen\org\jruby\runtime\Constants.java:63:
 ';' expected
    [javac] operable program or batch file.";
    [javac]                          ^
    [javac] 
C:\Data\Projects\nuix\trunk\vendor\jruby\build\work\src_gen\org\jruby\runtime\Constants.java:63:
 unclosed string literal
    [javac] operable program or batch file.";
    [javac]                                ^
    [javac] 
C:\Data\Projects\nuix\trunk\vendor\jruby\build\work\src_gen\org\jruby\runtime\Constants.java:63:
 not a statement
    [javac] operable program or batch file.";
    [javac]                               ^
    [javac] 5 errors

BUILD FAILED
{noformat}

Installing git is one workaround, but it is a hassle to install it onto every 
machine on our entire build farm.  Better would be if the revision were 
automatically set to "unknown" or something if git cannot be found.

I don't see how this would work on the source distribution anyway, which 
doesn't include the .git directory and thus wouldn't have the metadata required 
to determine the revision.  Maybe the Constants.java file should actually be 
pre-substituted for the source distribution?

-- 
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