From e7934050009ce7e6f43e2ce7d56c827a23ac287e Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 26 Feb 2007 21:13:28 +0000
Subject: [PATCH] Centralize the hardcoded strings of the different commands used in the setup and in the control panel in the class Utils.java.
---
opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java b/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
index caab21c..c1e21f5 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
@@ -424,7 +424,7 @@
try
{
copyZipEntry(entry, basePath, zipFirstPath, zipIn,
- ratioBeforeCompleted, ratioWhenCompleted, permissions);
+ ratioBeforeCompleted, ratioWhenCompleted, permissions);
} catch (IOException ioe)
{
@@ -625,7 +625,8 @@
} else if (path.endsWith(".sh"))
{
perm = "755";
- } else if (path.endsWith("setup") || path.endsWith("uninstall"))
+ } else if (path.endsWith(Utils.getUnixSetupFileName()) ||
+ path.endsWith(Utils.getUnixUninstallFileName()))
{
perm = "755";
} else
@@ -654,4 +655,3 @@
return getUserData().getServerLocation();
}
}
-
--
Gitblit v1.10.0