Hello,

On 2014-05-08 13:55, Dave Pointon wrote:
Hi Erik ,

Thanx for that, bizarrely, I never even considered that JIRA might choose to apply a little re-formatting but it undoubtedly has.

Anyway, I'm a not little uncertain of your assertion 'The problem then is that there will be no java launcher present to query for version information' - would you happen to know if there is a definition of the (expected) contents of a hotspot build - as you can probably tell, I rather assumed that a bin directory (and indeed bin/java) would be in there.

If you build hotspot, look what it produces in the dist sub directory in the build output.

David Holmes also has a valid point. The bin/java in the imported hotspot might not even be runnable if we are cross compiling. In that case we also need to refrain from trying to run it.

/Erik
​TIA & rgds ,​

​​
--
Dave Pointon FIAP MBCS

Now I saw, tho' too late, the folly of beginning a work before we count the cost and before we we judge rightly of our strength to go thro' with it - Robinson Crusoe


On 8 May 2014 08:56, Erik Joelsson <erik.joels...@oracle.com <mailto:erik.joels...@oracle.com>> wrote:

    Hello Dave,

    Adding this information certainly makes sense. While probably not
    a very common usecase, it is currently possible to point
    "--with-import-hotspot" to the dist directory of a Hotspot build.
    The problem then is that there will be no java launcher present to
    query for version information. Could you please add a condition on
    the existance of $with_import_hotspot/bin/java before trying to
    run it? If it's not there, the version will simply be unknown.

    The patch looks like it's missing indentation. This might be
    because of formatting in JIRA, but in case it's not, please indent
    the if statements properly with 2 spaces.

    /Erik
    ​<snip>


Reply via email to