use of org.eclipse.tycho.model.Feature in project tycho by eclipse.
the class FeatureXmlManipulator method getFeatureXml.
private Feature getFeatureXml(ProjectMetadata project) {
Feature feature = project.getMetadata(Feature.class);
if (feature == null) {
File file = getFeatureFile(project);
try {
feature = Feature.read(file);
} catch (IOException e) {
throw new IllegalArgumentException("Could not read feature descriptor" + file, e);
}
project.putMetadata(feature);
}
return feature;
}
Aggregations