
wtf.emulator.EwProperties Maven / Gradle / Ivy
package wtf.emulator;
import org.gradle.api.Project;
public enum EwProperties {
ADD_REPOSITORY("addrepository");
private static final String PREFIX = "wtf.emulator";
private final String propName;
EwProperties(String propName) {
this.propName = propName;
}
public boolean getFlag(Project project, boolean defaultValue) {
Object value = project.findProperty(PREFIX + "." + propName);
if (value == null) {
return defaultValue;
}
return Boolean.parseBoolean(value.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy