From 7ebfb78e80ed10fda26f2aa432b4ced03f473aac Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Sun, 9 Apr 2006 18:18:09 +0000 Subject: [PATCH] Synchronizing existing updates against repository. --- .classpath | 2 +- .../com/webcodepro/applecommander/testconfig/TestConfig.java | 5 +++-- .../applecommander/testconfig/TestConfig.properties | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.classpath b/.classpath index 32dfb10..f144afa 100644 --- a/.classpath +++ b/.classpath @@ -3,7 +3,7 @@ - + diff --git a/test/com/webcodepro/applecommander/testconfig/TestConfig.java b/test/com/webcodepro/applecommander/testconfig/TestConfig.java index b421946..ad3f08c 100644 --- a/test/com/webcodepro/applecommander/testconfig/TestConfig.java +++ b/test/com/webcodepro/applecommander/testconfig/TestConfig.java @@ -20,6 +20,7 @@ package com.webcodepro.applecommander.testconfig; import java.io.FileInputStream; +import java.io.InputStream; import java.util.Properties; /** @@ -29,7 +30,7 @@ import java.util.Properties; * @author Rob */ public class TestConfig { - private static final String FILENAME = "TestConfig.preferences"; //$NON-NLS-1$ + private static final String FILENAME = "TestConfig.properties"; //$NON-NLS-1$ private static final String DISK_DIRECTORY = "DiskDir"; //$NON-NLS-1$ private static final String TEMP_DIRECTORY = "TempDir"; //$NON-NLS-1$ private static TestConfig instance; @@ -55,7 +56,7 @@ public class TestConfig { */ private void load() { try { - FileInputStream inputStream = new FileInputStream(FILENAME); + InputStream inputStream = getClass().getResourceAsStream(FILENAME); properties.load(inputStream); inputStream.close(); } catch (Exception ignored) { diff --git a/test/com/webcodepro/applecommander/testconfig/TestConfig.properties b/test/com/webcodepro/applecommander/testconfig/TestConfig.properties index fcda40d..1b6816c 100644 --- a/test/com/webcodepro/applecommander/testconfig/TestConfig.properties +++ b/test/com/webcodepro/applecommander/testconfig/TestConfig.properties @@ -1,2 +1,2 @@ -DiskDir=C:/Documents and Settings/Rob/My Documents/My Apple2/Disks +DiskDir=C:/Documents and Settings/hp/My Documents/My Apple2/Disks TempDir=C:/Temp