Added system.err do debug server process
diff --git a/core/org.eclipse.emf.texo/src/org/eclipse/emf/texo/store/EMFResourceObjectStore.java b/core/org.eclipse.emf.texo/src/org/eclipse/emf/texo/store/EMFResourceObjectStore.java
index bdc37c2..9e13909 100644
--- a/core/org.eclipse.emf.texo/src/org/eclipse/emf/texo/store/EMFResourceObjectStore.java
+++ b/core/org.eclipse.emf.texo/src/org/eclipse/emf/texo/store/EMFResourceObjectStore.java
@@ -40,6 +40,7 @@
try {
final boolean loadFile = resource.getResourceSet().getURIConverter().exists(resource.getURI(),
Collections.emptyMap());
+ System.err.println("Loading file " + loadFile);
if (loadFile) {
resource.load(getResourceLoadOptions());
final List<EObject> eObjects = new ArrayList<EObject>();
diff --git a/core/org.eclipse.emf.texo/src/org/eclipse/emf/texo/store/TexoEMFResourceURIConverter.java b/core/org.eclipse.emf.texo/src/org/eclipse/emf/texo/store/TexoEMFResourceURIConverter.java
index 519da81..81b0d55 100644
--- a/core/org.eclipse.emf.texo/src/org/eclipse/emf/texo/store/TexoEMFResourceURIConverter.java
+++ b/core/org.eclipse.emf.texo/src/org/eclipse/emf/texo/store/TexoEMFResourceURIConverter.java
@@ -41,6 +41,9 @@
String[] segments = uri.segments();
String fileName = segments[0] + "_" + segments[1] + "." + getFileExtension(); //$NON-NLS-1$ //$NON-NLS-2$
String dir = getTemporaryDirectoryPath();
+
+ System.err.println("Normalized " + URI.createFileURI(dir + File.separator + fileName));
+
return URI.createFileURI(dir + File.separator + fileName);
}
@@ -61,11 +64,13 @@
protected String getTemporaryDirectoryPath() {
try {
if (System.getProperty("texo.temp.directory") != null) { //$NON-NLS-1$
+ System.err.println("Texo temp " + System.getProperty("texo.temp.directory"));
return System.getProperty("texo.temp.directory");//$NON-NLS-1$
}
final File f = File.createTempFile("test" + System.currentTimeMillis(), null); //$NON-NLS-1$
String tempDirectory = f.getParentFile().getAbsolutePath();
f.delete();
+ System.err.println("Texo temp " + tempDirectory);
return tempDirectory;
} catch (IOException e) {
throw new IllegalStateException(e);
diff --git a/tests/org.eclipse.emf.texo.server.test/src/org/eclipse/emf/texo/server/test/ws/EMFResourceObjectStoreWSTest.java b/tests/org.eclipse.emf.texo.server.test/src/org/eclipse/emf/texo/server/test/ws/EMFResourceObjectStoreWSTest.java
index c5f03e2..4765461 100644
--- a/tests/org.eclipse.emf.texo.server.test/src/org/eclipse/emf/texo/server/test/ws/EMFResourceObjectStoreWSTest.java
+++ b/tests/org.eclipse.emf.texo.server.test/src/org/eclipse/emf/texo/server/test/ws/EMFResourceObjectStoreWSTest.java
@@ -462,12 +462,14 @@
protected String getTemporaryDirectoryPath() {
try {
if (System.getProperty("texo.temp.directory") != null) { //$NON-NLS-1$
+ System.err.println("Texo temp " + System.getProperty("texo.temp.directory"));
return System.getProperty("texo.temp.directory");//$NON-NLS-1$
}
final File f = File.createTempFile("test" + System.currentTimeMillis(), null); //$NON-NLS-1$
String tempDirectory = f.getParentFile().getAbsolutePath();
f.delete();
+ System.err.println("Texo temp " + tempDirectory);
return tempDirectory;
} catch (IOException e) {
throw new IllegalStateException(e);