1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Workaround to get DependencyTests working on integration builds.

This commit is contained in:
Bogdan Gheorghe 2004-03-09 16:15:27 +00:00
parent 4beaf02d94
commit fe5032ad4a
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2004-03-09 Bogdan Gheorghe
Workaround to get DependencyTests working on integration builds.
2004-03-03 John Camelon
Updated tests to deal with IASTUsingDeclaration interface changes.

View file

@ -10,6 +10,8 @@ import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
@ -583,11 +585,16 @@ import org.eclipse.core.runtime.Platform;
private String[] convertToLocalPath(String[] model) {
IPath defaultPath = new Path("");//Platform.getInstanceLocation();
IPath defaultPath = Platform.getLocation();
String pathString = defaultPath.toOSString();
if (pathString.charAt(pathString.length() - 1) == '\\')
{
pathString = pathString.substring(0, pathString.length() - 1);
}
String[] tempLocalArray = new String[model.length];
for (int i=0;i<model.length;i++){
StringBuffer buffer = new StringBuffer();
buffer.append(defaultPath.toOSString());
buffer.append(pathString);
buffer.append(model[i]);
tempLocalArray[i]=buffer.toString();
}