fix for new starter files

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5002 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
lotus 2008-07-14 18:41:11 +00:00
parent b63a519456
commit 28c39e2aa4

View File

@ -378,8 +378,8 @@ public final class yacyVersion implements Comparator<yacyVersion>, Comparable<ya
if (serverSystem.isWindows) {
File startType = new File(sb.getRootPath(), "DATA/yacy.noconsole".replace("/", File.separator));
String starterFile = "startYACY.bat";
if (startType.exists()) starterFile = "startYACY_noconsole.bat"; // startType noconsole
String starterFile = "startYACY_debug.bat";
if (startType.exists()) starterFile = "startYACY.bat"; // startType noconsole
try{
serverLog.logInfo("RESTART", "INITIATED");
@ -456,8 +456,8 @@ public final class yacyVersion implements Comparator<yacyVersion>, Comparable<ya
String scriptFileName = null;
if(serverSystem.isWindows){
File startType = new File(sb.getRootPath(), "DATA/yacy.noconsole".replace("/", File.separator));
String starterFile = "startYACY.bat";
if (startType.exists()) starterFile = "startYACY_noconsole.bat"; // startType noconsole
String starterFile = "startYACY_debug.bat";
if (startType.exists()) starterFile = "startYACY.bat"; // startType noconsole
script =
"@echo off" + serverCore.LF_STRING +
"title YaCy updater" + serverCore.LF_STRING +