Examples of IncludePath


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

Examples of com.github.maven_nar.IncludePath

        }

        // 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

Examples of com.github.maven_nar.IncludePath

    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

Examples of com.github.maven_nar.cpptasks.types.IncludePath

            throw new java.lang.IllegalStateException("project must be set");
        }
        if (isReference()) {
            throw noChildrenAllowed();
        }
        IncludePath path = new IncludePath(p);
        includePaths.addElement(path);
        return path;
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.types.IncludePath

   */
  public void testExtendsIncludePath() {
    CompilerDef baseCompiler = new CompilerDef();
    CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef(
        baseCompiler);
    IncludePath path = baseCompiler.createIncludePath();
    path.setPath("/tmp");
    String[] preArgs = getPreArguments(extendedCompiler);
    // BEGINFREEHEP, passes extra option
    assertEquals(3, preArgs.length);
    assertEquals("-I", preArgs[2].substring(0, 2));
    // ENDFREEHEP
View Full Code Here

Examples of com.github.maven_nar.cpptasks.types.IncludePath

   */
  public void testExtendsIncludePath() {
    CompilerDef baseCompiler = new CompilerDef();
    CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef(
        baseCompiler);
    IncludePath path = baseCompiler.createIncludePath();
    path.setPath("/tmp");
    String[] preArgs = getPreArguments(extendedCompiler);
    // BEGINFREEHEP, passes extra option
    assertEquals(3, preArgs.length);
    assertEquals("-I", preArgs[2].substring(0, 2));
    // ENDFREEHEP
View Full Code Here

Examples of com.github.maven_nar.cpptasks.types.IncludePath

            throw new java.lang.IllegalStateException("project must be set");
        }
        if (isReference()) {
            throw noChildrenAllowed();
        }
        IncludePath path = new IncludePath(p);
        includePaths.addElement(path);
        return path;
    }
View Full Code Here

Examples of net.sf.antcontrib.cpptasks.types.IncludePath

            throw new java.lang.IllegalStateException("project must be set");
        }
        if (isReference()) {
            throw noChildrenAllowed();
        }
        IncludePath path = new IncludePath(p);
        includePaths.addElement(path);
        return path;
    }
View Full Code Here

Examples of org.eclipse.php.internal.core.includepath.IncludePath

  public IProject getCurrProject() {
    return getProject();
  }

  protected IncludePath[] setProjectBaseIncludepath() {
    return new IncludePath[] { new IncludePath(getProject(), getProject()) };
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.includepath.IncludePath

    IncludePathManager manager = IncludePathManager.getInstance();
    IncludePath[] includePath = manager.getIncludePaths(project);
    int count = includePath.length;
    System.arraycopy(includePath, 0,
        includePath = new IncludePath[count + 1], 0, count);
    includePath[count] = new IncludePath(folder, project);

    setIncludePath(manager, includePath);
    includePath = manager.getIncludePaths(project);

    Assert.assertTrue(includePath.length == 1);
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.