Examples of findTool()


Examples of org.apache.maven.toolchain.Toolchain.findTool()

            // we should probably also test for isFile and canExecute, but the second one is only
            // available in SDK 6.
            if ( tc != null )
            {
                getLog().info( "Toolchain in exec-maven-plugin: " + tc );
                exec = tc.findTool( executable );
            }
            else
            {
                if ( OS.isFamilyWindows() )
                {
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

            {
                getLog().warn( "Toolchains are ignored, 'executable' parameter is set to " + jvm );
            }
            else
            {
                jvm = tc.findTool( "java" ); // NOI18N
            }
        }

        if ( additionalClasspathElements != null )
        {
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

        String javah = null;

        // try toolchain
        Toolchain toolchain = getToolchain();
        if (toolchain != null) {
            javah = toolchain.findTool( "javah" );
        }

        // try java home
        if (javah == null) {
            File javahFile = new File( mojo.getJavaHome( mojo.getAOL() ), "bin" );
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

            }
            else
            {
                fork = true;
                //TODO somehow shaky dependency between compilerId and tool executable.
                executable = tc.findTool( compilerId );
            }
        }
        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

            {
                getLog().warn( "Toolchains are ignored, 'javadocExecutable' parameter is set to " + javadocExecutable );
            }
            else
            {
                javadocExecutable = tc.findTool( "javadoc" );
            }
        }

        String javadocCommand = "javadoc" + ( SystemUtils.IS_OS_WINDOWS ? ".exe" : "" );
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

        Toolchain tc = toolchainManager.getToolchainFromBuildContext("jdk", //NOI18N
                session);

        if (tc != null) {
            getLog().info("Toolchain used in lazytest-maven-plugin: " + tc);
            String foundExecutable = tc.findTool("java");
            if (foundExecutable != null) {
                return foundExecutable;
            } else {
                throw new MojoExecutionException("Failed to find 'java' executable for toolchain: " + tc);
            }
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

            }
            if ( jvm  != null )
            {
                getLog().warn("Toolchains are ignored, 'executable' parameter is set to " + jvm);
            } else {
                jvm = tc.findTool("java"); //NOI18N
            }
        }
       
        if ( additionalClasspathElements != null )
        {
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

            }
            else
            {
                fork = true;
                //TODO somehow shaky dependency between compilerId and tool executable.
                executable = tc.findTool( compilerId );
            }
        }
        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

                               "Toolchains are ignored, 'javadocExecutable' parameter is set to "
                                   + javadocExecutable );
            }
            else
            {
                javadocExecutable = tc.findTool( "javadoc" );
            }
        }

        String javadocCommand = "javadoc" + ( SystemUtils.IS_OS_WINDOWS ? ".exe" : "" );
View Full Code Here

Examples of org.apache.maven.toolchain.Toolchain.findTool()

    Toolchain tc = toolchainManager.getToolchainFromBuildContext("jdk", //NOI18N
                                                                 session);
    if (tc != null) {
      getLog().info("Toolchain in clojure-maven-plugin: " + tc);
      String foundExecutable = tc.findTool("java");
      if (foundExecutable != null) {
        return foundExecutable;
      } else {
        throw new MojoExecutionException("Unable to find 'java' executable for toolchain: " + tc);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.