Skip to content

JdkInfo.GetReleaseProperties() breaks if values are missing quotes #39

@bratsche

Description

@bratsche

Using this OpenJDK release https://dl.xamarin.com/OpenJDK/mac/microsoft-dist-openjdk-1.8.0.9.zip which is linked from here https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/openjdk

The release file looks like this

JAVA_VERSION="1.8.0"
OS_NAME="Darwin"
OS_VERSION="11.2"
OS_ARCH="x86_64"
SOURCE=""
BUILD_NUMBER=9

When JdkInfo.GetReleaseProperties() gets to the last line it breaks because it is expecting every value to be inside quotes. Changing the last line to BUILD_NUMBER="9" causes the error to go away.

This line gets added by a Jenkins script http://xamarin-jenkins/view/OpenJDK/job/openjdk-mac/configure but we should probably fix our parser since there are already releases out there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions