*/
package org.sonar.plugins.core.widgets;
-import org.sonar.api.web.WidgetProperty;
-
/**
* Constants shared accross multiple widgets
*/
/**
* Widget property option used to filter out all the metrics which keys start with "new_".
- * @see WidgetProperty#options()
+ *
+ * @see org.sonar.api.web.WidgetProperty#options()
*/
String FILTER_OUT_NEW_METRICS = "key:^(?!new_).*";
}
public Object clone() {
RulesProfile clone = RulesProfile.create(getName(), getLanguage());
clone.setDefaultProfile(getDefaultProfile());
- clone.setProvided(getProvided());
clone.setParentName(getParentName());
if (CollectionUtils.isNotEmpty(activeRules)) {
clone.setActiveRules(new ArrayList<ActiveRule>(CollectionUtils.collect(activeRules, new Transformer() {
if (SystemUtils.IS_OS_WINDOWS) {
Command command = Command.create("foo.bat");
command.setNewShell(true);
- assertThat(command.toCommandLine()).isEqualTo("cmd /C foo.bat");
+ assertThat(command.toCommandLine()).isEqualTo("cmd /C call foo.bat");
assertThat(command.isNewShell()).isTrue();
} else {
Command command = Command.create("foo.sh");