@Test public void checkManipulatorOrder() { new Cli().run( new String[] { "--printManipulatorOrder" } ); assertTrue( systemOutRule.getLogWithNormalizedLineSeparator().contains( "Manipulator order is:\n" + " 1 InitialGroovyManipulator \n" + " 2 RangeResolver \n" + " 4 RESTBOMCollector \n" + " 5 ProfileInjectionManipulator \n" + " 6 SuffixManipulator \n" + " 7 RelocationManipulator \n" + " 10 RESTCollector \n" + " 20 ProjectVersioningManipulator \n" + " 25 ParentInjectionManipulator \n" + " 30 PropertyManipulator \n" + " 35 PluginManipulator \n" + " 40 DependencyManipulator \n" + " 50 RepoAndReportingRemovalManipulator \n" + " 51 DependencyRemovalManipulator \n" + " 52 PluginRemovalManipulator \n" + " 53 NexusStagingMavenPluginRemovalManipulator\n" + " 55 ProfileRemovalManipulator \n" + " 60 PluginInjectingManipulator \n" + " 65 RepositoryInjectionManipulator \n" + " 70 ProjectVersionEnforcingManipulator \n" + " 75 DistributionEnforcingManipulator \n" + " 80 BOMBuilderManipulator \n" + " 90 JSONManipulator \n" + " 91 XMLManipulator \n" + " 99 FinalGroovyManipulator \n" ) ); }
@SuppressWarnings("WeakerAccess") public int run( String[] args ) { CommandLine cl = new CommandLine(this); cl.setUsageHelpAutoWidth(true); cl.setExecutionStrategy(new CommandLine.RunAll()); cl.setOverwrittenOptionsAllowed(true); return cl.execute(args); }
Cli implements Callable<Integer> { @SuppressWarnings("WeakerAccess") public int run( String[] args ) { CommandLine cl = new CommandLine(this); cl.setUsageHelpAutoWidth(true); cl.setExecutionStrategy(new CommandLine.RunAll()); cl.setOverwrittenOptionsAllowed(true); return cl.execute(args); } }
Cli implements Callable<Integer> { @SuppressWarnings("WeakerAccess") public int run( String[] args ) { CommandLine cl = new CommandLine(this); cl.setUsageHelpAutoWidth(true); cl.setExecutionStrategy(new CommandLine.RunAll()); cl.setOverwrittenOptionsAllowed(true); return cl.execute(args); }  }
Cli implements Callable<Integer> { @SuppressWarnings("WeakerAccess") public int run( String[] args ) { CommandLine cl = new CommandLine(this); cl.setUsageHelpAutoWidth(true); cl.setExecutionStrategy(new CommandLine.RunAll()); cl.setOverwrittenOptionsAllowed(true); return cl.execute(args); }  static void main( String[] args ); @SuppressWarnings("WeakerAccess") // Public API. int run( String[] args ); @Override Integer call(); }
Cli implements Callable<Integer> { @SuppressWarnings("WeakerAccess") public int run( String[] args ) { CommandLine cl = new CommandLine(this); cl.setUsageHelpAutoWidth(true); cl.setExecutionStrategy(new CommandLine.RunAll()); cl.setOverwrittenOptionsAllowed(true); return cl.execute(args); }  static void main( String[] args ); @SuppressWarnings("WeakerAccess") // Public API. int run( String[] args ); @Override Integer call();  }