Commit 104c5e2f authored by Stephanie Gawroriski's avatar Stephanie Gawroriski
Browse files

For normalization include JAMs and keep case which fixes issues on Linux where...

For normalization include JAMs and keep case which fixes issues on Linux where i-mode applications are missing.
parent 98f05e19
Pipeline #87054 passed with stages
in 1 minute and 22 seconds
......@@ -576,11 +576,14 @@ public abstract class VMFactory
// Not a known extension or normalized type
if (!(__name.endsWith(".jar") || __name.endsWith(".JAR") ||
__name.endsWith(".sqc") || __name.endsWith(".SQC")))
__name.endsWith(".sqc") || __name.endsWith(".SQC") ||
__name.endsWith(".jam") || __name.endsWith(".JAM")))
return __name;
// Get the base name of the JAR or SQC
__name = __name.substring(0, __name.length() - 4);
int lastDot = __name.lastIndexOf('.');
String ext = __name.substring(lastDot + 1);
__name = __name.substring(0, lastDot);
// Chop down potential foo"-0.4.0" from the end
for (int n = __name.length(), i = n - 1; i >= 0; i--)
......@@ -597,7 +600,7 @@ public abstract class VMFactory
}
// Use this name
return __name.toLowerCase() + ".jar";
return __name + "." + ext;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment