// 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;
package org.echocat.gradle.plugins.golang.model;




public class GolangSettings {

    @Nonnull
    private final Project _project;

    private List<Platform> _platforms;
    private String _packageName;
    private Platform _hostPlatform;
    private Path _cacheRoot;

    @Inject
    public GolangSettings(boolean initialize, @Nonnull Project project) {
        _project = project;
        if (initialize) {
// 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;

package org.echocat.gradle.plugins.golang.model;




public class GolangSettings {

    @Nonnull
    private final Project _project;

    private List<Platform> _platforms;
    private String _packageName;
    private Platform _hostPlatform;
    private Path _cacheRoot;

    @Inject
    public GolangSettings(boolean initialize, @Nonnull Project project) {
        _project = project;
        if (initialize) {
            setHostPlatform(currentPlatform());