Author: dgolovin
Date: 2008-01-31 05:20:17 -0500 (Thu, 31 Jan 2008)
New Revision: 6058
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPostInstallDelegate.java
Log:
fix exception during the test
[java] java.lang.NullPointerException
[java] at
org.jboss.tools.seam.internal.core.project.facet.SeamFacetPostInstallDelegate.execute(SeamFacetPostInstallDelegate.java:58)
[java] at
org.eclipse.wst.common.project.facet.core.events.internal.LegacyEventHandlerAdapter.handleEvent(LegacyEventHandlerAdapter.java:69)
[java] at
org.eclipse.wst.common.project.facet.core.events.internal.ListenerRegistry.notifyListeners(ListenerRegistry.java:76)
[java] at
org.eclipse.wst.common.project.facet.core.internal.FacetedProject.notifyListeners(FacetedProject.java:1088)
[java] at
org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:411)
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPostInstallDelegate.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPostInstallDelegate.java 2008-01-31
08:50:51 UTC (rev 6057)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPostInstallDelegate.java 2008-01-31
10:20:17 UTC (rev 6058)
@@ -55,13 +55,14 @@
final IDataModel model = (IDataModel) config;
IServer server = (IServer) model.getProperty(JBOSS_AS_TARGET_SERVER);
- JBossServer jbs = (JBossServer) server.loadAdapter(JBossServer.class, new
NullProgressMonitor());
- if (jbs != null) {
- String[] driverJars = (String[])
model.getProperty(ISeamFacetDataModelProperties.JDBC_DRIVER_JAR_PATH);
- String configFolder = jbs.getConfigDirectory();
- AntCopyUtils.copyFiles(driverJars, new File(configFolder, "lib"), false);
- }
if (server != null) {
+ JBossServer jbs = (JBossServer) server.loadAdapter(JBossServer.class, new
NullProgressMonitor());
+ if (jbs != null) {
+ String[] driverJars = (String[])
model.getProperty(ISeamFacetDataModelProperties.JDBC_DRIVER_JAR_PATH);
+ String configFolder = jbs.getConfigDirectory();
+ AntCopyUtils.copyFiles(driverJars, new File(configFolder, "lib"), false);
+ }
+
RegistrationHelper.runRegisterInServerJob(project, server);
IPath filePath = new Path("resources").append(project.getName() +
"-ds.xml");