|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.dotnet.executable.impl.CompilerContextImpl
public final class CompilerContextImpl
Provides an implementation of the Compiler Context.
Field Summary |
---|
Fields inherited from interface org.apache.maven.dotnet.executable.compiler.CompilerContext |
---|
ROLE |
Constructor Summary | |
---|---|
CompilerContextImpl()
|
Method Summary | |
---|---|
void |
enableLogging(org.codehaus.plexus.logging.Logger logger)
|
Repository |
find(java.lang.String repositoryName)
This method is used to obtain an instance of a Repository specified within the registry-config.xml file. |
java.io.File |
getArtifact()
This method will return a File where File.isExist() returns false, if NetCompile.compile has not been invoked. |
CommandFilter |
getCommandFilter()
Creates a command filter. |
CompilerCapability |
getCompilerCapability()
Return the CompilerCapability associated with this context. |
CompilerExecutable |
getCompilerExecutable()
Returns an instance of the NetExecutable appropriate for given language/vendor/OS. |
CompilerRequirement |
getCompilerRequirement()
Requirements used to match the compiler plugin associated with this context. |
java.util.List<java.lang.String> |
getCoreAssemblyNames()
Returns assembly names that should be referenced by the compiler. |
java.util.List<org.apache.maven.artifact.Artifact> |
getDirectModuleDependencies()
Returns a list of module (netmodule) dependencies that exist directly within the invoking projects pom (no transitive module dependencies). |
java.util.List<java.io.File> |
getEmbeddedResources()
Returns a list of resources that the compiler should embed in the compiled assembly. |
KeyInfo |
getKeyInfo()
|
java.util.List<org.apache.maven.artifact.Artifact> |
getLibraryDependencies()
Returns a list of library (dll) dependencies of the class files. |
java.util.List<java.io.File> |
getLinkedResources()
Returns a list of resources that the compiler should link to the compiled assembly |
org.codehaus.plexus.logging.Logger |
getLogger()
Returns Maven Plexus logger: Log . |
java.util.List<org.apache.maven.artifact.Artifact> |
getModuleDependencies()
Returns a list of module (netmodule) dependencies of the class files. |
CompilerConfig |
getNetCompilerConfig()
Returns the user provided configuration associated to this context. |
java.lang.String |
getSourceDirectoryName()
Returns the source directory (or test source directory) path of the class files. |
java.io.File |
getTargetDirectory()
|
java.io.File |
getWin32Icon()
Returns the icon that the assembly should display when viewed. |
java.util.List<java.io.File> |
getWin32Resources()
Returns a list of win32 resources. |
void |
init(CompilerRequirement compilerRequirement,
CompilerConfig config,
org.apache.maven.project.MavenProject project,
CapabilityMatcher capabilityMatcher)
Initializes the context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompilerContextImpl()
Method Detail |
---|
public java.util.List<java.io.File> getLinkedResources()
CompilerContext
getLinkedResources
in interface CompilerContext
public java.util.List<java.io.File> getEmbeddedResources()
CompilerContext
getEmbeddedResources
in interface CompilerContext
public java.io.File getWin32Icon()
CompilerContext
getWin32Icon
in interface CompilerContext
public java.util.List<java.io.File> getWin32Resources()
CompilerContext
getWin32Resources
in interface CompilerContext
public void enableLogging(org.codehaus.plexus.logging.Logger logger)
enableLogging
in interface org.codehaus.plexus.logging.LogEnabled
public CompilerRequirement getCompilerRequirement()
CompilerContext
getCompilerRequirement
in interface CompilerContext
public java.util.List<java.lang.String> getCoreAssemblyNames()
CompilerContext
getCoreAssemblyNames
in interface CompilerContext
public java.util.List<org.apache.maven.artifact.Artifact> getModuleDependencies()
CompilerContext
getModuleDependencies
in interface CompilerContext
public java.util.List<org.apache.maven.artifact.Artifact> getDirectModuleDependencies()
CompilerContext
getDirectModuleDependencies
in interface CompilerContext
public KeyInfo getKeyInfo()
getKeyInfo
in interface CompilerContext
public java.util.List<org.apache.maven.artifact.Artifact> getLibraryDependencies()
CompilerContext
getLibraryDependencies
in interface CompilerContext
public org.codehaus.plexus.logging.Logger getLogger()
NMavenContext
Log
.
getLogger
in interface NMavenContext
public CompilerConfig getNetCompilerConfig()
CompilerContext
getNetCompilerConfig
in interface CompilerContext
public CompilerCapability getCompilerCapability()
CompilerContext
CompilerCapability
associated with this context.
getCompilerCapability
in interface CompilerContext
CompilerCapability
associated with this context.public java.lang.String getSourceDirectoryName()
CompilerContext
getSourceDirectoryName
in interface CompilerContext
public java.io.File getTargetDirectory()
getTargetDirectory
in interface CompilerContext
public java.io.File getArtifact() throws InvalidArtifactException
getArtifact
in interface CompilerContext
InvalidArtifactException
public CompilerExecutable getCompilerExecutable() throws ExecutionException
CompilerContext
getCompilerExecutable
in interface CompilerContext
ExecutionException
- if there is a problem finding an appropriate executable.public CommandFilter getCommandFilter()
CompilerContext
getCommandFilter
in interface CompilerContext
public Repository find(java.lang.String repositoryName) throws RepositoryNotFoundException
NMavenContext
Repository
specified within the registry-config.xml file.
This method allows the application developer to create configuration files and have them accessible through the
NMaven Context. For more information on how the registry/repository works, go to
http://jvending.sourceforge.net/registry-cdc/
find
in interface NMavenContext
repositoryName
- the name of the repository. This name should match the /RepositoryNotFoundException
- if repository is not found.public void init(CompilerRequirement compilerRequirement, CompilerConfig config, org.apache.maven.project.MavenProject project, CapabilityMatcher capabilityMatcher) throws PlatformUnsupportedException
CompilerContext
init
in interface CompilerContext
PlatformUnsupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |