Commit d61577e3 by Amir Aharon

Revert "make changes due to moving to home machine"

This reverts commit 48949ba7
parent 48949ba7
...@@ -28,16 +28,16 @@ APP_NAME="Gradle" ...@@ -28,16 +28,16 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"` APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m"' DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum" MAX_FD="maximum"
warn () { warn ( ) {
echo "$*" echo "$*"
} }
die () { die ( ) {
echo echo
echo "$*" echo "$*"
echo echo
...@@ -155,7 +155,7 @@ if $cygwin ; then ...@@ -155,7 +155,7 @@ if $cygwin ; then
fi fi
# Escape application args # Escape application args
save () { save ( ) {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " " echo " "
} }
......
...@@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0 ...@@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" set DEFAULT_JVM_OPTS=
@rem Find java.exe @rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome if defined JAVA_HOME goto findJavaFromJavaHome
......
...@@ -77,10 +77,10 @@ public class Log4jFileChangeListener{ ...@@ -77,10 +77,10 @@ public class Log4jFileChangeListener{
} }
// @Override @Override
// public void destroy() public void destroy()
// { {
// } }
...@@ -128,7 +128,7 @@ public class Log4jFileChangeListener{ ...@@ -128,7 +128,7 @@ public class Log4jFileChangeListener{
{ {
System.out.println("stopping Log4jFileChangeListener thread..."); System.out.println("stopping Log4jFileChangeListener thread...");
// logger.info("stopping Log4jFileChangeListener thread..."); // logger.info("stopping Log4jFileChangeListener thread...");
listenThread.stop(); listenThread.destroy();
listenThread = null; listenThread = null;
} }
} }
......
...@@ -106,19 +106,19 @@ public class ConfigProperties ...@@ -106,19 +106,19 @@ public class ConfigProperties
// } // }
} }
// @Override @Override
// public void destroy() public void destroy()
// { {
// try try
// { {
// System.out.println("Stopping monitor..."); System.out.println("Stopping monitor...");
// monitor.stop(); monitor.stop();
// } catch (Exception e) } catch (Exception e)
// { {
// // TODO Auto-generated catch block // TODO Auto-generated catch block
// e.printStackTrace(); e.printStackTrace();
// } }
// } }
...@@ -141,7 +141,7 @@ public class ConfigProperties ...@@ -141,7 +141,7 @@ public class ConfigProperties
protected void finalize() throws Throwable protected void finalize() throws Throwable
{ {
// TODO Auto-generated method stub // TODO Auto-generated method stub
listenThread.stop(); listenThread.destroy();
listenThread.join(2000); listenThread.join(2000);
listenThread = null; listenThread = null;
super.finalize(); super.finalize();
...@@ -165,7 +165,7 @@ public class ConfigProperties ...@@ -165,7 +165,7 @@ public class ConfigProperties
{ {
try try
{ {
listenThread.stop(); listenThread.destroy();
listenThread.join(2000); listenThread.join(2000);
} catch (InterruptedException e) } catch (InterruptedException e)
{ {
......
...@@ -52,10 +52,12 @@ public abstract class ITMThread extends Thread ...@@ -52,10 +52,12 @@ public abstract class ITMThread extends Thread
} }
} }
// @Override @Override
// public void destroy() public void destroy()
// { {
// } }
public void stopRunning() public void stopRunning()
{ {
......
...@@ -89,12 +89,12 @@ public class MultiThreadQueueManager ...@@ -89,12 +89,12 @@ public class MultiThreadQueueManager
} }
// @Override @Override
// public void destroy() public void destroy()
// { {
// // TODO Auto-generated method stub // TODO Auto-generated method stub
//
// } }
public void stopRunning() public void stopRunning()
{ {
......
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 sign in to comment