Tabnine Logo
Exec.commandLine
Code IndexAdd Tabnine to your IDE (free)

How to use
commandLine
method
in
org.gradle.api.tasks.Exec

Best Java code snippets using org.gradle.api.tasks.Exec.commandLine (Showing top 7 results out of 315)

origin: gradle.plugin.org.shipkit/shipkit

  public void execute(final Exec t) {
    t.setDescription("Removes last commit, using 'reset --soft HEAD~'");
    t.commandLine("git", "reset", "--soft", "HEAD~");
  }
});
origin: gradle.plugin.org.shipkit/shipkit

  public void execute(final Exec t) {
    t.setDescription("Stashes current changes");
    t.commandLine("git", "stash");
    t.mustRunAfter(SOFT_RESET_COMMIT_TASK);
  }
});
origin: gradle.plugin.org.shipkit/shipkit

  public void execute(final Exec t) {
    t.setDescription("Deletes version tag '" + getTag(conf, project) + "'");
    t.commandLine("git", "tag", "-d", getTag(conf, project));
    t.mustRunAfter(performPush);
  }
});
origin: gradle.plugin.com.shopify.rocky/rocky-plugin

private Exec createExecuteModelsGeneratorTask(Project project, Task dependencyTask) {
  return project.getTasks().create("executeModelGeneratorScript", Exec.class, exec -> {
    exec.dependsOn(dependencyTask);
    exec.workingDir(createFileFromPath(generatorScriptDir.get()));
    exec.commandLine(createFileFromPath(generatorScriptFile.get())).setArgs(getScriptArguments());
    exec.execute();
  });
}
origin: gradle.plugin.org.shipkit/shipkit

  public void execute(final Exec t) {
    //Travis default clone is shallow which will prevent correct release notes generation for repos with lots of commits
    t.commandLine("git", "fetch", "--unshallow");
    t.setDescription("Ensures good chunk of recent commits is available for release notes automation. Runs: " + t.getCommandLine());
    t.setIgnoreExitValue(true);
    t.doLast(new Action<Task>() {
      public void execute(Task task) {
        if (t.getExecResult().getExitValue() != 0) {
          LOG.lifecycle("  Following git command failed and will be ignored:" +
              "\n    " + StringUtil.join(t.getCommandLine(), " ") +
              "\n  Most likely the repository already contains all history.");
        }
      }
    });
  }
});
origin: com.palantir.gradle.conjure/gradle-conjure

    + "generated from your Conjure definitions.");
task.setGroup(TASK_GROUP);
task.commandLine("python", "setup.py", "build", "--build-base", buildDir, "egg_info", "--egg-base",
    buildDir, "sdist", "--dist-dir", distDir, "bdist_wheel", "--universal", "--dist-dir",
    distDir);
origin: com.palantir.gradle.conjure/gradle-conjure

    task.commandLine("npm", "install", "--no-package-lock");
    task.workingDir(srcDirectory);
    task.dependsOn(compileConjureTypeScript);
    "Runs `npm tsc` to compile generated TypeScript files into JavaScript files.");
task.setGroup(TASK_GROUP);
task.commandLine("npm", "run-script", "build");
task.workingDir(srcDirectory);
task.dependsOn(installTypeScriptDependencies);
    + "generated from your Conjure definitions.");
task.setGroup(TASK_GROUP);
task.commandLine("npm", "publish");
task.workingDir(srcDirectory);
task.dependsOn(compileConjureTypeScript);
org.gradle.api.tasksExeccommandLine

Popular methods of Exec

  • dependsOn
  • exec
  • setDescription
  • doFirst
  • setCommandLine
  • setGroup
  • workingDir
  • configure
  • doLast
  • execute
  • getCommandLine
  • getInputs
  • getCommandLine,
  • getInputs,
  • getOutputs,
  • mustRunAfter,
  • setIgnoreExitValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now