Skip to content

Commit

Permalink
WINDUP-701 Fix automatic rulesets updating - Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraZizka committed Jul 30, 2015
1 parent bac47f0 commit ca77162
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ else if ("--generateCompletionData".equals(arg))
else if (arg.startsWith("--updateRules"))
{
updateRulesets = true;
if(arguments.size() == 1)
command = BootstrapCommand.UPDATE_RULESETS;
}
else
{
Expand Down Expand Up @@ -298,6 +296,10 @@ else if (command == null)
// Update rulesets
if (updateRulesets)
{
// Prevent help from being printed.
if(command == null)
command = BootstrapCommand.UPDATE_RULESETS;

System.out.println("Updating Rulesets...");
try {
Imported<DependencyResolver> resolver = furnace.getAddonRegistry().getServices(DependencyResolver.class);
Expand Down Expand Up @@ -326,10 +328,6 @@ else if (command == null)
case LIST_TARGET_TECHNOLOGIES:
listTargetTechnologies();
break;
case UPDATE_RULESETS: {
System.out.println("TEST");/// For some reason, this case is ignored.
break;
}
case RUN_WINDUP:
runWindup(windupArguments);
break;
Expand Down

0 comments on commit ca77162

Please sign in to comment.