src/main/java/de/unixwork/uwproj/Define.java

Sun, 28 Jan 2024 13:22:02 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 28 Jan 2024 13:22:02 +0100
changeset 111
cb128bae1161
parent 41
75ee588d5d9e
child 113
24f32dbd88cd
permissions
-rw-r--r--

add shortcut for installation to home

package de.unixwork.uwproj;

public class Define {
    private final String name;
    private final String value;

    public Define(String name, String value) {
        this.name = name;
        this.value = value;
    }
    
    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }
    
    public String toFlags() {
        if(name == null) {
            return "";
        } else if(value == null) {
            return "-D"+name;
        } else {
            return "-D"+name + "=" + value;
        }
    }
}

mercurial