Package com.github.maven_nar

Examples of com.github.maven_nar.IncludePath


        for ( Iterator<File> i = getSourceDirectories( type ).iterator(); i.hasNext(); )
        {
            //VR 20100318 only add include directories that exist - we now fail the build fast if an include directory does not exist
            File file = new File( (File) i.next(), "include" );
            if ( file.isDirectory() ) {
                IncludePath includePath = new IncludePath();
                includePath.setPath( file.getPath() );
                includeList.add( includePath );
            }
        }
        return includeList;
    }
View Full Code Here


        }

        // add include path
        for ( Iterator<IncludePath> i = getIncludePaths( type ).iterator(); i.hasNext(); )
        {
            IncludePath includePath = i.next();
            // Darren Sargent, 30Jan2008 - fail build if invalid include path(s) specified.
                        if ( ! includePath.exists() ) {
                                throw new MojoFailureException("NAR: Include path not found: " + includePath);
                        }
            compiler.createIncludePath().setPath( includePath.getPath() );
        }

        // add system include path (at the end)
        if ( systemIncludePaths != null )
        {
View Full Code Here

    public final void copyIncludeFiles( MavenProject mavenProject, File targetDirectory )
        throws IOException
    {
        for ( Iterator<IncludePath> i = getIncludePaths( "dummy" ).iterator(); i.hasNext(); )
        {
                IncludePath includePath = i.next();
            if ( includePath.exists() )
            {
                NarUtil.copyDirectoryStructure( includePath.getFile(), targetDirectory, includePath.getIncludes(), NarUtil.DEFAULT_EXCLUDES );
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.github.maven_nar.IncludePath

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.