diff options
Diffstat (limited to 'branches/sca-java-1.3.1/modules/extension-helper/src')
-rw-r--r-- | branches/sca-java-1.3.1/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/ResourceHelper.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/branches/sca-java-1.3.1/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/ResourceHelper.java b/branches/sca-java-1.3.1/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/ResourceHelper.java index efa84c6816..4e7965ce60 100644 --- a/branches/sca-java-1.3.1/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/ResourceHelper.java +++ b/branches/sca-java-1.3.1/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/ResourceHelper.java @@ -24,6 +24,7 @@ import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.net.URL; +import java.net.URLConnection; /** * TODO: Shouldn't this be using the contribution service? @@ -36,7 +37,9 @@ public class ResourceHelper { InputStream is; try { - is = scriptSrcUrl.openStream(); + URLConnection connection = scriptSrcUrl.openConnection(); + connection.setUseCaches(false); + is = connection.getInputStream(); } catch (IOException e) { throw new RuntimeException(e); } |