From f284386b63b17ce01b67d4d084ff265661cd995e Mon Sep 17 00:00:00 2001 From: lotus Date: Sat, 24 May 2008 20:03:11 +0000 Subject: [PATCH] update deploy improvements for windows - ready for release now :-) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4849 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/ConfigUpdate_p.java | 5 ++++- source/de/anomic/server/serverSystem.java | 2 +- source/de/anomic/yacy/yacyVersion.java | 9 +++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/htroot/ConfigUpdate_p.java b/htroot/ConfigUpdate_p.java index bcbe3d565..fbdf11854 100644 --- a/htroot/ConfigUpdate_p.java +++ b/htroot/ConfigUpdate_p.java @@ -149,7 +149,10 @@ public class ConfigUpdate_p { downloadedreleases.add(release); } catch (RuntimeException e) { // not a valid release - new File(sb.releasePath, downloaded[j]).deleteOnExit(); // can be also a restart- or deploy-file + // can be also a restart- or deploy-file + File invalid = new File(sb.releasePath, downloaded[j]); + if (!invalid.getName().contains(".bat")) // Windows doesn't like deleted scripts + invalid.deleteOnExit(); } } dflt = (downloadedreleases.size() == 0) ? null : downloadedreleases.last(); diff --git a/source/de/anomic/server/serverSystem.java b/source/de/anomic/server/serverSystem.java index 2447761f7..bf32c3e26 100644 --- a/source/de/anomic/server/serverSystem.java +++ b/source/de/anomic/server/serverSystem.java @@ -348,7 +348,7 @@ public final class serverSystem { String script = null; if(isWindows){ starterFileExtension = ".starter.bat"; - // TODO: use /K to debug, /C for release + // use /K to debug, /C for release script = "start /MIN CMD /C " + scriptFile.getAbsolutePath().replaceAll(" ", "\\ "); } else { // unix/linux starterFileExtension = ".starter.sh"; diff --git a/source/de/anomic/yacy/yacyVersion.java b/source/de/anomic/yacy/yacyVersion.java index fbbdd09e5..95f034259 100644 --- a/source/de/anomic/yacy/yacyVersion.java +++ b/source/de/anomic/yacy/yacyVersion.java @@ -373,7 +373,7 @@ public final class yacyVersion implements Comparator, Comparable, Comparable, Comparablenul" + serverCore.LF_STRING + "IF exist ..\\yacy.running goto WAIT" + serverCore.LF_STRING + - // Error: "Die Batchdatei kann nicht gefunden werden." "IF not exist yacy goto NODATA" + serverCore.LF_STRING + "cd yacy" + serverCore.LF_STRING + @@ -481,7 +482,7 @@ public final class yacyVersion implements Comparator, Comparable