public abstract class AbstractEclipseBuildContext extends java.lang.Object implements org.sonatype.plexus.build.incremental.BuildContext, IIncrementalBuildFramework.BuildContext
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
context |
private IIncrementalBuildFramework.BuildResultCollector |
results |
Modifier | Constructor and Description |
---|---|
protected |
AbstractEclipseBuildContext(java.util.Map<java.lang.String,java.lang.Object> context,
IIncrementalBuildFramework.BuildResultCollector results) |
Modifier and Type | Method and Description |
---|---|
void |
addError(java.io.File file,
int line,
int column,
java.lang.String message,
java.lang.Throwable cause)
Deprecated.
Use addMessage instead
|
void |
addMessage(java.io.File file,
int line,
int column,
java.lang.String message,
int severity,
java.lang.Throwable cause) |
void |
addWarning(java.io.File file,
int line,
int column,
java.lang.String message,
java.lang.Throwable cause)
Deprecated.
Use addMessage instead
|
protected abstract org.eclipse.core.resources.IResource |
getBaseResource() |
java.util.Set<java.io.File> |
getFiles()
Deprecated.
BuildContext consumers should not care which files were modified during a build.
|
protected org.eclipse.core.runtime.IPath |
getRelativePath(java.io.File file)
Returns path relative to delta resource location.
|
protected org.eclipse.core.resources.IResource |
getResource(java.io.File file) |
java.lang.Object |
getValue(java.lang.String key) |
boolean |
isUptodate(java.io.File target,
java.io.File source) |
java.io.OutputStream |
newFileOutputStream(java.io.File file) |
void |
refresh(java.io.File file) |
void |
release() |
void |
removeMessages(java.io.File file) |
void |
setValue(java.lang.String key,
java.lang.Object value) |
protected final java.util.Map<java.lang.String,java.lang.Object> context
private final IIncrementalBuildFramework.BuildResultCollector results
protected AbstractEclipseBuildContext(java.util.Map<java.lang.String,java.lang.Object> context, IIncrementalBuildFramework.BuildResultCollector results)
public void refresh(java.io.File file)
refresh
in interface org.sonatype.plexus.build.incremental.BuildContext
public java.io.OutputStream newFileOutputStream(java.io.File file) throws java.io.IOException
newFileOutputStream
in interface org.sonatype.plexus.build.incremental.BuildContext
java.io.IOException
protected org.eclipse.core.runtime.IPath getRelativePath(java.io.File file)
protected org.eclipse.core.resources.IResource getResource(java.io.File file)
protected abstract org.eclipse.core.resources.IResource getBaseResource()
public void setValue(java.lang.String key, java.lang.Object value)
setValue
in interface org.sonatype.plexus.build.incremental.BuildContext
public java.lang.Object getValue(java.lang.String key)
getValue
in interface org.sonatype.plexus.build.incremental.BuildContext
public void addError(java.io.File file, int line, int column, java.lang.String message, java.lang.Throwable cause)
addError
in interface org.sonatype.plexus.build.incremental.BuildContext
public void addWarning(java.io.File file, int line, int column, java.lang.String message, java.lang.Throwable cause)
addWarning
in interface org.sonatype.plexus.build.incremental.BuildContext
public void addMessage(java.io.File file, int line, int column, java.lang.String message, int severity, java.lang.Throwable cause)
addMessage
in interface org.sonatype.plexus.build.incremental.BuildContext
public void removeMessages(java.io.File file)
removeMessages
in interface org.sonatype.plexus.build.incremental.BuildContext
public boolean isUptodate(java.io.File target, java.io.File source)
isUptodate
in interface org.sonatype.plexus.build.incremental.BuildContext
public void release()
release
in interface IIncrementalBuildFramework.BuildContext
@Deprecated public java.util.Set<java.io.File> getFiles()