@Override protected void doExecute(FeaturesService featuresService) throws Exception { addOption(FeaturesService.Option.Simulate, simulate); addOption(FeaturesService.Option.NoAutoStartBundles, noStart); addOption(FeaturesService.Option.NoAutoRefreshBundles, noRefresh); addOption(FeaturesService.Option.NoAutoManageBundles, noManage); addOption(FeaturesService.Option.Verbose, verbose); addOption(FeaturesService.Option.DisplayFeaturesWiring, featuresWiring); addOption(FeaturesService.Option.DisplayAllWiring, allWiring); Map<String, Set<String>> reqs = new HashMap<>(); reqs.put(region, new HashSet<>(requirements)); featuresService.setResolutionOutputFile(outputFile); featuresService.addRequirements(reqs, options); }
@Override protected void doExecute(FeaturesService featuresService) throws Exception { addOption(FeaturesService.Option.Simulate, simulate); addOption(FeaturesService.Option.NoAutoStartBundles, noStart); addOption(FeaturesService.Option.NoAutoRefreshBundles, noRefresh); addOption(FeaturesService.Option.NoAutoManageBundles, noManage); addOption(FeaturesService.Option.Verbose, verbose); addOption(FeaturesService.Option.DisplayFeaturesWiring, featuresWiring); addOption(FeaturesService.Option.DisplayAllWiring, allWiring); Map<String, Set<String>> reqs = new HashMap<>(); reqs.put(region, new HashSet<>(requirements)); featuresService.setResolutionOutputFile(outputFile); featuresService.addRequirements(reqs, options); }