org.ow2.jonas.eclipse.compiler
Class CompilationContext
java.lang.Object
org.ow2.jonas.eclipse.compiler.CompilationContext
public class CompilationContext
- extends Object
The CompilationContext
defines all the options needed by the eclipse compiler.
- Author:
- Guillaume Sauthier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompilationContext
public CompilationContext()
getSourceDirectory
public File getSourceDirectory()
- Returns:
- the sourceDirectory
setSourceDirectory
public void setSourceDirectory(File sourceDirectory)
- Parameters:
sourceDirectory
- the sourceDirectory to set
getOutputDirectory
public File getOutputDirectory()
- Returns:
- the outputDirectory
setOutputDirectory
public void setOutputDirectory(File outputDirectory)
- Parameters:
outputDirectory
- the outputDirectory to set
getSources
public List<String> getSources()
- Returns:
- the sources
setSources
public void setSources(List<String> sources)
- Parameters:
sources
- the sources to set
getEncoding
public String getEncoding()
- Returns:
- the encoding
setEncoding
public void setEncoding(String encoding)
- Parameters:
encoding
- the encoding to set
getContextualClassLoader
public ClassLoader getContextualClassLoader()
- Returns:
- the contextualClassLoader
setContextualClassLoader
public void setContextualClassLoader(ClassLoader contextualClassLoader)
- Parameters:
contextualClassLoader
- the contextualClassLoader to set
getCompilerOptions
public org.eclipse.jdt.internal.compiler.impl.CompilerOptions getCompilerOptions()
- Returns:
- the compilerOptions
setCompilerOptions
public void setCompilerOptions(org.eclipse.jdt.internal.compiler.impl.CompilerOptions compilerOptions)
- Parameters:
compilerOptions
- the compilerOptions to set
getAbsolutePath
public String getAbsolutePath(String filename)
- Parameters:
filename
- relative path.
- Returns:
- the absolute path to the file.
Copyright © 2010 OW2 Consortium. All Rights Reserved.