Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Wagelaar2021-05-25 19:03:27 +0000
committerDennis Wagelaar2021-05-25 19:03:27 +0000
commite70810760e295a5e9cbc25f04b6e25e9071956c6 (patch)
treec99d8730869d269e388a0de32a7c68be5b702941
parent18af893e1445b7544126aa2ee1422e58b95e8cae (diff)
downloadorg.eclipse.atl-master.tar.gz
org.eclipse.atl-master.tar.xz
org.eclipse.atl-master.zip
573721: EMFTVM CDO support breaks standalone maven supportHEADmaster
Change-Id: I40c84138331c14c8d1cef8a1d567ded541fcbeea Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=573721 Signed-off-by: Dennis Wagelaar <dwagelaar@gmail.com>
-rw-r--r--plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/impl/EmftvmFactoryImpl.java11
-rw-r--r--plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java11
2 files changed, 14 insertions, 8 deletions
diff --git a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/impl/EmftvmFactoryImpl.java b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/impl/EmftvmFactoryImpl.java
index deeb1704..f802beca 100644
--- a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/impl/EmftvmFactoryImpl.java
+++ b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/impl/EmftvmFactoryImpl.java
@@ -14,6 +14,7 @@ package org.eclipse.m2m.atl.emftvm.impl;
import java.lang.reflect.Method;
+import java.util.logging.Level;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
@@ -1589,13 +1590,15 @@ public class EmftvmFactoryImpl extends EFactoryImpl implements EmftvmFactory {
peUtil = (PluginExtensionUtil) Class.forName(PLUGIN_EXTENSION_UTIL_IMPL).newInstance();
return peUtil.createModelFactoryRegistry();
} catch (final InstantiationException e) {
- ATLLogger.fine(e.getMessage());
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
} catch (final IllegalAccessException e) {
- ATLLogger.fine(e.getMessage());
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
} catch (final ClassNotFoundException e) {
- ATLLogger.fine(e.getMessage());
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
+ } catch (final SecurityException e) {
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
} catch (final NoClassDefFoundError e) {
- ATLLogger.fine(e.getMessage());
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
}
return new TypeHashMap<Class<?>, ModelFactory>();
}
diff --git a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java
index 99e8c2ee..ee87d083 100644
--- a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java
+++ b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java
@@ -37,6 +37,7 @@ import java.util.StringTokenizer;
import java.util.WeakHashMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
+import java.util.logging.Level;
import java.util.regex.Pattern;
import org.eclipse.emf.common.util.EList;
@@ -2218,13 +2219,15 @@ public final class EMFTVMUtil {
return new File(wsPath);
}
} catch (final InstantiationException e) {
- ATLLogger.fine(e.getMessage());
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
} catch (final IllegalAccessException e) {
- ATLLogger.fine(e.getMessage());
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
} catch (final ClassNotFoundException e) {
- ATLLogger.fine(e.getMessage());
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
+ } catch (final SecurityException e) {
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
} catch (final NoClassDefFoundError e) {
- ATLLogger.fine(e.getMessage());
+ ATLLogger.log(Level.FINE, e.getMessage(), e);
}
ATLLogger.info("Could not find workspace root; falling back to native java.io.File path resolution");
return new File(path);

Back to the top