Class JavaMainCallerInProcess

    • Field Detail

      • _cl

        private java.lang.ClassLoader _cl
    • Constructor Detail

      • JavaMainCallerInProcess

        public JavaMainCallerInProcess​(org.apache.maven.plugin.AbstractMojo requester,
                                       java.lang.String mainClassName,
                                       java.lang.String classpath,
                                       java.lang.String[] jvmArgs,
                                       java.lang.String[] args)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • run

        public boolean run​(boolean displayCmd,
                           boolean throwFailure)
                    throws java.lang.Exception
        Description copied from interface: JavaMainCaller
        Runs the JavaMain with all the built up arguments/options
        Throws:
        java.lang.Exception
      • spawn

        public SpawnMonitor spawn​(boolean displayCmd)
                           throws java.lang.Exception
        spawns a thread to run the method
        Returns:
        the spawn Process (or null if no process was spawned)
        Throws:
        java.lang.Exception
      • runInternal

        private void runInternal​(boolean displayCmd)
                          throws java.lang.Exception
        Runs the main method of a java class
        Throws:
        java.lang.Exception
      • redirectToLog

        public void redirectToLog()
        Description copied from interface: JavaMainCaller
        request run to be redirected to maven/requester logger