Class Main


  • public final class Main
    extends java.lang.Object
    Class used to launch ivy as a standalone tool.

    Valid arguments can be obtained with the -? argument.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static ResolveReport run​(java.lang.String[] args)
      A method that allows to run embedded Ivy as if it were launched from CLI (e.g., for use with REPL in Java 9+).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • run

        public static ResolveReport run​(java.lang.String[] args)
                                 throws java.lang.Exception
        A method that allows to run embedded Ivy as if it were launched from CLI (e.g., for use with REPL in Java 9+).
        Parameters:
        args - an array of command line arguments
        Returns:
        null if asked for usage or version, or if anything fails during resolve, publish or launch; a ResolveReport on success
        Throws:
        java.lang.Exception - if something goes wrong