/** * Starts creating an argument list. * Initially adds only the Mercurial executable itself, possibly with a debug flag. * @param allowDebug whether to add a debug flag if the configured installation requested it * @return a builder */ public ArgumentListBuilder seed(boolean allowDebug) { return (allowDebug ? base : baseNoDebug).clone(); }
private ArgumentListBuilder seed(boolean allowDebug) { return (allowDebug ? base : baseNoDebug).clone(); }
ArgumentListBuilder internalIntercept(ArgumentListBuilder mavenArgumentListBuilder, boolean isIncrementalBuild) { ArgumentListBuilder returnListBuilder = new ArgumentListBuilder(); List<String> argumentList = mavenArgumentListBuilder.toList(); if (isIncrementalBuild && containsJenkinsIncrementalBuildArguments(argumentList)) { LOGGER.config("This Maven build seems to be configured as 'Incremental build'. This will be disables, as always the full project will be released"); returnListBuilder = removeAllIncrementalBuildArguments(mavenArgumentListBuilder.clone()); } else { returnListBuilder = mavenArgumentListBuilder.clone(); } if (scmPassword != null) { returnListBuilder.addMasked("-Dpassword=" + scmPassword); } return returnListBuilder; }
ArgumentListBuilder perModuleArgs = args.clone(); String sModuleName = matcher.group(1);
actualCmd = cmd.clone(); actualCmd.add(modulePath.getName()); modulePath = modulePath.getParent();
actualCmd = cmd.clone(); actualCmd.add(modulePath.getName()); modulePath = modulePath.getParent();