JBoss Tools SVN: r40781 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2012-05-04 02:05:48 -0400 (Fri, 04 May 2012)
New Revision: 40781
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ErrorLogView.java
Log:
Avoid Error log delete method fail when error log is empty
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ErrorLogView.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ErrorLogView.java 2012-05-04 05:22:09 UTC (rev 40780)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ErrorLogView.java 2012-05-04 06:05:48 UTC (rev 40781)
@@ -1,6 +1,7 @@
package org.jboss.tools.ui.bot.ext.view;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.waits.Conditions;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
@@ -48,13 +49,18 @@
* deletes error log permanently
*/
public void delete() {
- ContextMenuHelper.clickContextMenu(getView().bot().tree(),
- "Delete Log");
-
- SWTBotShell shell = bot.shell("Confirm Delete").activate();
- shell.bot().button("OK").click();
- bot.waitUntil(Conditions.shellCloses(shell));
- log.info("Error log content deleted");
+
+ try {
+ ContextMenuHelper.clickContextMenu(getView().bot().tree(),
+ "Delete Log");
+
+ SWTBotShell shell = bot.shell("Confirm Delete").activate();
+ shell.bot().button("OK").click();
+ bot.waitUntil(Conditions.shellCloses(shell));
+ log.info("Error log content deleted");
+ } catch (WidgetNotFoundException e) {
+ log.warn("Error log is empty or can't be deleted");
+ }
}
private SWTBotView getView() {
12 years, 8 months
JBoss Tools SVN: r40780 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-05-04 01:22:09 -0400 (Fri, 04 May 2012)
New Revision: 40780
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/DeployAction.java
Log:
JBIDE-10551 using MessageDialog.openConfirm()
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/DeployAction.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/DeployAction.java 2012-05-04 02:48:22 UTC (rev 40779)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/DeployAction.java 2012-05-04 05:22:09 UTC (rev 40780)
@@ -51,7 +51,6 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.IObjectActionDelegate;
@@ -169,14 +168,10 @@
projs += i.next().getName() + ", "; //$NON-NLS-1$
projs = projs.substring(0, projs.length() - 2);
- int style = SWT.OK | SWT.CANCEL;
- MessageBox messageBox = new MessageBox(Display.getCurrent().getActiveShell(), style);
- messageBox.setText(ServerActionMessages.DeployActionMessageBoxTitle);
- messageBox.setMessage(ServerActionMessages.DeployActionMessageBoxMsg);
- if (messageBox.open() == SWT.OK) {
- return true;
- }
- return false;
+ boolean ret = MessageDialog.openConfirm(Display.getCurrent().getActiveShell(),
+ ServerActionMessages.DeployActionMessageBoxTitle,
+ ServerActionMessages.DeployActionMessageBoxMsg);
+ return ret;
}
protected void makeUndeployable() {
12 years, 8 months
JBoss Tools SVN: r40779 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement.
by jbosstools-commits@lists.jboss.org
Author: ldimaggio
Date: 2012-05-03 22:48:22 -0400 (Thu, 03 May 2012)
New Revision: 40779
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/AddServer.java
Log:
Added support for ESB 4.11 (included in SOA-P 5.3)
else if ("5.3".equals(TestConfigurator.currentConfig.getServer().version)) {
SWTTestExt.configuredState.getServer().bundledESBVersion="4.11";
}
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/AddServer.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/AddServer.java 2012-05-04 02:43:27 UTC (rev 40778)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/AddServer.java 2012-05-04 02:48:22 UTC (rev 40779)
@@ -2,6 +2,7 @@
import static org.junit.Assert.fail;
+import org.eclipse.swtbot.swt.finder.SWTBot;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.config.TestConfigurator;
import org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossCommunityJBossAS42;
@@ -72,7 +73,7 @@
SWTTestExt.configuredState.getServer().type=TestConfigurator.currentConfig.getServer().type;
SWTTestExt.configuredState.getServer().withJavaVersion = TestConfigurator.currentConfig.getServer().withJavaVersion;
// setup bundled ESB versions for SOA server type
- if (TestConfigurator.currentConfig.getServer().type.equals(TestConfigurator.Values.SERVER_TYPE_SOA)) {
+ if (TestConfigurator.currentConfig.getServer().type.equals(TestConfigurator.Values.SERVER_TYPE_SOA)) {
if ("4.3".equals(TestConfigurator.currentConfig.getServer().version)) {
SWTTestExt.configuredState.getServer().bundledESBVersion="4.4";
}
@@ -85,6 +86,9 @@
else if ("5.2".equals(TestConfigurator.currentConfig.getServer().version)) {
SWTTestExt.configuredState.getServer().bundledESBVersion="4.10";
}
+ else if ("5.3".equals(TestConfigurator.currentConfig.getServer().version)) {
+ SWTTestExt.configuredState.getServer().bundledESBVersion="4.11";
+ }
}
}
12 years, 8 months
JBoss Tools SVN: r40778 - trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests.
by jbosstools-commits@lists.jboss.org
Author: ldimaggio
Date: 2012-05-03 22:43:27 -0400 (Thu, 03 May 2012)
New Revision: 40778
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java
Log:
Uncommented test that had been blocked by JBDS-1886 - this bug is fixed with SOA-P 5.3 (ESB 4.11) and JBDS 5.0.beta3 and SOA tooling.
Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java 2012-05-04 02:34:01 UTC (rev 40777)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java 2012-05-04 02:43:27 UTC (rev 40778)
@@ -21,7 +21,7 @@
bot.sleep (3000l, "3 sleeping - " + TestConfigurator.currentConfig.getEsb().runtimeHome + " " + TestConfigurator.currentConfig.getEsb().version + " " + bot.comboBox().selection().toString());
/* ldimaggi - Oct 2011 - https://issues.jboss.org/browse/JBDS-1886 - this test fails for ESB 4.10 */
- //assertTrue("JBDS-1886 - Version was not automatically selected by setting ESB home dir",bot.comboBox().selection().equals(TestConfigurator.currentConfig.getEsb().version));
+ assertTrue("JBDS-1886 - Version was not automatically selected by setting ESB home dir",bot.comboBox().selection().equals(TestConfigurator.currentConfig.getEsb().version));
/* ldimaggi - Oct 2011 */
bot.text(0).setText("123_TheName");
12 years, 8 months
JBoss Tools SVN: r40777 - trunk/cdi/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-05-03 22:34:01 -0400 (Thu, 03 May 2012)
New Revision: 40777
Modified:
trunk/cdi/docs/reference/en-US/Book_Info.xml
trunk/cdi/docs/reference/en-US/hyperlink_navigation.xml
Log:
updated with new info
Modified: trunk/cdi/docs/reference/en-US/Book_Info.xml
===================================================================
--- trunk/cdi/docs/reference/en-US/Book_Info.xml 2012-05-04 02:30:39 UTC (rev 40776)
+++ trunk/cdi/docs/reference/en-US/Book_Info.xml 2012-05-04 02:34:01 UTC (rev 40777)
@@ -13,7 +13,7 @@
<edition>5.0.0</edition>
- <pubsnumber>6</pubsnumber>
+ <pubsnumber>7</pubsnumber>
<abstract>
<para>
Modified: trunk/cdi/docs/reference/en-US/hyperlink_navigation.xml
===================================================================
--- trunk/cdi/docs/reference/en-US/hyperlink_navigation.xml 2012-05-04 02:30:39 UTC (rev 40776)
+++ trunk/cdi/docs/reference/en-US/hyperlink_navigation.xml 2012-05-04 02:34:01 UTC (rev 40777)
@@ -86,7 +86,7 @@
</mediaobject>
</figure>
<para>
- This is also true for Producer and Disposer methods.
+ Producer and Disposer methods, if available, will appear in the conext menu for an injection.
</para>
<figure id="hyperlink_05">
<title>Producer example</title>
12 years, 8 months
JBoss Tools SVN: r40776 - in trunk/cdi/docs/reference/en-US: images/Hyperlink_Navigation and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-05-03 22:30:39 -0400 (Thu, 03 May 2012)
New Revision: 40776
Added:
trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_015.png
Modified:
trunk/cdi/docs/reference/en-US/hyperlink_navigation.xml
trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_02.png
trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_03.png
trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_04.png
trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_05.png
trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_06.png
Log:
updated based on developer feedback
Modified: trunk/cdi/docs/reference/en-US/hyperlink_navigation.xml
===================================================================
--- trunk/cdi/docs/reference/en-US/hyperlink_navigation.xml 2012-05-04 00:15:22 UTC (rev 40775)
+++ trunk/cdi/docs/reference/en-US/hyperlink_navigation.xml 2012-05-04 02:30:39 UTC (rev 40776)
@@ -22,8 +22,24 @@
</mediaobject>
</figure>
<para>
- If multiple eligible beans are detected for the injection, you will see the full list of available beans. If the list is incorrect, this can be rectified by executing a quick-fix. To execute a quick-fix press <keycombo><keysym>Ctrl</keysym><keysym>1</keysym></keycombo>.
- </para>
+ If multiple eligible beans are detected for the injection, you will see an option to <guimenuitem>Show All Assignable Beans</guimenuitem>.
+ </para>
+ <figure id="hyperlink_015">
+ <title>Show All Assignable Beans</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/Hyperlink_Navigation/hyperlink_015.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <phrase>
+ Show All Assignable Beans.
+ </phrase>
+ </textobject>
+ </mediaobject>
+ </figure>
+ <para>
+ Selecting this option will display a dialog containing all eligible beans.
+ </para>
<figure id="hyperlink_02">
<title>Multiple eligible beans</title>
<mediaobject>
@@ -41,7 +57,7 @@
Corresponding classes and interfaces that are mentioned in <filename>beans.xml</filename> can be opened through pressing <keycombo><keysym>Ctrl</keysym><mousebutton>Left-Click</mousebutton></keycombo> on the type name.
</para>
<para>
- Observers and Events can be navigated to through the same method as well.
+ Observers and Events can be navigated to through the same method as well; <guimenuitem>Show CDI Observer Methods</guimenuitem> and <guimenuitem>Show CDI Events</guimenuitem>.
</para>
<figure id="hyperlink_03">
<title>Observers example</title>
Added: trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_015.png
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_015.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_02.png
===================================================================
(Binary files differ)
Modified: trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_03.png
===================================================================
(Binary files differ)
Modified: trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_04.png
===================================================================
(Binary files differ)
Modified: trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_05.png
===================================================================
(Binary files differ)
Modified: trunk/cdi/docs/reference/en-US/images/Hyperlink_Navigation/hyperlink_06.png
===================================================================
(Binary files differ)
12 years, 8 months
JBoss Tools SVN: r40775 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-05-03 20:15:22 -0400 (Thu, 03 May 2012)
New Revision: 40775
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23FacetInstallDelegate.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
Log:
https://issues.jboss.org/browse/JBIDE-11490 don't copy jboss-web.xml for Seam 2.3
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23FacetInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23FacetInstallDelegate.java 2012-05-04 00:01:57 UTC (rev 40774)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23FacetInstallDelegate.java 2012-05-04 00:15:22 UTC (rev 40775)
@@ -30,6 +30,11 @@
*/
public class Seam23FacetInstallDelegate extends Seam2FacetInstallDelegate {
+ public static AntCopyUtils.FileSet JBOOS_WAR_WEBINF_SET = new AntCopyUtils.FileSet()
+ .include("WEB-INF") //$NON-NLS-1$
+ .include("WEB-INF/pages\\.xml") //$NON-NLS-1$
+ .include("WEB-INF/componets\\.xml"); //$NON-NLS-1$
+
/*
* (non-Javadoc)
* @see org.jboss.tools.seam.internal.core.project.facet.Seam2FacetInstallDelegate#copyFilesToWarProject(org.eclipse.core.resources.IProject, org.eclipse.wst.common.project.facet.core.IProjectFacetVersion, org.eclipse.wst.common.frameworks.datamodel.IDataModel, org.eclipse.core.runtime.IProgressMonitor)
@@ -55,6 +60,15 @@
return new Seam23ProjectCreator(model, project);
}
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate#getJBossWarWebinfSet()
+ */
+ @Override
+ protected AntCopyUtils.FileSet getJBossWarWebinfSet() {
+ return JBOOS_WAR_WEBINF_SET;
+ }
+
/**
* Copies and deploys the driver jar from connection profile to the server.
* @param project
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2012-05-04 00:01:57 UTC (rev 40774)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2012-05-04 00:15:22 UTC (rev 40775)
@@ -151,7 +151,7 @@
.exclude(".*/CVS") //$NON-NLS-1$
.exclude(".*/\\.svn"); //$NON-NLS-1$
- public static AntCopyUtils.FileSet JBOOS_WAR_WEBINF_SET = new AntCopyUtils.FileSet()
+ public static AntCopyUtils.FileSet DEFAULT_JBOOS_WAR_WEBINF_SET = new AntCopyUtils.FileSet()
.include("WEB-INF") //$NON-NLS-1$
//.include("WEB-INF/web\\.xml") //$NON-NLS-1$
.include("WEB-INF/pages\\.xml") //$NON-NLS-1$
@@ -179,7 +179,11 @@
return ALL;
}
};
-
+
+ protected AntCopyUtils.FileSet getJBossWarWebinfSet() {
+ return DEFAULT_JBOOS_WAR_WEBINF_SET;
+ }
+
/* (non-Javadoc)
* @see org.eclipse.wst.common.project.facet.core.IDelegate#execute(org.eclipse.core.resources.IProject, org.eclipse.wst.common.project.facet.core.IProjectFacetVersion, java.lang.Object, org.eclipse.core.runtime.IProgressMonitor)
*/
@@ -433,7 +437,7 @@
// *******************************************************************
// Copy manifest and configuration resources the same way as view
// *******************************************************************
- AntCopyUtils.FileSet webInfSet = new AntCopyUtils.FileSet(JBOOS_WAR_WEBINF_SET).dir(seamGenResFolder);
+ AntCopyUtils.FileSet webInfSet = new AntCopyUtils.FileSet(getJBossWarWebinfSet()).dir(seamGenResFolder);
WebApp webApp = configureWebXml(project);
12 years, 8 months
JBoss Tools SVN: r40774 - in trunk/seam/plugins: org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-05-03 20:01:57 -0400 (Thu, 03 May 2012)
New Revision: 40774
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ResourceDeployer.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23ProjectCreator.java
Removed:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/DataSourceXmlDeployer.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23FacetInstallDelegate.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamProjectCreator.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
Log:
https://issues.jboss.org/browse/JBIDE-11490 deploy DB driver for Seam 2.3
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2012-05-03 22:59:08 UTC (rev 40773)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2012-05-04 00:01:57 UTC (rev 40774)
@@ -9,7 +9,7 @@
DATA_SOURCE_XML_DEPLOYER_DEPLOYING_DATASOURCE_TO_SERVER=Deploying datasource to server
DATA_SOURCE_XML_DEPLOYER_NO_SERVER_SELECTED_TO_DEPLOY_DATASOURCE_TO=No server selected to deploy datasource to
DATA_SOURCE_XML_DEPLOYER_SERVER_DID_NOT_SUPPORT_DEPLOY_OF_DATASOURCE=Server did not support deploy of datasource.
-DATA_SOURCE_XML_DEPLOYER_COULD_NOT_DEPLOY_DATASOURCE=Could not deploy datasource
+DATA_SOURCE_XML_DEPLOYER_COULD_NOT_DEPLOY_DATASOURCE=Could not deploy
JAVA_SCANNER_CANNOT_GET_COMPILATION_UNIT_FOR=Cannot get compilation unit for ''{0}''
LIBRARY_SCANNER_CANNOT_PROCESS_JAVA_CLASSES=Cannot process Java Classes
SEAM_VALIDATION_CONTEXT_LINKED_RESOURCE_PATH_MUST_NOT_BE_NULL=Linked resource path must not be null\!
Deleted: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/DataSourceXmlDeployer.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/DataSourceXmlDeployer.java 2012-05-03 22:59:08 UTC (rev 40773)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/DataSourceXmlDeployer.java 2012-05-04 00:01:57 UTC (rev 40774)
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.seam.internal.core.project.facet;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IServer;
-import org.eclipse.wst.server.core.IServerWorkingCopy;
-import org.eclipse.wst.server.core.internal.ChainedJob;
-import org.jboss.ide.eclipse.as.core.modules.SingleDeployableFactory;
-import org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior;
-import org.jboss.tools.seam.core.SeamCoreMessages;
-import org.jboss.tools.seam.core.SeamCorePlugin;
-
-/**
- * This class is provided to deploy data source descriptor to JBoss AS for Seam
- * Web Project in WAR and EAR deployment configurations.
- *
- * @author eskimo
- *
- */
-public class DataSourceXmlDeployer extends ChainedJob {
- IProject project = null;
- IServer s = null;
- IPath deploy = null;
- public DataSourceXmlDeployer(IProject project, IServer s, IPath deploy) {
- super(SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_DEPLOYING_DATASOURCE_TO_SERVER, s);
- this.project = project;
- // is must be user since ds.xml has the same behaviour for EAR
- // deployment. It should run after ear project created and imported into
- // workspace
- setUser(true);
- setRule(ResourcesPlugin.getWorkspace().getRoot());
- this.s = s;
- this.deploy = deploy;
- }
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
-
- if (s == null) {
- return new Status(Status.WARNING, SeamCorePlugin.PLUGIN_ID,
- SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_NO_SERVER_SELECTED_TO_DEPLOY_DATASOURCE_TO);
- }
- // convert it to a DeployableServer instance
- DeployableServerBehavior deployer = (DeployableServerBehavior) s
- .loadAdapter(DeployableServerBehavior.class, null);
-
- // if its not null, the adaptation worked.
- if (deployer == null) {
- return new Status(Status.WARNING, SeamCorePlugin.PLUGIN_ID,
- SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_SERVER_DID_NOT_SUPPORT_DEPLOY_OF_DATASOURCE);
- }
-
- IPath projectPath = new Path("/" //$NON-NLS-1$
- + project.getName());
- IPath append = projectPath.append(deploy); //$NON-NLS-1$
-
- if (SingleDeployableFactory.makeDeployable(append)) {
- try {
- IModule module = SingleDeployableFactory.findModule(append);
- IServerWorkingCopy copy = s.createWorkingCopy();
- copy.modifyModules(new IModule[]{module}, new IModule[0], new NullProgressMonitor());
- IServer saved = copy.save(false, new NullProgressMonitor());
- saved.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());
- } catch( CoreException ce ) {
- return new Status(Status.WARNING, SeamCorePlugin.PLUGIN_ID,
- SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_COULD_NOT_DEPLOY_DATASOURCE + append, ce);
- }
- return Status.OK_STATUS;
- } else {
- return new Status(Status.WARNING, SeamCorePlugin.PLUGIN_ID,
- SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_COULD_NOT_DEPLOY_DATASOURCE + append); //$NON-NLS-1$
- }
- }
-}
Copied: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ResourceDeployer.java (from rev 40717, trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/DataSourceXmlDeployer.java)
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ResourceDeployer.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ResourceDeployer.java 2012-05-04 00:01:57 UTC (rev 40774)
@@ -0,0 +1,93 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.internal.core.project.facet;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+import org.eclipse.wst.server.core.internal.ChainedJob;
+import org.jboss.ide.eclipse.as.core.modules.SingleDeployableFactory;
+import org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior;
+import org.jboss.tools.seam.core.SeamCoreMessages;
+import org.jboss.tools.seam.core.SeamCorePlugin;
+
+/**
+ * This class is provided to deploy data source descriptor or any other resource to JBoss AS for Seam
+ * Web Project in WAR and EAR deployment configurations.
+ *
+ * @author eskimo
+ *
+ */
+public class ResourceDeployer extends ChainedJob {
+ IProject project = null;
+ IServer s = null;
+ IPath deploy = null;
+
+ public ResourceDeployer(IProject project, IServer s, IPath deploy) {
+ super(SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_DEPLOYING_DATASOURCE_TO_SERVER, s);
+ this.project = project;
+ // is must be user since ds.xml (or other resource which is being deployed) has the same behaviour for EAR
+ // deployment. It should run after ear project created and imported into
+ // workspace
+ setUser(true);
+ setRule(ResourcesPlugin.getWorkspace().getRoot());
+ this.s = s;
+ this.deploy = deploy;
+ }
+
+ @Override
+ protected IStatus run(IProgressMonitor monitor) {
+
+ if (s == null) {
+ return new Status(Status.WARNING, SeamCorePlugin.PLUGIN_ID,
+ SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_NO_SERVER_SELECTED_TO_DEPLOY_DATASOURCE_TO);
+ }
+ // convert it to a DeployableServer instance
+ DeployableServerBehavior deployer = (DeployableServerBehavior) s
+ .loadAdapter(DeployableServerBehavior.class, null);
+
+ // if its not null, the adaptation worked.
+ if (deployer == null) {
+ return new Status(Status.WARNING, SeamCorePlugin.PLUGIN_ID,
+ SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_SERVER_DID_NOT_SUPPORT_DEPLOY_OF_DATASOURCE);
+ }
+
+ IPath projectPath = new Path("/" //$NON-NLS-1$
+ + project.getName());
+ IPath append = projectPath.append(deploy); //$NON-NLS-1$
+
+ if (SingleDeployableFactory.makeDeployable(append)) {
+ try {
+ IModule module = SingleDeployableFactory.findModule(append);
+ IServerWorkingCopy copy = s.createWorkingCopy();
+ copy.modifyModules(new IModule[]{module}, new IModule[0], new NullProgressMonitor());
+ IServer saved = copy.save(false, new NullProgressMonitor());
+ saved.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());
+ } catch( CoreException ce ) {
+ return new Status(Status.WARNING, SeamCorePlugin.PLUGIN_ID,
+ SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_COULD_NOT_DEPLOY_DATASOURCE + append, ce);
+ }
+ return Status.OK_STATUS;
+ } else {
+ return new Status(Status.WARNING, SeamCorePlugin.PLUGIN_ID,
+ SeamCoreMessages.DATA_SOURCE_XML_DEPLOYER_COULD_NOT_DEPLOY_DATASOURCE + append); //$NON-NLS-1$
+ }
+ }
+}
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ResourceDeployer.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23FacetInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23FacetInstallDelegate.java 2012-05-03 22:59:08 UTC (rev 40773)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23FacetInstallDelegate.java 2012-05-04 00:01:57 UTC (rev 40774)
@@ -10,13 +10,20 @@
******************************************************************************/
package org.jboss.tools.seam.internal.core.project.facet;
+import java.io.File;
+
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.datatools.connectivity.IConnectionProfile;
-import org.eclipse.datatools.connectivity.ProfileManager;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.internal.ChainedJob;
+import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
+import org.jboss.tools.jst.web.server.RegistrationHelper;
+import org.jboss.tools.seam.core.SeamCorePlugin;
/**
* @author Alexey Kazakov
@@ -34,12 +41,58 @@
return;
}
if(isWarConfiguration(model)) {
-
+ File destFolder = new File(project.getLocation().toFile(), "resources"); //$NON-NLS-1$
+ copyDBDriverToProject(project, model, destFolder);
}
}
- protected static void copyDBDriverToProject() {
- String connectionProfileName = null;
- IConnectionProfile connProfile = ProfileManager.getInstance().getProfileByName(connectionProfileName.toString());
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.internal.core.project.facet.Seam2FacetInstallDelegate#getProjectCreator(org.eclipse.wst.common.frameworks.datamodel.IDataModel, org.eclipse.core.resources.IProject)
+ */
+ @Override
+ protected SeamProjectCreator getProjectCreator(IDataModel model, IProject project) {
+ return new Seam23ProjectCreator(model, project);
}
+
+ /**
+ * Copies and deploys the driver jar from connection profile to the server.
+ * @param project
+ * @param model
+ * @param destFolder
+ */
+ public static void copyDBDriverToProject(IProject project, IDataModel model, File destFolder) {
+ Object drvrs = model.getProperty(ISeamFacetDataModelProperties.JDBC_DRIVER_JAR_PATH);
+ if(drvrs!=null) {
+ String[] drvrsStrings = (String[])drvrs;
+ if(drvrsStrings.length>0) {
+ File driver = new File(drvrsStrings[0]);
+ if(driver.exists()) {
+ File dest = new File(destFolder, driver.getName());
+ AntCopyUtils.copyFileToFile(driver, dest, null, false);
+ IFile resource = null;
+ IFile[] files = project.getWorkspace().getRoot().findFilesForLocationURI(dest.toURI());
+ for (IFile file : files) {
+ if(project.equals(file.getProject())) {
+ resource = file;
+ break;
+ }
+ }
+ if(resource != null) {
+ try {
+ resource.refreshLocal(IResource.DEPTH_ZERO, null);
+ } catch (CoreException e) {
+ SeamCorePlugin.getDefault().logError(e);
+ }
+ JBossServer server = getJBossServer(model);
+ if (server != null) {
+ ChainedJob dsJob = new ResourceDeployer(project, server.getServer(), resource.getFullPath().removeFirstSegments(1));
+ dsJob.setNextJob(RegistrationHelper.getRegisterInServerJob(project, new IServer[]{server.getServer()}, null));
+ dsJob.schedule();
+ }
+ }
+ }
+ }
+ }
+ }
}
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23ProjectCreator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23ProjectCreator.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23ProjectCreator.java 2012-05-04 00:01:57 UTC (rev 40774)
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.internal.core.project.facet;
+
+import java.io.File;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class Seam23ProjectCreator extends Seam2ProjectCreator {
+
+ public Seam23ProjectCreator(IDataModel model, IProject seamWebProject) {
+ super(model, seamWebProject);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.internal.core.project.facet.SeamProjectCreator#execute(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ @Override
+ public void execute(IProgressMonitor monitor) throws CoreException {
+ super.execute(monitor);
+ if(ISeamFacetDataModelProperties.DEPLOY_AS_EAR.equals(model.getProperty(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS))) {
+ IProject earProject = seamWebProject.getWorkspace().getRoot().getProject(earProjectName);
+ File destFolder = new File(earProjectFolder, "resources");
+ Seam23FacetInstallDelegate.copyDBDriverToProject(earProject, model, destFolder);
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam23ProjectCreator.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2012-05-03 22:59:08 UTC (rev 40773)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2012-05-04 00:01:57 UTC (rev 40774)
@@ -87,6 +87,9 @@
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.ServerCore;
+import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.SeamCoreMessages;
@@ -1323,4 +1326,42 @@
protected boolean shouldCopyLibraries(IDataModel model){
return model.getBooleanProperty(ISeamFacetDataModelProperties.SEAM_RUNTIME_LIBRARIES_COPYING);
}
+
+ /**
+ * Returns the server defined in the model.
+ * @param model
+ * @return
+ */
+ public static IServer getServer(IDataModel model) {
+ Object serverObject = model.getProperty(ISeamFacetDataModelProperties.JBOSS_AS_TARGET_SERVER);
+ IServer server = null;
+ if(serverObject instanceof String) {
+ IServer[] servers = ServerCore.getServers();
+ for (IServer i : servers) {
+ if(serverObject.equals(i.getName())) {
+ server = i;
+ break;
+ }
+ }
+ } else if(serverObject instanceof IServer) {
+ server = (IServer)serverObject;
+ }
+ return server;
+ }
+
+ /**
+ * If the server defined in the model is a JBoss AS then return it.
+ * @param model
+ * @return
+ */
+ public static JBossServer getJBossServer(IDataModel model) {
+ IServer server = getServer(model);
+ if(server!=null) {
+ JBossServer jbs = (JBossServer) server.loadAdapter(JBossServer.class, new NullProgressMonitor());
+ if (jbs != null) {
+ return jbs;
+ }
+ }
+ return null;
+ }
}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamProjectCreator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamProjectCreator.java 2012-05-03 22:59:08 UTC (rev 40773)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamProjectCreator.java 2012-05-04 00:01:57 UTC (rev 40774)
@@ -35,7 +35,6 @@
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.core.model.IFilteredStep;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2012-05-03 22:59:08 UTC (rev 40773)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2012-05-04 00:01:57 UTC (rev 40774)
@@ -78,15 +78,16 @@
import org.eclipse.wst.server.ui.ServerUIUtil;
import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
import org.jboss.tools.jst.web.server.RegistrationHelper;
-import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.SeamCoreMessages;
+import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.project.facet.SeamProjectPreferences;
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
import org.jboss.tools.seam.core.project.facet.SeamVersion;
import org.jboss.tools.seam.internal.core.project.facet.AntCopyUtils;
-import org.jboss.tools.seam.internal.core.project.facet.DataSourceXmlDeployer;
+import org.jboss.tools.seam.internal.core.project.facet.ResourceDeployer;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
+import org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate;
import org.jboss.tools.seam.internal.core.project.facet.SeamFacetInstallDelegate;
import org.jboss.tools.seam.internal.core.project.facet.SeamFacetProjectCreationDataModelProvider;
import org.jboss.tools.seam.ui.ISeamHelpContextIds;
@@ -411,19 +412,7 @@
// register project on the selected server;
// deploy datasource xml file to the selected server;
- Object serverObject = model.getProperty(ISeamFacetDataModelProperties.JBOSS_AS_TARGET_SERVER);
- IServer server = null;
- if(serverObject instanceof String) {
- IServer[] servers = ServerCore.getServers();
- for (IServer i : servers) {
- if(serverObject.equals(i.getName())) {
- server = i;
- break;
- }
- }
- } else if(serverObject instanceof IServer) {
- server = (IServer)serverObject;
- }
+ IServer server = SeamFacetAbstractInstallDelegate.getServer(model);
if (server != null) {
JBossServer jbs = (JBossServer) server.loadAdapter(JBossServer.class, new NullProgressMonitor());
if (jbs != null) {
@@ -435,19 +424,19 @@
}
}
}
-
+
IPath filePath = new Path("resources").append(warProject.getName() + "-ds.xml");
ChainedJob dsJob = null;
if (deployAsEar) {
- dsJob = new DataSourceXmlDeployer(earProject, server, filePath);
+ dsJob = new ResourceDeployer(earProject, server, filePath);
} else {
- dsJob = new DataSourceXmlDeployer(warProject, server, filePath);
+ dsJob = new ResourceDeployer(warProject, server, filePath);
}
dsJob.setNextJob(RegistrationHelper.getRegisterInServerJob(warProject, new IServer[]{server}, null));
dsJob.schedule();
}
}
-
+
private void provideClassPath(List<IProject> projects, IProject ejbProject) throws CoreException {
if(ejbProject == null) return;
int k = 0;
12 years, 8 months
JBoss Tools SVN: r40773 - trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-05-03 18:59:08 -0400 (Thu, 03 May 2012)
New Revision: 40773
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/OpenOnTest.java
Log:
cleaning projects before testing OpenOn added
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/OpenOnTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/OpenOnTest.java 2012-05-03 19:43:53 UTC (rev 40772)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/OpenOnTest.java 2012-05-03 22:59:08 UTC (rev 40773)
@@ -121,6 +121,9 @@
wizard.createCDIComponentWithContent(CDIWizardType.BEAN, "MainBean",
getPackageName(), null, "/resources/openon/InjectedPoints/MainBean.java.cdi");
+ util.waitForNonIgnoredJobs();
+ eclipse.cleanAllProjects();
+
}
private void checkInjectedPoint(String injectedPoint, String option) {
12 years, 8 months