* unit should be written
*/
File getOutputLocationForClass(File compilationUnit);
+
+ /**
+ * For environments where multiple source folders are supported, they need to be included
+ * in the model. This method allows AspectJ to determine which source folder a source file
+ * came from. Example return values would be "src" or "main/java"
+ *
+ * @param sourceFile the File object for the source file
+ * @return the source folder where this file came from, or null if in project root or source folders not supported.
+ */
+ String getSourceFolderForFile(File sourceFile);
/**
* When copying resources from source folders to output location, return the
* where classes which are on the inpath will be placed.
*/
File getDefaultOutputLocation();
+
}
public File getOutputLocationForClass(File compilationUnit) {
return this.locationManager.getOutputLocationForClass(compilationUnit);
}
+
+ public String getSourceFolderForFile(File sourceFile) {
+ return this.locationManager.getSourceFolderForFile(sourceFile);
+ }
public File getOutputLocationForResource(File resource) {
return this.locationManager.getOutputLocationForResource(resource);