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

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

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

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.");
        }
      }
    });
  }
});
org.gradle.api.tasksExecsetIgnoreExitValue

Popular methods of Exec

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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