mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[206642] changes to allow for java 1.4 on server
This commit is contained in:
parent
34cf468e73
commit
df7df72da7
1 changed files with 5 additions and 2 deletions
|
@ -1094,12 +1094,15 @@ public class CommandMinerThread extends MinerThread
|
|||
DataElement object = null;
|
||||
if (parsedMsg.type.equals("prompt"))
|
||||
{
|
||||
if (fileName.indexOf("~") != -1)
|
||||
int tildaIndex = fileName.indexOf("~");
|
||||
if (tildaIndex == 0)
|
||||
{
|
||||
String userHome = System.getProperty("user.home");
|
||||
fileName = fileName.replace("~", userHome);
|
||||
|
||||
fileName = userHome + fileName.substring(1);
|
||||
}
|
||||
|
||||
|
||||
File promptFile = new File(fileName);
|
||||
if (promptFile.exists())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue