Class JavaMainCallerByFork

    • Constructor Detail

      • JavaMainCallerByFork

        public JavaMainCallerByFork​(org.apache.maven.plugin.AbstractMojo requester1,
                                    String mainClassName1,
                                    String classpath,
                                    String[] jvmArgs1,
                                    String[] args1,
                                    boolean forceUseArgFile,
                                    org.apache.maven.toolchain.Toolchain toolchain)
                             throws Exception
        Throws:
        Exception
    • Method Detail

      • run

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

        public SpawnMonitor spawn​(boolean displayCmd)
                           throws Exception
        Description copied from interface: JavaMainCaller
        run the command without stream redirection nor waiting for exit
        Returns:
        the spawn Process (or null if no process was spawned)
        Throws:
        Exception
      • redirectToLog

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