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

Sat, 03 Aug 2019 17:45:03 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 03 Aug 2019 17:45:03 +0200
changeset 8
82cd9f1d94cb
parent 0
38775db5fdf5
child 40
b42bfc9e9983
permissions
-rw-r--r--

add c++ compiler detection

package de.unixwork.uwproj;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author olaf
 */
public class Define {
    private String name;
    private String value;

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

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    
    public String toFlags() {
        if(name == null) {
            return "";
        } else if(value == null) {
            return "-D"+name;
        } else {
            return "-D"+name + "=" + value;
        }
    }
}

mercurial