/**
  * Tests the {@link
  * BuilderCoreUtils#configureTriggers(org.eclipse.debug.core.ILaunchConfiguration,
  * org.eclipse.core.resources.ICommand)} method <br>
  * <br>
  * Tests that the triggers are configured for a full + incremental build with the targets 'def'
  * and 'inc' specified for after clean targets and manual targets respectively
  *
  * @throws Exception
  */
 public void testConfigureTriggers9() throws Exception {
   Map<String, String> args = new HashMap<>();
   args.put(IAntLaunchConstants.ATTR_ANT_AFTER_CLEAN_TARGETS, "def"); // $NON-NLS-1$
   args.put(IAntLaunchConstants.ATTR_ANT_MANUAL_TARGETS, "inc"); // $NON-NLS-1$
   args.put(
       IExternalToolConstants.ATTR_LOCATION, getBuildFile(EXT_BUILD_FILE_NAME).getAbsolutePath());
   args.put(
       IExternalToolConstants.ATTR_RUN_BUILD_KINDS,
       IExternalToolConstants.BUILD_TYPE_CLEAN
           + ","
           + IExternalToolConstants.BUILD_TYPE_INCREMENTAL); // $NON-NLS-1$
   ILaunchConfiguration config =
       createExternalToolBuilder(getProject(), "testConfigureTriggers9", args); // $NON-NLS-1$
   assertNotNull("the test builder must not be null", config); // $NON-NLS-1$
   ICommand command = createBuildCommand(config);
   assertNotNull("the test build command must not be null", command); // $NON-NLS-1$
   assertTrue(
       "the command must be building CLEAN builds",
       command.isBuilding(IncrementalProjectBuilder.FULL_BUILD)); // $NON-NLS-1$
   assertTrue(
       "the command must be building CLEAN builds",
       command.isBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD)); // $NON-NLS-1$
   String[] names = AntLaunchingUtil.getTargetNames(config);
   assertNull(
       "should be no target names resolved from the config - only available during a build",
       names); //$NON-NLS-1$
 }
 /**
  * Tests the {@link
  * BuilderCoreUtils#configureTriggers(org.eclipse.debug.core.ILaunchConfiguration,
  * org.eclipse.core.resources.ICommand)} method <br>
  * <br>
  * Tests that the triggers are configured for a clean build
  *
  * @throws Exception
  */
 public void testConfigureTriggers7() throws Exception {
   Map<String, String> args = new HashMap<>();
   args.put(IAntLaunchConstants.ATTR_ANT_CLEAN_TARGETS, null);
   args.put(
       IExternalToolConstants.ATTR_LOCATION, getBuildFile(EXT_BUILD_FILE_NAME).getAbsolutePath());
   args.put(IExternalToolConstants.ATTR_RUN_BUILD_KINDS, IExternalToolConstants.BUILD_TYPE_CLEAN);
   ILaunchConfiguration config =
       createExternalToolBuilder(getProject(), "testConfigureTriggers7", args); // $NON-NLS-1$
   assertNotNull("the test builder must not be null", config); // $NON-NLS-1$
   ICommand command = createBuildCommand(config);
   assertNotNull("the test build command must not be null", command); // $NON-NLS-1$
   assertTrue(
       "the command must be building CLEAN builds",
       command.isBuilding(IncrementalProjectBuilder.CLEAN_BUILD)); // $NON-NLS-1$
   String[] names = AntLaunchingUtil.getTargetNames(config);
   assertNull(
       "should be no target names resolved from the config - null given for target names",
       names); //$NON-NLS-1$
 }