Package org.apache.maven.shared.release.util

Examples of org.apache.maven.shared.release.util.PomFinder


            workDir = System.getProperty( "user.dir" );
        }


        File pomFile = new File( workDir, pomFileName );
        PomFinder pomFinder = new PomFinder( getLogger() );
        boolean foundPom = false;

        if ( StringUtils.isEmpty( releaseDescriptor.getScmRelativePathProjectDirectory() ) )
        {
            foundPom = pomFinder.parsePom( pomFile );
        }

        File workDirectory;
        if ( simulate )
        {
            workDirectory = new File( releaseDescriptor.getWorkingDirectory() );
        }
        else
        {
            workDirectory = new File( releaseDescriptor.getCheckoutDirectory() );
        }

        if ( foundPom )
        {
            File matchingPom = pomFinder.findMatchingPom( workDirectory );
            if ( matchingPom != null )
            {
                getLogger().info( "Invoking perform goals in directory " + matchingPom.getParent() );
                // The directory of the POM in a flat project layout is not
                // the same directory as the SCM checkout directory!
View Full Code Here


        {
            pomFileName = "pom.xml";
        }

        File pomFile = new File( workDir, pomFileName );
        PomFinder pomFinder = new PomFinder( getLogger() );
        boolean foundPom = pomFinder.parsePom( pomFile );

        if ( foundPom )
        {
            File matchingPom = pomFinder.findMatchingPom( new File( releaseDescriptor.getCheckoutDirectory() ) );
            if ( matchingPom != null )
            {
                getLogger().info( "Invoking perform goals in directory " + matchingPom.getParent() );
                releaseDescriptor.setCheckoutDirectory( matchingPom.getParent() );
            }
View Full Code Here

        {
            pomFileName = "pom.xml";
        }

        File pomFile = new File( workDir, pomFileName );
        PomFinder pomFinder = new PomFinder( getLogger() );
        boolean foundPom = false;

        if ( StringUtils.isEmpty( releaseDescriptor.getScmRelativePathProjectDirectory() ) )
        {
            foundPom = pomFinder.parsePom( pomFile );
        }

        File workDirectory;
        if ( simulate )
        {
            workDirectory = new File( releaseDescriptor.getWorkingDirectory() );
        }
        else
        {
            workDirectory = new File( releaseDescriptor.getCheckoutDirectory() );
        }

        if ( foundPom )
        {
            File matchingPom = pomFinder.findMatchingPom( workDirectory );
            if ( matchingPom != null )
            {
                getLogger().info( "Invoking perform goals in directory " + matchingPom.getParent() );
                // The directory of the POM in a flat project layout is not
                // the same directory as the SCM checkout directory!
View Full Code Here

            workDir = System.getProperty( "user.dir" );
        }


        File pomFile = new File( workDir, pomFileName );
        PomFinder pomFinder = new PomFinder( getLogger() );
        boolean foundPom = false;

        if ( StringUtils.isEmpty( releaseDescriptor.getScmRelativePathProjectDirectory() ) )
        {
            foundPom = pomFinder.parsePom( pomFile );
        }

        File workDirectory;
        if ( simulate )
        {
            workDirectory = new File( releaseDescriptor.getWorkingDirectory() );
        }
        else
        {
            workDirectory = new File( releaseDescriptor.getCheckoutDirectory() );
        }

        if ( foundPom )
        {
            File matchingPom = pomFinder.findMatchingPom( workDirectory );
            if ( matchingPom != null )
            {
                getLogger().info( "Invoking perform goals in directory " + matchingPom.getParent() );
                // The directory of the POM in a flat project layout is not
                // the same directory as the SCM checkout directory!
View Full Code Here

TOP

Related Classes of org.apache.maven.shared.release.util.PomFinder

Copyright © 2018 www.massapicom. 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.