// Path: src/main/java/org/echocat/gradle/plugins/golang/model/Platform.java
// @Nonnull
// public static Platform currentPlatform() {
//     return CURRENT;
// }
// 
// Path: src/main/java/org/echocat/gradle/plugins/golang/utils/FileUtils.java
// @Nullable
// public static Path toPath(@Nullable String plain) {
//     return plain != null ? Paths.get(plain) : null;
// }


import org.gradle.api.Project;
import javax.annotation.Nonnull;
import javax.inject.Inject;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import static org.echocat.gradle.plugins.golang.model.Platform.currentPlatform;
import static org.echocat.gradle.plugins.golang.utils.FileUtils.toPath;

    public String getPackageName() {
        return _packageName;
    }

    public void setPackageName(String packageName) {
        _packageName = packageName;
    }

    public Platform getHostPlatform() {
        return _hostPlatform;
    }

    public void setHostPlatform(Platform hostPlatform) {
        _hostPlatform = hostPlatform;
    }

    public void setHostPlatform(String hostPlatform) {
        setHostPlatform(hostPlatform != null ? Platform.resolveForGo(hostPlatform) : null);
    }

    public Path getCacheRoot() {
        return _cacheRoot;
    }

    public void setCacheRoot(Path cacheRoot) {
        _cacheRoot = cacheRoot;
    }

    public void setCacheRoot(String cacheRoot) {
// Path: src/main/java/org/echocat/gradle/plugins/golang/model/Platform.java
// @Nonnull
// public static Platform currentPlatform() {
//     return CURRENT;
// }
// 
// Path: src/main/java/org/echocat/gradle/plugins/golang/utils/FileUtils.java
// @Nullable
// public static Path toPath(@Nullable String plain) {
//     return plain != null ? Paths.get(plain) : null;
// }


// Path: src/main/java/org/echocat/gradle/plugins/golang/model/GolangSettings.java
import org.gradle.api.Project;
import javax.annotation.Nonnull;
import javax.inject.Inject;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import static org.echocat.gradle.plugins.golang.model.Platform.currentPlatform;
import static org.echocat.gradle.plugins.golang.utils.FileUtils.toPath;


    public String getPackageName() {
        return _packageName;
    }

    public void setPackageName(String packageName) {
        _packageName = packageName;
    }

    public Platform getHostPlatform() {
        return _hostPlatform;
    }

    public void setHostPlatform(Platform hostPlatform) {
        _hostPlatform = hostPlatform;
    }

    public void setHostPlatform(String hostPlatform) {
        setHostPlatform(hostPlatform != null ? Platform.resolveForGo(hostPlatform) : null);
    }

    public Path getCacheRoot() {
        return _cacheRoot;
    }

    public void setCacheRoot(Path cacheRoot) {
        _cacheRoot = cacheRoot;
    }

    public void setCacheRoot(String cacheRoot) {
        setCacheRoot(toPath(cacheRoot));