-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WINDUP-701 Fix automatic rulesets updating - Refactoring, fixes
- Loading branch information
1 parent
226d32b
commit 549b344
Showing
15 changed files
with
322 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
exec/api/src/main/java/org/jboss/windup/exec/configuration/options/UpdateRulesetsOption.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package org.jboss.windup.exec.configuration.options; | ||
|
||
import org.jboss.windup.config.AbstractConfigurationOption; | ||
import org.jboss.windup.config.InputType; | ||
import org.jboss.windup.config.ValidationResult; | ||
|
||
/** | ||
* Updates the rulesets distributed with Windup. | ||
* That means, Windup will check the Maven repository for releases of windup-rulesets, | ||
* and if newer is available, it it downloaded and it replaces the current one. | ||
*/ | ||
public class UpdateRulesetsOption extends AbstractConfigurationOption | ||
{ | ||
public static final String NAME = "updateRulesets"; | ||
|
||
@Override | ||
public String getDescription() | ||
{ | ||
return "Updates the rulesets distributed with Windup."; | ||
} | ||
|
||
@Override | ||
public String getName() | ||
{ | ||
return NAME; | ||
} | ||
|
||
@Override | ||
public String getLabel() | ||
{ | ||
return "Update rulesets"; | ||
} | ||
|
||
@Override | ||
public Class<?> getType() | ||
{ | ||
return Boolean.class; | ||
} | ||
|
||
@Override | ||
public InputType getUIType() | ||
{ | ||
return InputType.SINGLE; | ||
} | ||
|
||
@Override | ||
public boolean isRequired() | ||
{ | ||
return false; | ||
} | ||
|
||
public ValidationResult validate(Object valueObj) | ||
{ | ||
return ValidationResult.SUCCESS; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
ui/addon/src/main/java/org/jboss/windup/ui/WindupUpdateDistributionCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.