44:1d963f2c7e91 | 45:f4ec2feccebb |
---|---|
3 import org.w3c.dom.Element; | 3 import org.w3c.dom.Element; |
4 | 4 |
5 import java.util.List; | 5 import java.util.List; |
6 | 6 |
7 import static de.unixwork.uwproj.Util.isNotNullOrBlank; | 7 import static de.unixwork.uwproj.Util.isNotNullOrBlank; |
8 import static de.unixwork.uwproj.Util.shId; | |
8 | 9 |
9 public class Feature { | 10 public class Feature { |
10 private String name; | 11 private String name; |
11 private String arg; | 12 private String arg; |
12 private boolean def; | 13 private boolean def; |
35 project.addFeature(feature); | 36 project.addFeature(feature); |
36 return feature; | 37 return feature; |
37 } | 38 } |
38 | 39 |
39 public String getVarName() { | 40 public String getVarName() { |
40 return "FEATURE_" + name.toUpperCase(); | 41 return shId("FEATURE_" + name.toUpperCase()); |
41 } | 42 } |
42 | 43 |
43 public List<String> getDependencies() { | 44 public List<String> getDependencies() { |
44 return getTargetData().getDependencies(); | 45 return getTargetData().getDependencies(); |
45 } | 46 } |