Author: snjeza
Date: 2012-07-03 17:57:06 -0400 (Tue, 03 Jul 2012)
New Revision: 42377
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java
Log:
JBIDE-12235 - Defining runtimes using external file - no error if the URL to config file
is wrong
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java
===================================================================
---
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java 2012-07-03
21:54:54 UTC (rev 42376)
+++
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java 2012-07-03
21:57:06 UTC (rev 42377)
@@ -1224,6 +1224,7 @@
urlModified = ECFExamplesTransport.getInstance()
.getLastModified(url);
} catch (Exception e) {
+ log(e);
urlModified = -1;
}
if (cacheModified == 0 || urlModified != cacheModified) {
@@ -1240,6 +1241,8 @@
ProjectExamplesActivator.copyFile(tempFile, cacheFile);
tempFile.delete();
cacheFile.setLastModified(cacheModified);
+ } else {
+ getLog().log(status);
}
}
} catch (Exception e) {
Show replies by date