import_fix.patch
| new/src/com/goldencode/artifacts/BaseArtifact.java 2026-07-31 07:15:11 +0000 | ||
|---|---|---|
| 213 | 213 |
@Override |
| 214 | 214 |
public String getResourcePath() |
| 215 | 215 |
{
|
| 216 |
if (relativePath.startsWith("./"))
|
|
| 216 |
// a class loader resolves / separated names on every platform and the entries of a jar are never |
|
| 217 |
// \ separated, so the separators of the relative path (\ on Windows) have to be converted |
|
| 218 |
String path = relativePath.replace('\\', '/');
|
|
| 219 | ||
| 220 |
if (path.startsWith("./"))
|
|
| 217 | 221 |
{
|
| 218 |
return relativePath.substring(2);
|
|
| 222 |
return path.substring(2);
|
|
| 219 | 223 |
} |
| 220 |
|
|
| 221 |
return relativePath;
|
|
| 224 | ||
| 225 |
return path;
|
|
| 222 | 226 |
} |
| 223 | 227 | |
| 224 | 228 |
/** |