use of org.eclipse.cdt.managedbuilder.core.IOption in project m2e-nar by maven-nar.
the class OptionSetter method setOption.
public void setOption(final String optionId, final String value) throws CoreException {
try {
for (final ITool tool : config.getToolsBySuperClassId(toolId)) {
final IOption option = tool.getOptionBySuperClassId(optionId);
config.setOption(tool, option, value);
}
} catch (BuildException e) {
throw new CoreException(new Status(IStatus.ERROR, MavenNarPlugin.PLUGIN_ID, "Couldn't set " + optionId + " option", e));
}
}
use of org.eclipse.cdt.managedbuilder.core.IOption in project m2e-nar by maven-nar.
the class OptionSetter method setOption.
public void setOption(final String optionId, final String[] values) throws CoreException {
try {
for (final ITool tool : config.getToolsBySuperClassId(toolId)) {
final IOption option = tool.getOptionBySuperClassId(optionId);
config.setOption(tool, option, values);
}
} catch (BuildException e) {
throw new CoreException(new Status(IStatus.ERROR, MavenNarPlugin.PLUGIN_ID, "Couldn't set " + optionId + " option", e));
}
}
Aggregations