* Fill in the working directory with the project files and
* creates a compiler instance for this project
*/
- public void initialiseProject(String projectName) {
+ public void initialiseProject(String projectName) throws IOException {
File projectSrc=new File(testdataSrcDir + File.separatorChar + projectName);
File destination=new File(getWorkingDir(),projectName);
if (!destination.exists()) {destination.mkdir();}
copy(projectSrc,destination);
- projectDir = destination.getAbsolutePath();
+ projectDir = destination.getCanonicalPath();//getAbsolutePath();
compiler = new AjCompiler(
projectDir,
package org.aspectj.ajde.core.tests;
import java.io.File;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
assertTrue( "XserializableAspects", buildConfig.isXserializableAspects() );
}
- public void testProjectSourceFiles() {
+ public void testProjectSourceFiles() throws IOException {
String f = getAbsoluteProjectDir() + File.separator + "C.java";
List files = new ArrayList();
files.add(f);
compilerConfig.setProjectSourceFiles(files);
AjBuildConfig buildConfig = genAjBuildConfig();
- String found = ((File)buildConfig.getFiles().get(0)).getAbsolutePath();
+ String found = ((File)buildConfig.getFiles().get(0)).getCanonicalPath();//AbsolutePath();
assertEquals("expected source file " + f + ", but found " +
found, f, found);
}