net.sf.ant4eclipse.tools.csupport
Class ResolverUtils

java.lang.Object
  extended by net.sf.ant4eclipse.tools.csupport.ResolverUtils

public class ResolverUtils
extends java.lang.Object

Some utilitiy functions used for the resolving process in conjunction with C/C++ projects.


Method Summary
static ResolvedPathEntry[] resolveIncludePathes(EclipseProject project, boolean relative, boolean allowmultiple)
          Resolves the include pathes of a C/C++ project.
static ResolvedPathEntry[] resolveSourcePathes(EclipseProject project, boolean relative, boolean allowmultiple)
          Resolves the source pathes of a C/C++ project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolveIncludePathes

public static ResolvedPathEntry[] resolveIncludePathes(EclipseProject project,
                                                       boolean relative,
                                                       boolean allowmultiple)
                                                throws MultipleFolderException,
                                                       FileParserException
Resolves the include pathes of a C/C++ project.

Parameters:
project - The eclipse C/C++ project.
relative - Generate relative pathes.
allowmultiple - true <=> Multiple source folders are allowed.
Returns:
A list of resolved pathes. Not null.
Throws:
MultipleFolderException - There are more than one source folders but only a single one is allowed.
FileParserException - A project could not be read.

resolveSourcePathes

public static ResolvedPathEntry[] resolveSourcePathes(EclipseProject project,
                                                      boolean relative,
                                                      boolean allowmultiple)
                                               throws MultipleFolderException,
                                                      FileParserException
Resolves the source pathes of a C/C++ project.

Parameters:
project - The eclipse C/C++ project.
relative - Generate relative pathes.
allowmultiple - true <=> Multiple source folders are allowed.
Returns:
A list of resolved pathes. Not null.
Throws:
MultipleFolderException - There are more than one source folders but only a single one is allowed.
FileParserException - A project could not be read.