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:
parent
4beaf02d94
commit
fe5032ad4a
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
2004-03-09 Bogdan Gheorghe
|
||||||
|
Workaround to get DependencyTests working on integration builds.
|
||||||
|
|
||||||
2004-03-03 John Camelon
|
2004-03-03 John Camelon
|
||||||
Updated tests to deal with IASTUsingDeclaration interface changes.
|
Updated tests to deal with IASTUsingDeclaration interface changes.
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@ import java.io.FileNotFoundException;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.net.MalformedURLException;
|
||||||
|
import java.net.URL;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
@ -583,11 +585,16 @@ import org.eclipse.core.runtime.Platform;
|
||||||
|
|
||||||
|
|
||||||
private String[] convertToLocalPath(String[] model) {
|
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];
|
String[] tempLocalArray = new String[model.length];
|
||||||
for (int i=0;i<model.length;i++){
|
for (int i=0;i<model.length;i++){
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
buffer.append(defaultPath.toOSString());
|
buffer.append(pathString);
|
||||||
buffer.append(model[i]);
|
buffer.append(model[i]);
|
||||||
tempLocalArray[i]=buffer.toString();
|
tempLocalArray[i]=buffer.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue