Package org.aspectj.ajde.core.internal
Class OutputLocationAdapter
java.lang.Object
org.aspectj.ajde.core.internal.OutputLocationAdapter
- All Implemented Interfaces:
CompilationResultDestinationManager
Enables the output locations detailed by the IOutputLocationManager implementation to be related to the comipler/weaver.
-
Field Summary
Fields inherited from interface org.aspectj.ajdt.internal.compiler.CompilationResultDestinationManager
FILETYPE_CLASS, FILETYPE_OUTJAR, FILETYPE_RESOURCE, FILETYPE_UNKNOWN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
discoverChangesSince
(File dir, long buildtime) Return a list of all output locations handled by this OutputLocationManagerReturn the default output location (for example, <my_project>/bin).Return a map from fully qualified jar/dir entries to handle components.getOutputLocationForClass
(File compilationUnit) Return the directory root under which the results of compiling the given source file.getOutputLocationForResource
(File resource) When copying resources from source folders to output location, return the root directory under which the resource should be copied.getSourceFolderForFile
(File sourceFile) Return the source folder where this source file came from, relative to the project root.void
reportFileRemove
(String outputfile, int filetype) Report that a class file is being deleted from the specified location.void
reportFileWrite
(String outputfile, int filetype) Report that a class file is being written to the specified location.
-
Constructor Details
-
OutputLocationAdapter
-
-
Method Details
-
getOutputLocationForClass
Description copied from interface:CompilationResultDestinationManager
Return the directory root under which the results of compiling the given source file. For example, if the source file contains the type a.b.C, and this method returns "target/classes" the resulting class file will be written to "target/classes/a/b/C.class"- Specified by:
getOutputLocationForClass
in interfaceCompilationResultDestinationManager
- Parameters:
compilationUnit
- the compilation unit that has been compiled- Returns:
- a File object representing the root directory under which compilation results for this unit should be written
-
getSourceFolderForFile
Description copied from interface:CompilationResultDestinationManager
Return the source folder where this source file came from, relative to the project root. For example 'src' or 'src/main/java' or 'src/test/java'- Specified by:
getSourceFolderForFile
in interfaceCompilationResultDestinationManager
- Parameters:
sourceFile
- the file for which the source folder should be determined- Returns:
- the source folder
-
getOutputLocationForResource
Description copied from interface:CompilationResultDestinationManager
When copying resources from source folders to output location, return the root directory under which the resource should be copied.- Specified by:
getOutputLocationForResource
in interfaceCompilationResultDestinationManager
- Parameters:
resource
- the resource to be copied- Returns:
- a File object representing the root directory under which this resource should be copied
-
getAllOutputLocations
Description copied from interface:CompilationResultDestinationManager
Return a list of all output locations handled by this OutputLocationManager- Specified by:
getAllOutputLocations
in interfaceCompilationResultDestinationManager
-
getDefaultOutputLocation
Description copied from interface:CompilationResultDestinationManager
Return the default output location (for example, <my_project>/bin). This is where classes which are on the inpath will be placed.- Specified by:
getDefaultOutputLocation
in interfaceCompilationResultDestinationManager
-
reportFileWrite
Description copied from interface:CompilationResultDestinationManager
Report that a class file is being written to the specified location.- Specified by:
reportFileWrite
in interfaceCompilationResultDestinationManager
- Parameters:
outputfile
- the output file (including .class suffix)
-
reportFileRemove
Description copied from interface:CompilationResultDestinationManager
Report that a class file is being deleted from the specified location.- Specified by:
reportFileRemove
in interfaceCompilationResultDestinationManager
- Parameters:
outputfile
- the output file (including .class suffix)
-
discoverChangesSince
- Specified by:
discoverChangesSince
in interfaceCompilationResultDestinationManager
-
getInpathMap
Return a map from fully qualified jar/dir entries to handle components.- Specified by:
getInpathMap
in interfaceCompilationResultDestinationManager
- Returns:
- a map from inpath entries (jars/dirs) to handle components.
-