diff options
-rwxr-xr-x | bundles/org.eclipse.equinox.ds.tests/bundles_src/tb26/org/eclipse/equinox/ds/tests/tb26/Component.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb26/org/eclipse/equinox/ds/tests/tb26/Component.java b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb26/org/eclipse/equinox/ds/tests/tb26/Component.java index cf1ce9fde..32fa7b894 100755 --- a/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb26/org/eclipse/equinox/ds/tests/tb26/Component.java +++ b/bundles/org.eclipse.equinox.ds.tests/bundles_src/tb26/org/eclipse/equinox/ds/tests/tb26/Component.java @@ -74,10 +74,6 @@ public abstract class Component { return new FileInputStream(getResourceAsFile(name)); } - private FileOutputStream getResourceAsFileOutputStream(String name) throws Exception { - return new FileOutputStream(getResourceAsFile(name)); - } - private URI getResourceAsUri(String name) throws Exception { URL url = getResource(name); URLConverter converter = tracker.getService(); @@ -106,12 +102,15 @@ public abstract class Component { } private void writeResource(String name, byte[] content) throws Exception { - FileOutputStream fos = getResourceAsFileOutputStream(name); + File file = getResourceAsFile(name); + FileOutputStream fos = new FileOutputStream(file); try { fos.write(content); } finally { closeSilently(fos); } + // Ensure the update will be detected. + file.setLastModified(file.lastModified() + 1000); } } |