Commit 70d8ad12 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Removed unused prop file

parent b68c5ae0
......@@ -47,4 +47,24 @@
<type>jar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>nl.uva.sne.drip.drip.provisioner.RPCServer</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -27,7 +27,6 @@ import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Paths;
......@@ -54,7 +53,7 @@ import org.json.JSONObject;
public class Consumer extends DefaultConsumer {
private final Channel channel;
private final String propertiesPath = "etc/consumer.properties";
// private final String propertiesPath = "etc/consumer.properties";
Map<String, String> em = new HashMap<>();
......@@ -68,10 +67,10 @@ public class Consumer extends DefaultConsumer {
public Consumer(Channel channel) throws IOException {
super(channel);
this.channel = channel;
Properties prop = new Properties();
try (InputStream in = new FileInputStream(propertiesPath)) {
prop.load(in);
}
// Properties prop = new Properties();
// try (InputStream in = new FileInputStream(propertiesPath)) {
// prop.load(in);
// }
// jarFilePath = prop.getProperty("jar.file.path", "/root/SWITCH/bin/ProvisioningCore.jar");
// File jarFile = new File(jarFilePath);
// if (!jarFile.exists()) {
......
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 to comment