NbGradleProject project,
GradleCommandTemplate command,
CustomCommandActions customActions,
Lookup actionContext) {
TaskVariableMap varReplaceMap = project.getVarReplaceMap(actionContext);
TaskOutputDef caption = getOutputDef(project, customActions.getTaskKind(), command);
GradleTaskDef.Builder builder = createFromTemplate(caption, command, varReplaceMap);
addAdditionalArguments(project, actionContext, customActions, varReplaceMap, builder);
builder.setCancelToken(customActions.getCancelToken());