Schnittstelle CompilationResultDestinationManager
- Alle bekannten Implementierungsklassen:
OutputLocationAdapter
public interface CompilationResultDestinationManager
acts as a bridge from ajde's OutputLocationManager interface to the compiler internals
- Autor:
- adrian
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final int
static final int
static final int
static final int
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
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).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.
-
Felddetails
-
FILETYPE_UNKNOWN
static final int FILETYPE_UNKNOWN- Siehe auch:
-
FILETYPE_CLASS
static final int FILETYPE_CLASS- Siehe auch:
-
FILETYPE_OUTJAR
static final int FILETYPE_OUTJAR- Siehe auch:
-
FILETYPE_RESOURCE
static final int FILETYPE_RESOURCE- Siehe auch:
-
-
Methodendetails
-
getOutputLocationForClass
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"- Parameter:
compilationUnit
- the compilation unit that has been compiled- Gibt zurück:
- a File object representing the root directory under which compilation results for this unit should be written
-
getSourceFolderForFile
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'- Parameter:
sourceFile
- the file for which the source folder should be determined- Gibt zurück:
- the source folder
-
getOutputLocationForResource
When copying resources from source folders to output location, return the root directory under which the resource should be copied.- Parameter:
resource
- the resource to be copied- Gibt zurück:
- a File object representing the root directory under which this resource should be copied
-
getAllOutputLocations
List getAllOutputLocations()Return a list of all output locations handled by this OutputLocationManager -
getDefaultOutputLocation
File getDefaultOutputLocation()Return the default output location (for example, <my_project>/bin). This is where classes which are on the inpath will be placed. -
reportFileWrite
Report that a class file is being written to the specified location.- Parameter:
outputfile
- the output file (including .class suffix)
-
reportFileRemove
Report that a class file is being deleted from the specified location.- Parameter:
outputfile
- the output file (including .class suffix)
-
getInpathMap
Map getInpathMap() -
discoverChangesSince
-