1 /* *******************************************************************
2 * Copyright (c) 2006 Contributors.
4 * This program and the accompanying materials are made available
5 * under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution and is available at
7 * http://eclipse.org/legal/epl-v10.html
10 * Adrian Colyer Initial implementation
11 * ******************************************************************/
12 package org.aspectj.ajdt.internal.compiler;
17 * acts as a bridge from ajde's OutputLocationManager interface to the compiler internals
21 public interface CompilationResultDestinationManager {
24 * Return the directory root under which the results of compiling the given
25 * source file. For example, if the source file contains the type a.b.C, and
26 * this method returns "target/classes" the resulting class file will be written
27 * to "target/classes/a/b/C.class"
29 * @param compilationUnit the compilation unit that has been
31 * @return a File object representing the root directory under which compilation results for this
32 * unit should be written
34 File getOutputLocationForClass(File compilationUnit);
37 * When copying resources from source folders to output location, return the
38 * root directory under which the resource should be copied.
40 * @param resource the resource to be copied
41 * @return a File object representing the root directory under which this resource
44 File getOutputLocationForResource(File resource);