public class OutputLocationAdapter extends java.lang.Object implements CompilationResultDestinationManager
FILETYPE_CLASS, FILETYPE_OUTJAR, FILETYPE_RESOURCE, FILETYPE_UNKNOWN| Constructor and Description |
|---|
OutputLocationAdapter(IOutputLocationManager mgr) |
| Modifier and Type | Method and Description |
|---|---|
int |
discoverChangesSince(java.io.File dir,
long buildtime) |
java.util.List<java.io.File> |
getAllOutputLocations()
Return a list of all output locations handled by this OutputLocationManager
|
java.io.File |
getDefaultOutputLocation()
Return the default output location (for example,
|
java.util.Map<java.io.File,java.lang.String> |
getInpathMap()
Return a map from fully qualified jar/dir entries to handle components.
|
java.io.File |
getOutputLocationForClass(java.io.File compilationUnit)
Return the directory root under which the results of compiling the given source file.
|
java.io.File |
getOutputLocationForResource(java.io.File resource)
When copying resources from source folders to output location, return the root directory under which the resource should be
copied.
|
java.lang.String |
getSourceFolderForFile(java.io.File sourceFile)
Return the source folder where this source file came from, relative to the project root.
|
void |
reportFileRemove(java.lang.String outputfile,
int filetype)
Report that a class file is being deleted from the specified location.
|
void |
reportFileWrite(java.lang.String outputfile,
int filetype)
Report that a class file is being written to the specified location.
|
public OutputLocationAdapter(IOutputLocationManager mgr)
public java.io.File getOutputLocationForClass(java.io.File compilationUnit)
CompilationResultDestinationManagergetOutputLocationForClass in interface CompilationResultDestinationManagercompilationUnit - the compilation unit that has been compiledpublic java.lang.String getSourceFolderForFile(java.io.File sourceFile)
CompilationResultDestinationManagergetSourceFolderForFile in interface CompilationResultDestinationManagersourceFile - the file for which the source folder should be determinedpublic java.io.File getOutputLocationForResource(java.io.File resource)
CompilationResultDestinationManagergetOutputLocationForResource in interface CompilationResultDestinationManagerresource - the resource to be copiedpublic java.util.List<java.io.File> getAllOutputLocations()
CompilationResultDestinationManagergetAllOutputLocations in interface CompilationResultDestinationManagerpublic java.io.File getDefaultOutputLocation()
CompilationResultDestinationManagergetDefaultOutputLocation in interface CompilationResultDestinationManagerpublic void reportFileWrite(java.lang.String outputfile,
int filetype)
CompilationResultDestinationManagerreportFileWrite in interface CompilationResultDestinationManageroutputfile - the output file (including .class suffix)public void reportFileRemove(java.lang.String outputfile,
int filetype)
CompilationResultDestinationManagerreportFileRemove in interface CompilationResultDestinationManageroutputfile - the output file (including .class suffix)public int discoverChangesSince(java.io.File dir,
long buildtime)
discoverChangesSince in interface CompilationResultDestinationManagerpublic java.util.Map<java.io.File,java.lang.String> getInpathMap()
getInpathMap in interface CompilationResultDestinationManager