JBoss Tools SVN: r37271 - branches/jbosstools-3.3.0.M5/jsf/plugins/org.jboss.tools.jsf.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2011-12-13 11:01:15 -0500 (Tue, 13 Dec 2011)
New Revision: 37271
Modified:
branches/jbosstools-3.3.0.M5/jsf/plugins/org.jboss.tools.jsf/plugin.xml
Log:
JBIDE-10438 XHTML Validator hangs eclipse
XHTML Validator is disabled for branch jbosstools-3.3.0.M5
Modified: branches/jbosstools-3.3.0.M5/jsf/plugins/org.jboss.tools.jsf/plugin.xml
===================================================================
--- branches/jbosstools-3.3.0.M5/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2011-12-13 14:57:57 UTC (rev 37270)
+++ branches/jbosstools-3.3.0.M5/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2011-12-13 16:01:15 UTC (rev 37271)
@@ -391,7 +391,7 @@
</listener>
</extension>
- <extension id="xhtml" name="%XHTML_Validator.name"
+ <!-- extension id="xhtml" name="%XHTML_Validator.name"
point="org.eclipse.wst.validation.validatorV2">
<validator
build="true"
@@ -419,7 +419,7 @@
</rules>
</include>
</validator>
- </extension>
+ </extension -->
<extension point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution id="default">
14 years, 4 months
JBoss Tools SVN: r37270 - trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-12-13 09:57:57 -0500 (Tue, 13 Dec 2011)
New Revision: 37270
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/ShowJBossCentral.java
Log:
JBIDE-10466 JBoss Central opens after startup even if it is not set so.
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/ShowJBossCentral.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/ShowJBossCentral.java 2011-12-13 14:49:38 UTC (rev 37269)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/ShowJBossCentral.java 2011-12-13 14:57:57 UTC (rev 37270)
@@ -30,22 +30,17 @@
public void earlyStartup() {
boolean showJBossCentral = JBossCentralActivator.getDefault()
.showJBossCentralOnStartup();
+ IEclipsePreferences prefs = JBossCentralActivator.getDefault()
+ .getPreferences();
+ Bundle usage = Platform.getBundle(ORG_JBOSS_TOOLS_USAGE);
+ Bundle central = Platform.getBundle(JBossCentralActivator.PLUGIN_ID);
if (!showJBossCentral) {
- Bundle usage = Platform.getBundle(ORG_JBOSS_TOOLS_USAGE);
if (usage != null) {
Version version = usage.getVersion();
String versionString = version.toString();
- IEclipsePreferences prefs = JBossCentralActivator.getDefault()
- .getPreferences();
String savedVersion = prefs.get(ORG_JBOSS_TOOLS_USAGE, "");
- Bundle central = Platform
- .getBundle(JBossCentralActivator.PLUGIN_ID);
if (!savedVersion.equals(versionString)) {
showJBossCentral = true;
- prefs.put(ORG_JBOSS_TOOLS_USAGE, versionString);
- if (central != null) {
- prefs.put(JBossCentralActivator.PLUGIN_ID, central.getVersion().toString());
- }
} else {
if (central != null) {
version = central.getVersion();
@@ -54,15 +49,18 @@
JBossCentralActivator.PLUGIN_ID, "");
if (!savedVersion.equals(versionString)) {
showJBossCentral = true;
- prefs.put(JBossCentralActivator.PLUGIN_ID, versionString);
}
}
}
}
}
+ saveVersion(prefs, usage, ORG_JBOSS_TOOLS_USAGE);
+ saveVersion(prefs, central, JBossCentralActivator.PLUGIN_ID);
+
if (!showJBossCentral) {
return;
}
+
Display.getDefault().asyncExec(new Runnable() {
@Override
@@ -72,4 +70,16 @@
});
}
+ protected void saveVersion(IEclipsePreferences prefs, Bundle bundle, String preference) {
+ if (bundle == null || prefs == null || preference == null) {
+ return;
+ }
+ Version version = bundle.getVersion();
+ String versionString = version.toString();
+ String savedVersion = prefs.get(preference, "");
+ if (!savedVersion.equals(versionString)) {
+ prefs.put(preference, versionString);
+ }
+ }
+
}
14 years, 4 months
JBoss Tools SVN: r37269 - in trunk: archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model and 24 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-12-13 09:49:38 -0500 (Tue, 13 Dec 2011)
New Revision: 37269
Removed:
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/AltMethodZippedFolderPublisher.java
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/PackagesPublisher.java
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/SingleFolderZippedPublisher.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IPollerFailureHandler.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7ServerBehavior.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/JBoss7RuntimeClasspathUtil.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ModuleUtil.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreAction.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreActionDelegate.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeJava6WizardFragment.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerActionProvider.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerContentProvider.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerLabelProvider.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServersView.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServersViewDropAdapterAssistant.java
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ReferenceResolverUtil.java
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/build/SaveArchivesJob.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveModel.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.jdt.integration/src/org/jboss/ide/eclipse/archives/jdt/integration/ui/LibFilesetWizard.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/AbstractArchiveWizard.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/FilesetWizard.java
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/filesets/FilesetContentProvider.java
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/ArchivesModelModuleContributor.java
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/LocalZippedPublisherUtil.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathCategory.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathQuery.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/AbstractPublishMethod.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossServerRuntime.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerConverter.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerUtil.java
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEHostShellModel.java
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBossStartLaunchDelegate.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/XPathDialogs.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/XPathActionProvider.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/util/ServerModelUtilities.java
trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/src/org/jboss/ide/eclipse/as/archives/integration/test/BuildDeployTest.java
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/MockPublishMethod.java
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
Log:
JBIDE-10465 - removal of deprecated cruft
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/build/SaveArchivesJob.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/build/SaveArchivesJob.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/build/SaveArchivesJob.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -43,7 +43,7 @@
}
}
try {
- ArchivesModel.instance().save(projectPath, new NullProgressMonitor());
+ ArchivesModel.instance().getRoot(projectPath).save(new NullProgressMonitor());
} catch( ArchivesModelException ame ) {
IStatus status = new Status(IStatus.ERROR, ArchivesCorePlugin.PLUGIN_ID, ArchivesCoreMessages.ErrorUpdatingModel, ame);
return status;
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -23,8 +23,8 @@
import org.jboss.ide.eclipse.archives.core.ArchivesCoreMessages;
import org.jboss.ide.eclipse.archives.core.model.internal.ArchiveModelNode;
import org.jboss.ide.eclipse.archives.core.model.internal.xb.XMLBinding;
-import org.jboss.ide.eclipse.archives.core.model.internal.xb.XbPackages;
import org.jboss.ide.eclipse.archives.core.model.internal.xb.XMLBinding.XbException;
+import org.jboss.ide.eclipse.archives.core.model.internal.xb.XbPackages;
import org.jboss.ide.eclipse.archives.core.util.ModelUtil;
/**
@@ -135,16 +135,6 @@
return (archivesRoot.get(project));
}
- @Deprecated
- public void save(IPath projectPath, IProgressMonitor monitor) throws ArchivesModelException {
- save(getRoot(projectPath), monitor);
- }
-
- @Deprecated
- public void save(IArchiveModelRootNode modelNode, IProgressMonitor monitor) throws ArchivesModelException {
- modelNode.save(monitor);
- }
-
public boolean isProjectRegistered(IPath projectPath) {
return projectPath != null && archivesRoot.containsKey(projectPath);
}
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveModel.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveModel.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveModel.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -25,8 +25,6 @@
public static final String DEFAULT_PACKAGES_FILE = ".packages"; //$NON-NLS-1$
public boolean isProjectRegistered(IPath projectPath);
- public void save(IPath projectPath, IProgressMonitor monitor) throws ArchivesModelException;
- public void save(IArchiveModelRootNode modelNode, IProgressMonitor monitor) throws ArchivesModelException;
public IArchiveModelRootNode registerProject(IPath projectPath, IProgressMonitor monitor) throws ArchivesModelException;
public IArchiveModelRootNode registerProject(IPath projectPath, String file, IProgressMonitor monitor) throws ArchivesModelException;
public void registerProject(IArchiveModelRootNode modelNode, IProgressMonitor monitor);
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.jdt.integration/src/org/jboss/ide/eclipse/archives/jdt/integration/ui/LibFilesetWizard.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.jdt.integration/src/org/jboss/ide/eclipse/archives/jdt/integration/ui/LibFilesetWizard.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.jdt.integration/src/org/jboss/ide/eclipse/archives/jdt/integration/ui/LibFilesetWizard.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -54,7 +54,7 @@
if (createFileset)
parentNode.addChild(fileset);
try {
- ArchivesModel.instance().save(fileset.getProjectPath(), monitor);
+ ArchivesModel.instance().getRoot(fileset.getProjectPath()).save(monitor);
} catch( ArchivesModelException ame ) {
IStatus status = new Status(IStatus.ERROR, PackagesUIPlugin.PLUGIN_ID, ArchivesUIMessages.ErrorCompletingWizard, ame);
PackagesUIPlugin.getDefault().getLog().log(status);
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/AbstractArchiveWizard.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/AbstractArchiveWizard.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/AbstractArchiveWizard.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -114,7 +114,7 @@
try {
if( create )
parent.addChild(pkg);
- ArchivesModel.instance().save(project.getLocation(), monitor);
+ ArchivesModel.instance().getRoot(project.getLocation()).save( monitor);
} catch( ArchivesModelException ame ) {
IStatus status = new Status(IStatus.ERROR, PackagesUIPlugin.PLUGIN_ID, ArchivesUIMessages.ErrorCompletingWizard, ame);
PackagesUIPlugin.getDefault().getLog().log(status);
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/FilesetWizard.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/FilesetWizard.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/FilesetWizard.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -55,7 +55,7 @@
if (createFileset)
parentNode.addChild(fileset);
try {
- ArchivesModel.instance().save(fileset.getProjectPath(), monitor);
+ ArchivesModel.instance().getRoot(fileset.getProjectPath()).save( monitor);
} catch( ArchivesModelException ame ) {
IStatus status = new Status(IStatus.ERROR, PackagesUIPlugin.PLUGIN_ID, ArchivesUIMessages.ErrorCompletingWizard, ame);
PackagesUIPlugin.getDefault().getLog().log(status);
Modified: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/filesets/FilesetContentProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/filesets/FilesetContentProvider.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/filesets/FilesetContentProvider.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -144,29 +144,10 @@
private Fileset[] loadFilesets() {
if( FilesetUtil.getFile(server).exists()) {
return FilesetUtil.loadFilesets(server);
- } else {
- return loadFilesets_LEGACY();
- }
+ }
+ return new Fileset[0];
}
- @Deprecated
- private Fileset[] loadFilesets_LEGACY() {
- Fileset[] filesets = new Fileset[0];
- if (server != null) {
- ServerAttributeHelper helper = ServerAttributeHelper
- .createHelper(server);
- List<String> tmp = (ArrayList<String>)helper.getAttribute(FILESET_KEY, new ArrayList<String>());
- String[] asStrings = (String[]) tmp.toArray(new String[tmp
- .size()]);
- filesets = new Fileset[asStrings.length];
- for (int i = 0; i < asStrings.length; i++) {
- filesets[i] = new Fileset(asStrings[i]);
- filesets[i].setServer(server);
- }
- }
- return filesets;
- }
-
public void saveFilesets() {
FilesetUtil.saveFilesets(server, children);
}
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/AltMethodZippedFolderPublisher.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/AltMethodZippedFolderPublisher.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/AltMethodZippedFolderPublisher.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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
- *
- * TODO: Logging and Progress Monitors
- ******************************************************************************/
-package org.jboss.ide.eclipse.archives.webtools.modules;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.core.modules.SingleDeployableFactory;
-import org.jboss.ide.eclipse.as.core.publishers.LocalPublishMethod;
-import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
-import org.jboss.ide.eclipse.as.core.util.ServerConverter;
-import org.jboss.ide.eclipse.as.wtp.core.modules.IJBTModule;
-
-/**
- * This class is in charge of RSE zipped publishing for deployable folders
- */
-@Deprecated
-public class AltMethodZippedFolderPublisher extends AltMethodZippedJSTPublisher {
- public boolean accepts(String method, IServer server, IModule[] module) {
- if( LocalPublishMethod.LOCAL_PUBLISH_METHOD.equals(method))
- return false;
-
- IDeployableServer ds = ServerConverter.getDeployableServer(server);
- if( module != null && module.length > 0
- && module[module.length-1] != null
- && module[module.length-1].getModuleType().getId().equals(SingleDeployableFactory.MODULE_TYPE)) {
- IModule mod = module[module.length-1];
- IJBTModule del = (IJBTModule)mod.loadAdapter(IJBTModule.class, new NullProgressMonitor());
- if( del != null && !del.isBinary())
- return ds != null && ds.zipsWTPDeployments();; // we have a folder
- }
- return false;
- }
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/ArchivesModelModuleContributor.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/ArchivesModelModuleContributor.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/ArchivesModelModuleContributor.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -91,7 +91,7 @@
projectToModules.put(project.getLocation(), mods);
if( requiresSave ) {
try {
- ArchivesModel.instance().save(project.getLocation(),
+ ArchivesModel.instance().getRoot(project.getLocation()).save(
new NullProgressMonitor());
} catch( ArchivesModelException ame ) {
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/LocalZippedPublisherUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/LocalZippedPublisherUtil.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/LocalZippedPublisherUtil.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -229,7 +229,7 @@
IPath path = getOutputFilePath(combine(parent, last));
path = path.removeLastSegments(1);
de.schlichtherle.io.File root = TrueZipUtil.getFile(path, TrueZipUtil.getJarArchiveDetector());
- IModuleResource[] resources = getResources(last);
+ IModuleResource[] resources = getResources(last, new NullProgressMonitor());
results.addAll(Arrays.asList(copy(root, resources)));
TrueZipUtil.umount();
return (IStatus[]) results.toArray(new IStatus[results.size()]);
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/PackagesPublisher.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/PackagesPublisher.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/PackagesPublisher.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 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.ide.eclipse.archives.webtools.modules;
-
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.core.publishers.LocalPublishMethod;
-import org.jboss.ide.eclipse.as.core.server.internal.v7.JBoss7JSTPublisher;
-
-@Deprecated
-public class PackagesPublisher extends JBoss7JSTPublisher {
- public boolean accepts(String method, IServer server, IModule[] module) {
-// if( LocalPublishMethod.LOCAL_PUBLISH_METHOD.equals(method) &&
-// verifyModuleType(module, PackageModuleFactory.MODULE_TYPE))
-// return true;
- return false;
- }
-}
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/SingleFolderZippedPublisher.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/SingleFolderZippedPublisher.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/modules/SingleFolderZippedPublisher.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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
- *
- * TODO: Logging and Progress Monitors
- ******************************************************************************/
-package org.jboss.ide.eclipse.archives.webtools.modules;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.core.modules.SingleDeployableFactory;
-import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
-import org.jboss.ide.eclipse.as.core.util.ServerConverter;
-import org.jboss.ide.eclipse.as.wtp.core.modules.IJBTModule;
-
-@Deprecated
-public class SingleFolderZippedPublisher extends WTPZippedPublisher {
- public boolean accepts(String method, IServer server, IModule[] module) {
- IDeployableServer ds = ServerConverter.getDeployableServer(server);
- if( module != null && module.length > 0
- && module[module.length-1] != null
- && module[module.length-1].getModuleType().getId().equals(SingleDeployableFactory.MODULE_TYPE)) {
- IModule mod = module[module.length-1];
- IJBTModule del = (IJBTModule)mod.loadAdapter(IJBTModule.class, new NullProgressMonitor());
- if( del != null && !del.isBinary() && ds.zipsWTPDeployments())
- return true; // we have a folder
- }
- return false;
- }
-}
\ No newline at end of file
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathCategory.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathCategory.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathCategory.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -10,13 +10,9 @@
******************************************************************************/
package org.jboss.ide.eclipse.as.core.extensions.descriptors;
-import java.util.ArrayList;
import java.util.HashMap;
-import java.util.List;
-import org.eclipse.core.runtime.Path;
import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.core.server.internal.ServerAttributeHelper;
import org.jboss.ide.eclipse.as.core.util.internal.IMemento;
/**
@@ -26,48 +22,22 @@
*
*/
public class XPathCategory {
- @Deprecated private static final String DELIMITER = ","; //$NON-NLS-1$
- @Deprecated private static final String QUERY_LIST =
- "org.jboss.ide.eclipse.as.core.model.descriptor.QueryList"; //$NON-NLS-1$
- @Deprecated private static final String QUERY =
- "org.jboss.ide.eclipse.as.core.model.descriptor.Query"; //$NON-NLS-1$
-
-
protected String name; // cannot include delimiter from the model, comma
protected IServer server;
protected IMemento memento;
protected HashMap<String, XPathQuery> children;
- @Deprecated
+ /**
+ * Create a stub empty category
+ * @param name
+ * @param server
+ */
public XPathCategory(String name, IServer server) {
this.name = name;
this.server = server;
children = new HashMap<String, XPathQuery>();
- XPathQuery[] queries = loadQueries_LEGACY(this, server);
- for( int i = 0; i < queries.length; i++ ) {
- children.put(queries[i].getName(), queries[i]);
- }
}
- private static XPathQuery[] loadQueries_LEGACY(XPathCategory category, IServer server) {
- ServerAttributeHelper helper = ServerAttributeHelper.createHelper(server);
- String list = helper.getAttribute(QUERY_LIST + '.' + category.getName().replace(' ', '_'), (String)null);
- if( list == null )
- return new XPathQuery[] {};
- String[] queriesByName = list.split(DELIMITER);
- List<String> queryAsStringValues;
- ArrayList<XPathQuery> returnList = new ArrayList<XPathQuery>();
- for( int i = 0; i < queriesByName.length; i++ ) {
- queryAsStringValues = helper.getAttribute(QUERY + '.' + queriesByName[i].replace(' ', '_'), (List)null);
- if( queryAsStringValues != null ) {
- XPathQuery q =new XPathQuery(queriesByName[i].substring(queriesByName[i].indexOf(Path.SEPARATOR)+1), queryAsStringValues);
- q.setCategory(category);
- returnList.add(q);
- }
- }
- return (XPathQuery[]) returnList.toArray(new XPathQuery[returnList.size()]);
- }
-
public XPathCategory(IServer server, IMemento memento) {
this.server = server;
this.name = memento.getString("name"); //$NON-NLS-1$
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathQuery.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathQuery.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathQuery.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -71,11 +71,6 @@
setEffectiveBaseDir();
}
- @Deprecated
- public XPathQuery(IMemento memento) {
- this(memento, null);
- }
-
public XPathQuery(String name, List list) {
this.name = name;
this.baseDir = list.get(0).equals(XPathModel.EMPTY_STRING) ? null : (String)list.get(0);
@@ -97,11 +92,6 @@
setEffectiveBaseDir();
}
- @Deprecated
- public XPathQuery(String name, String baseDir, String filePattern, String xpathPattern, String attribute) {
- this(null, name, baseDir, filePattern, xpathPattern, attribute);
- }
-
private void setEffectiveBaseDir() {
IPath dir = baseDir == null ? null : new Path(baseDir);
if( dir == null && category != null) {
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -49,7 +49,6 @@
import org.eclipse.wst.server.core.internal.ModuleFactory;
import org.eclipse.wst.server.core.internal.PublishServerJob;
import org.eclipse.wst.server.core.internal.ServerPlugin;
-import org.eclipse.wst.server.core.model.IModuleFolder;
import org.eclipse.wst.server.core.model.IModuleResource;
import org.eclipse.wst.server.core.model.ModuleDelegate;
import org.eclipse.wst.server.core.model.ModuleFactoryDelegate;
@@ -184,39 +183,6 @@
}
}
- /**
- * Saves the deployable list for ALL files.
- * Should not be used
- * @deprecated
- */
- public void saveDeployableList() {
- HashMap<String, String> map = new HashMap<String, String>();
- IProject[] allProjects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
- for( int i = 0; i < allProjects.length; i++)
- map.put(allProjects[i].getName(), ""); //$NON-NLS-1$
-
- Set<IPath> allPaths = moduleIdToModule.keySet();
- Iterator<IPath> j = allPaths.iterator();
- IPath tmp;
- while(j.hasNext()) {
- tmp = j.next();
- map.put(tmp.segment(0), map.get(tmp.segment(0)) + tmp.removeFirstSegments(1).makeRelative() + "\n"); //$NON-NLS-1$
- }
-
- String qualifier = JBossServerCorePlugin.getDefault().getDescriptor().getUniqueIdentifier();
- for( int k = 0; k < allProjects.length; k++ ) {
- IScopeContext context = new ProjectScope(allProjects[k]);
- IEclipsePreferences node = context.getNode(qualifier);
- if (node != null)
- node.put(PREFERENCE_KEY, map.get(allProjects[k].getName()));
- try {
- node.flush();
- } catch (BackingStoreException e) {
- // TODO Log
- }
- }
- }
-
public void saveDeployableList(String projectName) {
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
String list = ""; //$NON-NLS-1$
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/AbstractPublishMethod.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/AbstractPublishMethod.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/AbstractPublishMethod.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -20,18 +20,12 @@
import org.jboss.ide.eclipse.as.core.ExtensionManager;
import org.jboss.ide.eclipse.as.core.extensions.events.ServerLogger;
import org.jboss.ide.eclipse.as.core.server.IJBossServerPublishMethod;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerPublishMethodType;
import org.jboss.ide.eclipse.as.core.server.IJBossServerPublisher;
import org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior;
public abstract class AbstractPublishMethod implements IJBossServerPublishMethod {
public abstract String getPublishMethodId();
-// @Deprecated
-// public IJBossServerPublishMethodType getPublishMethodType() {
-// return ExtensionManager.getDefault().getPublishMethod(getPublishMethodId());
-// }
-
public void publishStart(DeployableServerBehavior behaviour,
IProgressMonitor monitor) throws CoreException {
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -176,27 +176,15 @@
return root;
}
- /**
+ /*
* This method is deprecated. Please use the following:
* @see getDeployPath(IModule[] module, String folder, IDeployableServer server)
* @param moduleTree
* @param deployFolder
* @return
*/
- @Deprecated
- public static IPath getDeployPath(IModule[] moduleTree, String deployFolder) {
- IPath root = new Path( deployFolder );
- String type, modName, name, uri, suffixedName;
- for( int i = 0; i < moduleTree.length; i++ ) {
- type = moduleTree[i].getModuleType().getId();
- modName = moduleTree[i].getName();
- name = new Path(modName).lastSegment();
- suffixedName = name + getSuffix(type);
- uri = getParentRelativeURI(moduleTree, i, suffixedName);
- root = root.append(uri);
- }
- return root;
- }
+ // @Deprecated
+ //public static IPath getDeployPath(IModule[] moduleTree, String deployFolder);
private static String getParentRelativeURI(IModule[] tree, int index, String defaultName) {
if( index != 0 ) {
@@ -268,17 +256,6 @@
return suffix;
}
- @Deprecated
- public static boolean isBinaryObject(IModule[] moduleTree) {
- IModule lastMod = moduleTree[moduleTree.length-1];
- return ServerModelUtilities.isBinaryModule(lastMod);
- }
-
- @Deprecated
- public static IModuleResource[] getResources(IModule module) throws CoreException {
- return getResources(module, new NullProgressMonitor());
- }
-
public static IModuleResource[] getResources(IModule module, IProgressMonitor monitor) throws CoreException {
monitor.beginTask("Fetching Module Resources", 100); //$NON-NLS-1$
ModuleDelegate md = (ModuleDelegate)module.loadAdapter(ModuleDelegate.class, ProgressMonitorUtil.submon(monitor, 100));
@@ -292,7 +269,7 @@
}
public static IModuleResource[] getResources(IModule[] tree) throws CoreException {
- return getResources(tree[tree.length-1]);
+ return getResources(tree[tree.length-1], new NullProgressMonitor());
}
public static File getFile(IModuleResource resource) {
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IPollerFailureHandler.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IPollerFailureHandler.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IPollerFailureHandler.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,19 +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.ide.eclipse.as.core.server;
-
-
-/**
- * @author rob.stryker <rob.stryker(a)redhat.com>
- * @deprecated
- */
-public interface IPollerFailureHandler extends IProvideCredentials {
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -127,13 +127,6 @@
}
}
- @Deprecated
- protected boolean shouldSuspendScanner() {
- if( getServer().getServerState() != IServer.STATE_STARTED)
- return false;
- return true;
- }
-
// Can start / stop / restart etc
@Override
public IStatus canStart(String launchMode) {
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -104,21 +104,19 @@
public String getDeployFolder() {
- IJBossServerRuntime jbsrt = getRuntime();
- return ServerUtil.makeGlobal(jbsrt, new Path(getAttribute(DEPLOY_DIRECTORY, ""))).toString(); //$NON-NLS-1$
+ return ServerUtil.makeGlobal(getServer().getRuntime(), new Path(getAttribute(DEPLOY_DIRECTORY, ""))).toString(); //$NON-NLS-1$
}
public void setDeployFolder(String folder) {
- setAttribute(DEPLOY_DIRECTORY, ServerUtil.makeRelative(getRuntime(), new Path(folder)).toString());
+ setAttribute(DEPLOY_DIRECTORY, ServerUtil.makeRelative(getServer().getRuntime(), new Path(folder)).toString());
}
public String getTempDeployFolder() {
- IJBossServerRuntime jbsrt = getRuntime();
- return ServerUtil.makeGlobal(jbsrt, new Path(getAttribute(TEMP_DEPLOY_DIRECTORY, ""))).toString(); //$NON-NLS-1$
+ return ServerUtil.makeGlobal(getServer().getRuntime(), new Path(getAttribute(TEMP_DEPLOY_DIRECTORY, ""))).toString(); //$NON-NLS-1$
}
public void setTempDeployFolder(String folder) {
- setAttribute(TEMP_DEPLOY_DIRECTORY, ServerUtil.makeRelative(getRuntime(), new Path(folder)).toString());
+ setAttribute(TEMP_DEPLOY_DIRECTORY, ServerUtil.makeRelative(getServer().getRuntime(), new Path(folder)).toString());
}
public void setDeployLocationType(String type) {
@@ -158,20 +156,6 @@
return RuntimeUtils.getJBossServerRuntime(getServer());
}
- /**
- * @Deprecated
- * @see RuntimeUtils.getJBossServerRuntime(getServer())
- */
- public static IJBossServerRuntime getRuntime(IServer server) {
- IJBossServerRuntime ajbsrt = null;
- if( server.getRuntime() != null ) {
- ajbsrt = (IJBossServerRuntime) server.getRuntime()
- .loadAdapter(IJBossServerRuntime.class,
- new NullProgressMonitor());
- }
- return ajbsrt;
- }
-
public boolean hasJMXProvider() {
return false;
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -38,7 +38,6 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.jst.server.core.IWebModule;
import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IRuntime;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.core.model.IURLProvider;
import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
@@ -46,10 +45,10 @@
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathQuery;
import org.jboss.ide.eclipse.as.core.publishers.LocalPublishMethod;
import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerPublishMethodType;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader;
import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
+import org.jboss.ide.eclipse.as.core.util.RuntimeUtils;
import org.jboss.ide.eclipse.as.core.util.ServerUtil;
/**
@@ -104,17 +103,17 @@
}
/**
- * No changes will be made to this API and new server
- * types are expected to override the getDeployFolder() api's
+ * Legacy method used by some (such as UI) who want to
+ * deeply introspect the value for specific deployment location
+ * constants.
*
* @param jbs
* @param type
* @return
*/
- @Deprecated
public static String getDeployFolder(JBossServer jbs, String type) {
IServer server = jbs.getServer();
- IJBossServerRuntime jbsrt = getRuntime(server);
+ IJBossServerRuntime jbsrt = RuntimeUtils.getJBossServerRuntime(server);
if( type.equals(DEPLOY_CUSTOM)) {
String val = jbs.getAttribute(DEPLOY_DIRECTORY, (String)null);
if( val != null ) {
@@ -141,10 +140,18 @@
return getTempDeployFolder(this, getDeployLocationType());
}
- @Deprecated
+ /**
+ * Legacy method used by some (such as UI) who want to
+ * deeply introspect the value for specific deployment location
+ * constants.
+ *
+ * @param jbs
+ * @param type
+ * @return
+ */
public static String getTempDeployFolder(JBossServer jbs, String type) {
IServer server = jbs.getServer();
- IJBossServerRuntime jbsrt = getRuntime(server);
+ IJBossServerRuntime jbsrt =RuntimeUtils.getJBossServerRuntime(server);
if( type.equals(DEPLOY_CUSTOM))
return ServerUtil.makeGlobal(jbsrt.getRuntime(),
new Path(server.getAttribute(TEMP_DEPLOY_DIRECTORY, ""))).toString(); //$NON-NLS-1$
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,183 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 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.ide.eclipse.as.core.server.internal;
-
-import java.util.HashMap;
-
-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.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.core.publishers.AbstractServerToolsPublisher;
-import org.jboss.ide.eclipse.as.core.publishers.JSTPublisherXMLToucher;
-import org.jboss.ide.eclipse.as.core.publishers.LocalPublishMethod;
-import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
-import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerPublishMethod;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerPublishMethodType;
-import org.jboss.ide.eclipse.as.core.server.internal.launch.DelegatingStartLaunchConfiguration;
-import org.jboss.ide.eclipse.as.core.server.xpl.PublishCopyUtil.IPublishCopyCallbackHandler;
-import org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader;
-import org.jboss.ide.eclipse.as.core.util.LaunchCommandPreferences;
-import org.jboss.ide.eclipse.as.core.util.ServerConverter;
-import org.jboss.ide.eclipse.as.wtp.core.util.ServerModelUtilities;
-
-/**
- *
- * @author Rob Stryker
- *
- */
-@Deprecated
-public class JBossServerBehavior extends DeployableServerBehavior {
-
- /**
- * TODO: move to its own file (so that we can hide implementations and export interfaces) & rename to IJBossBehaviourDelegate
- */
- public static interface JBossBehaviourDelegate {
- public String getBehaviourTypeId();
- public void setActualBehaviour(JBossServerBehavior actualBehaviour);
- public void stop(boolean force);
- public void publishStart(final IProgressMonitor monitor) throws CoreException;
- public void publishFinish(final IProgressMonitor monitor) throws CoreException;
- public void setServerStarting();
- public void setServerStopping();
- public IStatus canChangeState(String launchMode);
- public String getDefaultStopArguments() throws CoreException;
- }
-
- private static HashMap<String, Class> delegateClassMap;
- static {
- delegateClassMap = new HashMap<String, Class>();
- delegateClassMap.put(LocalPublishMethod.LOCAL_PUBLISH_METHOD, LocalJBossBehaviorDelegate.class);
- }
- public static void addDelegateMapping(String s, Class c) {
- delegateClassMap.put(s, c);
- }
-
- public JBossServerBehavior() {
- super();
- }
-
- private JBossBehaviourDelegate delegate;
- private String lastModeId;
- public JBossBehaviourDelegate getDelegate() {
- IJBossServerPublishMethodType type = DeploymentPreferenceLoader.getCurrentDeploymentMethodType(getServer());
- String id = type == null ? LocalPublishMethod.LOCAL_PUBLISH_METHOD : type.getId();
- if( id.equals(lastModeId) && delegate != null && delegate.getBehaviourTypeId().equals(id))
- return delegate;
-
- Class c = getDelegateMap().get(id);
- if( c == null )
- c = getDelegateMap().get(LocalPublishMethod.LOCAL_PUBLISH_METHOD);
-
- try {
- JBossBehaviourDelegate o = (JBossBehaviourDelegate)c.newInstance();
- o.setActualBehaviour(this);
- lastModeId = id;
- delegate = o;
- } catch( InstantiationException ie) {
- } catch( IllegalAccessException iae) {
- }
- return delegate;
- }
-
- protected HashMap<String, Class> getDelegateMap() {
- return delegateClassMap;
- }
-
- public void stop(boolean force) {
- getDelegate().stop(force);
- }
-
- /*
- * This shouldn't be done in the delegate.
- * The launch config class directly should do it and allow all modes
- * to participate?
- */
- public void setupLaunchConfiguration(ILaunchConfigurationWorkingCopy workingCopy, IProgressMonitor monitor) throws CoreException {
- new DelegatingStartLaunchConfiguration().setupLaunchConfiguration(workingCopy, getServer());
- }
-
- public void setRunMode(String mode) {
- setMode(mode);
- }
-
- public void serverStarting() {
- super.setServerStarting();
- getDelegate().setServerStarting();
- }
-
- public void serverStopping() {
- super.setServerStopping();
- getDelegate().setServerStopping();
- }
-
- protected void publishStart(final IProgressMonitor monitor) throws CoreException {
- super.publishStart(monitor);
- getDelegate().publishStart(monitor);
- }
-
- protected void publishFinish(final IProgressMonitor monitor) throws CoreException {
- getDelegate().publishFinish(monitor);
- super.publishFinish(monitor);
- }
-
- public boolean shouldSuspendScanner() {
- if( getServer().getServerState() != IServer.STATE_STARTED)
- return false;
- return true;
- }
-
- // Can start / stop / restart etc
- public IStatus canStart(String launchMode) {
- return canChangeState(launchMode);
- }
- public IStatus canRestart(String launchMode) {
- return canChangeState(launchMode);
- }
- public IStatus canStop() {
- return canChangeState(null);
- }
- public IStatus canStop(String launchMode) {
- return canChangeState(launchMode);
- }
- protected IStatus canChangeState(String launchMode) {
- return getDelegate().canChangeState(launchMode);
- }
-
- public boolean canRestartModule(IModule[] module){
- if( module.length == 1 )
- return true;
- return false;
- }
-
- public void restartModule(IModule[] module, IProgressMonitor monitor) throws CoreException {
- IDeployableServer ds = ServerConverter.getDeployableServer(getServer());
- if( ds == null )
- return;
-
- IJBossServerPublishMethod method = createPublishMethod();
- IPath depPath = PublishUtil.getDeployPath(method, module, ds);
- if( ServerModelUtilities.isBinaryModule(module[module.length-1]) || ds.zipsWTPDeployments()) {
- // touch the file
- method.getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
- } else {
- // touch the descriptor
- IPublishCopyCallbackHandler callback = method.getCallbackHandler(AbstractServerToolsPublisher.getRootPath(depPath).append(depPath), getServer());
- JSTPublisherXMLToucher.getInstance().touch(depPath, module[0], callback);
- }
- }
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossServerRuntime.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossServerRuntime.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossServerRuntime.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -78,14 +78,6 @@
return getNextRuntimeName(base);
}
- /**
- * @deprecated replaced by {@link #isEAP()} and {@link RuntimeUtils#isEAP(IRuntime)}
- */
- @Deprecated
- public static boolean isEAP(IRuntime rt) {
- return rt.getRuntimeType().getId().startsWith("org.jboss.ide.eclipse.as.runtime.eap."); //$NON-NLS-1$
- }
-
public boolean isEAP() {
return getRuntime() != null
&& getRuntime().getRuntimeType() != null
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,196 +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.ide.eclipse.as.core.server.internal.launch;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-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.Status;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate;
-import org.eclipse.jdt.launching.ExecutionArguments;
-import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
-import org.eclipse.jdt.launching.IVMInstall;
-import org.eclipse.jdt.launching.IVMRunner;
-import org.eclipse.jdt.launching.VMRunnerConfiguration;
-import org.eclipse.jst.server.core.ServerProfilerDelegate;
-import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
-import org.jboss.ide.eclipse.as.core.Messages;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
-import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
-import org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior;
-import org.jboss.ide.eclipse.as.core.server.internal.launch.configuration.JBossLaunchConfigProperties;
-import org.jboss.ide.eclipse.as.core.util.LaunchConfigUtils;
-import org.jboss.ide.eclipse.as.core.util.RuntimeUtils;
-import org.jboss.ide.eclipse.as.core.util.ServerConverter;
-import org.jboss.ide.eclipse.as.core.util.ServerUtil;
-
-/**
- * @deprecated replaced by {@link AbstractJBossStartLaunchConfiguration}
- * @author Rob Stryker
- */
-@Deprecated
-public abstract class AbstractJBossLaunchConfigType extends AbstractJavaLaunchConfigurationDelegate {
-
- // we have no need to do anything in pre-launch check
- @Override
- public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor)
- throws CoreException {
- return true;
- }
-
- public void preLaunch(ILaunchConfiguration configuration,
- String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
- // override me
- }
-
- public void postLaunch(ILaunchConfiguration configuration,
- String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
- // override me
- }
-
- @Override
- public void launch(ILaunchConfiguration configuration, String mode,
- ILaunch launch, IProgressMonitor monitor) throws CoreException {
- preLaunch(configuration, mode, launch, monitor);
- actualLaunch(configuration, mode, launch, monitor);
- postLaunch(configuration, mode, launch, monitor);
- }
-
- protected void actualLaunch(ILaunchConfiguration configuration,
- String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
- // And off we go!
- IVMInstall vm = verifyVMInstall(configuration);
- IVMRunner runner = vm.getVMRunner(mode);
-
- if (runner == null && ILaunchManager.PROFILE_MODE.equals(mode)) {
- runner = vm.getVMRunner(ILaunchManager.RUN_MODE);
- }
- if (runner == null) {
- throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, 0,
- Messages.runModeNotSupported, null));
- }
-
- File workingDir = verifyWorkingDirectory(configuration);
- String workingDirName = null;
- if (workingDir != null)
- workingDirName = workingDir.getAbsolutePath();
-
- // Program & VM args
- String pgmArgs = getProgramArguments(configuration);
- String vmArgs = getVMArguments(configuration);
- ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs);
-
- // VM-specific attributes
- Map<?, ?> vmAttributesMap = getVMSpecificAttributesMap(configuration);
-
- // Classpath
- String[] classpath = getClasspath(configuration);
-
- // Environment
- String[] environment = getEnvironment(configuration);
-
- // Create VM config
- String mainType = getMainTypeName(configuration);
- VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainType, classpath);
- runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
- runConfig.setVMArguments(execArgs.getVMArgumentsArray());
- runConfig.setWorkingDirectory(workingDirName);
- runConfig.setVMSpecificAttributesMap(vmAttributesMap);
- runConfig.setEnvironment(environment);
-
- // Bootpath
- String[] bootpath = getBootpath(configuration);
- if (bootpath != null && bootpath.length > 0)
- runConfig.setBootClassPath(bootpath);
-
- setDefaultSourceLocator(launch, configuration);
-
- if (ILaunchManager.PROFILE_MODE.equals(mode)) {
- try {
- ServerProfilerDelegate.configureProfiling(launch, vm, runConfig, monitor);
- } catch (CoreException ce) {
- IServer server = org.eclipse.wst.server.core.ServerUtil.getServer(configuration);
- DelegatingServerBehavior jbsb = (DelegatingServerBehavior) server.getAdapter(DelegatingServerBehavior.class);
- jbsb.stop(true);
- // genericServer.stopImpl();
- throw ce;
- }
- }
- // Launch the configuration
- runner.run(runConfig, launch, monitor);
- }
-
- @Deprecated
- public static JBossServer findJBossServer(String serverId) throws CoreException {
- return ServerConverter.findJBossServer(serverId);
- }
-
- @Deprecated
- public static IJBossServerRuntime findJBossServerRuntime(IServer server) throws CoreException {
- return RuntimeUtils.checkedGetJBossServerRuntime(server);
- }
-
- @Deprecated
- public static void addCPEntry(ArrayList<IRuntimeClasspathEntry> list, JBossServer jbs, String relative) throws CoreException {
- String serverHome = org.jboss.ide.eclipse.as.core.util.ServerUtil.checkedGetServerHome(jbs);
- LaunchConfigUtils.addCPEntry(serverHome, relative, list);
- }
-
- @Deprecated
- public static void addCPEntry(ArrayList<IRuntimeClasspathEntry> list, IPath path) {
- LaunchConfigUtils.addCPEntry(path, list);
- }
-
- @Deprecated
- public static void addJREEntry(List<IRuntimeClasspathEntry> cp, IVMInstall vmInstall) {
- LaunchConfigUtils.addJREEntry(vmInstall, cp);
- }
-
- @Deprecated
- public static void addToolsJar(ArrayList<IRuntimeClasspathEntry> cp, IVMInstall vmInstall) {
- LaunchConfigUtils.addToolsJar(vmInstall, cp);
- }
-
- @Deprecated
- public static ArrayList<String> convertClasspath(List<IRuntimeClasspathEntry> cp) throws CoreException {
- return (ArrayList) LaunchConfigUtils.toStrings(cp);
- }
-
- @Deprecated
- protected static void addDirectory(String serverHome, List<IRuntimeClasspathEntry> classpath,
- String dirName) {
- LaunchConfigUtils.addDirectory(serverHome, classpath, dirName);
- }
-
- @Deprecated
- public static String getServerHome(JBossServer jbs) throws CoreException {
- return ServerUtil.checkedGetServerHome(jbs);
- }
-
- @Deprecated
- public IVMInstall getVMInstall(ILaunchConfiguration configuration) throws CoreException {
- String serverId = new JBossLaunchConfigProperties().getServerId(configuration);
- JBossServer jbs = ServerConverter.findJBossServer(serverId);
- IJBossServerRuntime runtime = RuntimeUtils.checkedGetJBossServerRuntime(jbs.getServer());
- return runtime.getVM();
- }
-
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -50,11 +50,6 @@
private PollThread pollThread;
@Override
- public boolean shouldSuspendScanner() {
- return false;
- }
-
- @Override
public void setupLaunchConfiguration(ILaunchConfigurationWorkingCopy launchConfig, IProgressMonitor monitor)
throws CoreException {
// TODO: implement setup for RSE launch delegate too
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7ServerBehavior.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7ServerBehavior.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7ServerBehavior.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,20 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 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.ide.eclipse.as.core.server.internal.v7;
-
-
-/**
- * @deprecated replaced by {@link DelegatingJBoss7ServerBehavior}
- *
- * @author Rob Stryker
- */
-public class JBoss7ServerBehavior extends DelegatingJBoss7ServerBehavior {
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -283,12 +283,5 @@
for (int i = 0; i < size; i++)
list.add(a[i]);
}
-
- @Deprecated
- public static boolean checkRestartModule(File file) {
- if( file.getName().toLowerCase().endsWith(".jar")) //$NON-NLS-1$
- return true;
- return false;
- }
}
\ No newline at end of file
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/JBoss7RuntimeClasspathUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/JBoss7RuntimeClasspathUtil.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/JBoss7RuntimeClasspathUtil.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,42 +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.ide.eclipse.as.core.util;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
-import org.eclipse.jdt.launching.IVMInstall;
-import org.eclipse.jdt.launching.JavaRuntime;
-import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.core.server.internal.launch.AbstractJBossLaunchConfigType;
-import org.jboss.ide.eclipse.as.core.server.internal.launch.AbstractJBossStartLaunchConfiguration;
-
-public class JBoss7RuntimeClasspathUtil {
-
- @Deprecated
- public static List<String> getClasspath(IServer server, IVMInstall vmInstall) throws CoreException {
- List<IRuntimeClasspathEntry> classpath = new ArrayList<IRuntimeClasspathEntry>();
- classpath.add(getModulesClasspathEntry(server));
- AbstractJBossLaunchConfigType.addJREEntry(classpath, vmInstall);
- List<String> runtimeClassPaths = AbstractJBossLaunchConfigType.convertClasspath(classpath);
- return runtimeClassPaths;
- }
-
- @Deprecated
- public static IRuntimeClasspathEntry getModulesClasspathEntry(IServer server) throws CoreException {
- IPath runtimeLocation = server.getRuntime().getLocation();
- IPath modulesLocation = runtimeLocation.append(IJBossRuntimeResourceConstants.JBOSS7_MODULES_JAR);
- return JavaRuntime.newArchiveRuntimeClasspathEntry(modulesLocation);
- }
-}
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ModuleUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ModuleUtil.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ModuleUtil.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,36 +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.ide.eclipse.as.core.util;
-
-import java.util.ArrayList;
-
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.wtp.core.util.ServerModelUtilities;
-
-@Deprecated
-/**
- * Please use org.jboss.ide.eclipse.as.wtp.core.util.ServerModelUtilities
- */
-public class ModuleUtil {
- @Deprecated
- public static ArrayList<IModule[]> getShallowChildren(IServer server, IModule[] root) {
- return ServerModelUtilities.getShallowChildren(server, root);
- }
- @Deprecated
- public static ArrayList<IModule[]> getDeepChildren(IServer server, IModule[] mod) {
- return ServerModelUtilities.getDeepChildren(server, mod);
- }
- @Deprecated
- public static IModule[] getChildModules(IModule[] module) {
- return ServerModelUtilities.getChildModules(module);
- }
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerConverter.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerConverter.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerConverter.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -191,14 +191,4 @@
servers.toArray(ret);
return ret;
}
-
- @Deprecated
- public static IJBossServerRuntime getJBossRuntime(IServer server) throws CoreException {
- return RuntimeUtils.checkedGetJBossServerRuntime(server);
- }
-
- @Deprecated
- public static IJBossServerRuntime getJBossRuntime(IServerAttributes server) {
- return RuntimeUtils.getJBossServerRuntime(server);
- }
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerUtil.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerUtil.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -60,14 +60,7 @@
public static IJBossBehaviourDelegate checkedGetBehaviorDelegate(IServer server) throws CoreException {
return checkedGetServerAdapter(server, DelegatingServerBehavior.class).getDelegate();
}
-
- @Deprecated
- public static IPath makeRelative(IJBossServerRuntime rt, IPath p) {
- if( rt != null && rt.getRuntime() != null )
- return makeRelative(rt.getRuntime(), p);
- return p;
- }
-
+
public static IPath makeRelative(IRuntime rt, IPath p) {
if( p.isAbsolute() && rt != null) {
if(rt.getLocation().isPrefixOf(p)) {
@@ -78,13 +71,6 @@
return p;
}
- @Deprecated
- public static IPath makeGlobal(IJBossServerRuntime rt, IPath p) {
- if( rt != null && rt.getRuntime() != null )
- return makeGlobal(rt.getRuntime(), p);
- return p;
- }
-
public static IPath makeGlobal(IRuntime rt, IPath p) {
if( !p.isAbsolute() ) {
if( rt != null && rt.getLocation() != null ) {
@@ -128,7 +114,7 @@
IPath newTemp = new Path(IJBossRuntimeResourceConstants.SERVER).append(config)
.append(IJBossToolingConstants.TMP)
.append(IJBossToolingConstants.JBOSSTOOLS_TMP).makeRelative();
- IPath newTempAsGlobal = ServerUtil.makeGlobal(jbsrt, newTemp);
+ IPath newTempAsGlobal = makeGlobal(jbsrt.getRuntime(), newTemp);
newTempAsGlobal.toFile().mkdirs();
}
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEHostShellModel.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEHostShellModel.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEHostShellModel.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -159,21 +159,6 @@
}
- /**
- * @deprecated moved to {@link ThreadUtils#sleepFor(int)}
- */
- @Deprecated
- public static void delay(int delay /* in ms */) {
- int x = 0;
- while( x < delay) {
- x+=200;
- try {
- Thread.sleep(200);
- } catch(InterruptedException ie) {
- }
- }
- }
-
public static IShellService findShellService(DelegatingServerBehavior behaviour) throws CoreException {
return findShellService(behaviour.getServer());
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBossStartLaunchDelegate.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBossStartLaunchDelegate.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBossStartLaunchDelegate.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -14,19 +14,12 @@
import org.eclipse.core.runtime.CoreException;
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.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
-import org.eclipse.osgi.util.NLS;
import org.eclipse.wst.server.core.IServer;
-import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
-import org.jboss.ide.eclipse.as.core.Messages;
-import org.jboss.ide.eclipse.as.core.extensions.events.ServerLogger;
import org.jboss.ide.eclipse.as.core.extensions.polling.WebPortPoller;
import org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior;
import org.jboss.ide.eclipse.as.core.server.internal.IJBossBehaviourDelegate;
@@ -37,10 +30,8 @@
import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeConstants;
import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeResourceConstants;
import org.jboss.ide.eclipse.as.core.util.JBossServerBehaviorUtils;
-import org.jboss.ide.eclipse.as.core.util.LaunchCommandPreferences;
import org.jboss.ide.eclipse.as.core.util.ServerConverter;
import org.jboss.ide.eclipse.as.core.util.ServerUtil;
-import org.jboss.ide.eclipse.as.rse.core.RSEHostShellModel.ServerShellModel;
public class RSEJBossStartLaunchDelegate extends AbstractRSELaunchDelegate {
@@ -56,52 +47,7 @@
launchPingThread(beh);
}
- /**
- *
- * @deprecated
- * This was called from {@link RSEBehaviourDelegate#stop(boolean)
- * WTP keeps launching in launch configs and stopping in
- * the server behavior. We should not change that and offer
- * stopping-functionalities in launch delegates.
- *
- * @param behaviour
- */
- @Deprecated
- public static void launchStopServerCommand(DelegatingServerBehavior behaviour) {
- if (LaunchCommandPreferences.isIgnoreLaunchCommand(behaviour.getServer())) {
- behaviour.setServerStopping();
- behaviour.setServerStopped();
- return;
- }
- ILaunchConfiguration config = null;
- String command2 = "";
- try {
- config = behaviour.getServer().getLaunchConfiguration(false, new NullProgressMonitor());
- /*
- * ATTENTION: this was commented since #getDefaultStopCommand is not static any more
- * String defaultCmd = getDefaultStopCommand(behaviour.getServer(), true);
- */
- /*
- * This was added to make it compile
- */
- String defaultCmd = "";
-
-
- command2 = config == null ? defaultCmd :
- RSELaunchConfigProperties.getShutdownCommand(config, defaultCmd);
- behaviour.setServerStopping();
- ServerShellModel model = RSEHostShellModel.getInstance().getModel(behaviour.getServer());
- model.executeRemoteCommand("/", command2, new String[] {}, new NullProgressMonitor(), 10000, true);
- if (model.getStartupShell() != null && model.getStartupShell().isActive())
- model.getStartupShell().writeToShell("exit");
- behaviour.setServerStopped();
- } catch (CoreException ce) {
- behaviour.setServerStarted();
- ServerLogger.getDefault().log(behaviour.getServer(), ce.getStatus());
- }
- }
-
@Override
public boolean preLaunchCheck(ILaunchConfiguration configuration,
String mode, IProgressMonitor monitor) throws CoreException {
@@ -150,17 +96,6 @@
return stop;
}
- @Deprecated
- public static IServer findServer(ILaunchConfiguration config) throws CoreException {
- String serverId = config.getAttribute("server-id", (String) null);
- JBossServer jbs = ServerConverter.findJBossServer(serverId);
- if (jbs == null) {
- throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
- NLS.bind(Messages.ServerNotFound, serverId)));
- }
- return jbs.getServer();
- }
-
private String getDefaultLaunchCommand(ILaunchConfiguration config) throws CoreException {
String serverId = new JBossLaunchConfigProperties().getServerId(config);
JBossServer jbossServer = ServerConverter.checkedFindJBossServer(serverId);
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreAction.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreAction.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreAction.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,20 +0,0 @@
-/*************************************************************************************
- * Copyright (c) 2008-2011 Red Hat, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * JBoss by Red Hat - Initial implementation.
- ************************************************************************************/
-package org.jboss.ide.eclipse.as.ui.actions;
-
-
-/**
- * @author snjeza
- *
- */
-@Deprecated
-public class ExploreAction {
-}
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreActionDelegate.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreActionDelegate.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreActionDelegate.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,21 +0,0 @@
-/*************************************************************************************
- * Copyright (c) 2008-2011 Red Hat, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * JBoss by Red Hat - Initial implementation.
- ************************************************************************************/
-package org.jboss.ide.eclipse.as.ui.actions;
-
-
-/**
- * @author Snjeza
- *
- */
-@Deprecated
-public class ExploreActionDelegate{
-
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -25,6 +25,7 @@
import org.jboss.ide.eclipse.as.core.util.ServerConverter;
import org.jboss.ide.eclipse.as.ui.JBossServerUIPlugin;
import org.jboss.ide.eclipse.as.ui.Messages;
+import org.jboss.ide.eclipse.as.wtp.core.util.ServerModelUtilities;
/**
* @author snjeza
@@ -169,7 +170,7 @@
if (Platform.getOS().equals(Platform.OS_WIN32)) {
return fullPath;
}
- if( !PublishUtil.isBinaryObject(moduleTree)) {
+ if( !ServerModelUtilities.isBinaryModule(moduleTree)) {
return fullPath;
}
return fullPath.removeLastSegments(1);
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/XPathDialogs.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/XPathDialogs.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/XPathDialogs.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -64,11 +64,10 @@
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XMLDocumentRepository;
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathCategory;
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathFileResult;
+import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathFileResult.XPathResultNode;
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathModel;
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathQuery;
-import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathFileResult.XPathResultNode;
import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
-import org.jboss.ide.eclipse.as.core.util.ServerUtil;
import org.jboss.ide.eclipse.as.ui.Messages;
@@ -391,7 +390,7 @@
final String directory2 = directory;
IRunnableWithProgress op = new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
- XPathQuery tmp = new XPathQuery("", directory2, filePattern, xpText, attText); //$NON-NLS-1$
+ XPathQuery tmp = new XPathQuery(null, "", directory2, filePattern, xpText, attText); //$NON-NLS-1$
tmp.setRepository(repository);
final ArrayList<XPathFileResult> list = new ArrayList<XPathFileResult>();
list.addAll(Arrays.asList(tmp.getResults()));
@@ -637,7 +636,7 @@
ArrayList list = xpathCache.get(xpath);
return (XPathResultNode[]) list.toArray(new XPathResultNode[list.size()]);
}
- XPathQuery tmp = new XPathQuery("", path, "**/*.xml", xpath, null); //$NON-NLS-1$ //$NON-NLS-2$
+ XPathQuery tmp = new XPathQuery(null, "", path, "**/*.xml", xpath, null); //$NON-NLS-1$ //$NON-NLS-2$
tmp.setRepository(repository);
ArrayList<XPathResultNode> list = new ArrayList<XPathResultNode>();
XPathFileResult[] items = tmp.getResults();
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/XPathActionProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/XPathActionProvider.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/XPathActionProvider.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -142,7 +142,8 @@
categoryItem = categoryList[i];
}
if (categoryItem != null) {
- XPathQuery query = new XPathQuery(d.getName(),
+ XPathQuery query = new XPathQuery(
+ null, d.getName(),
"server/${config}", // TODO externalize this in a constant
null, d.getXpath(), d.getAttribute());
categoryItem.addQuery(query);
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeJava6WizardFragment.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeJava6WizardFragment.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeJava6WizardFragment.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,29 +0,0 @@
-/**
- * JBoss by Red Hat
- * Copyright 2006-2009, Red Hat Middleware, LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
-* This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ide.eclipse.as.ui.wizards;
-
-
-@Deprecated
-public class JBossRuntimeJava6WizardFragment extends JBossRuntimeWizardFragment {
- public JBossRuntimeJava6WizardFragment() {
- }
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -36,7 +36,7 @@
import org.eclipse.wst.server.ui.wizard.IWizardHandle;
import org.eclipse.wst.server.ui.wizard.WizardFragment;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
-import org.jboss.ide.eclipse.as.core.server.internal.LocalJBossServerRuntime;
+import org.jboss.ide.eclipse.as.core.util.RuntimeUtils;
import org.jboss.ide.eclipse.as.ui.JBossServerUISharedImages;
import org.jboss.ide.eclipse.as.ui.Messages;
import org.jboss.ide.eclipse.as.ui.UIUtil;
@@ -89,7 +89,7 @@
protected boolean isEAP() {
IRuntime rt = (IRuntime) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
- return LocalJBossServerRuntime.isEAP(rt);
+ return RuntimeUtils.isEAP(rt);
}
public ImageDescriptor getImageDescriptor() {
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerActionProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerActionProvider.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerActionProvider.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,20 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * IBM Corporation - Base Code
- * Red Hat - Refactor for CNF
- *******************************************************************************/
-package org.jboss.tools.as.wst.server.ui.xpl;
-
-import org.eclipse.ui.navigator.CommonActionProvider;
-/**
- * @deprecated
- */
-public class ServerActionProvider extends CommonActionProvider {
- // Deprecated class
-}
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerContentProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerContentProvider.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerContentProvider.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,365 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * IBM Corporation - Base Code
- * Red Hat - Refactor for CNF
- *******************************************************************************/
-package org.jboss.tools.as.wst.server.ui.xpl;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.StructuredViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IPublishListener;
-import org.eclipse.wst.server.core.IServer;
-import org.eclipse.wst.server.core.IServerLifecycleListener;
-import org.eclipse.wst.server.core.IServerListener;
-import org.eclipse.wst.server.core.ServerCore;
-import org.eclipse.wst.server.core.ServerEvent;
-import org.eclipse.wst.server.core.internal.Server;
-import org.eclipse.wst.server.core.internal.UpdateServerJob;
-import org.eclipse.wst.server.core.util.PublishAdapter;
-import org.eclipse.wst.server.ui.internal.view.servers.ModuleServer;
-import org.eclipse.wst.server.ui.internal.viewers.BaseContentProvider;
-
-/**
- * @deprecated
- */
-public class ServerContentProvider extends BaseContentProvider implements ITreeContentProvider {
- public static Object INITIALIZING = new Object();
- protected IServerLifecycleListener serverResourceListener;
- protected IPublishListener publishListener;
- protected IServerListener serverListener;
-
- // servers that are currently publishing and starting
- protected static Set<String> publishing = new HashSet<String>(4);
- protected static Set<String> starting = new HashSet<String>(4);
- protected boolean animationActive = false;
- protected boolean stopAnimation = false;
- protected boolean initialized = false;
-
-
- private StructuredViewer viewer;
-
- public ServerContentProvider() {
- addListeners();
- }
-
- public Object[] getElements(Object element) {
- if( !initialized ) {
- deferInitialization();
- return new Object[] {INITIALIZING};
- }
-
- List<IServer> list = new ArrayList<IServer>();
- IServer[] servers = ServerCore.getServers();
- if (servers != null) {
- int size = servers.length;
- for (int i = 0; i < size; i++) {
- if (!((Server)servers[i]).isPrivate())
- list.add(servers[i]);
- }
- }
- return list.toArray();
- }
-
- public Object[] getChildren(Object element) {
- if (element instanceof ModuleServer) {
- ModuleServer ms = (ModuleServer) element;
- try {
- IModule[] children = ms.server.getChildModules(ms.module, null);
- int size = children.length;
- ModuleServer[] ms2 = new ModuleServer[size];
- for (int i = 0; i < size; i++) {
- int size2 = ms.module.length;
- IModule[] module = new IModule[size2 + 1];
- System.arraycopy(ms.module, 0, module, 0, size2);
- module[size2] = children[i];
- ms2[i] = new ModuleServer(ms.server, module);
- }
- return ms2;
- } catch (Exception e) {
- return new Object[]{};
- }
- }
-
- // TODO TELL ANGEL ABOUT THIS IF STATEMENT
- if( element instanceof IServer) {
- IServer server = (IServer) element;
- IModule[] modules = server.getModules();
- int size = modules.length;
- ModuleServer[] ms = new ModuleServer[size];
- for (int i = 0; i < size; i++) {
- ms[i] = new ModuleServer(server, new IModule[] { modules[i] });
- }
- return ms;
- }
- return new Object[]{};
- }
-
- public Object getParent(Object element) {
- if (element instanceof ModuleServer) {
- ModuleServer ms = (ModuleServer) element;
- return ms.server;
- }
- return null;
- }
-
- public boolean hasChildren(Object element) {
- if (element instanceof ModuleServer) {
- // Check if the module server has child modules.
- ModuleServer curModuleServer = (ModuleServer)element;
- IServer curServer = curModuleServer.server;
- IModule[] curModule = curModuleServer.module;
- if (curServer != null && curModule != null) {
- IModule[] curChildModule = curServer.getChildModules(curModule, null);
- if (curChildModule != null && curChildModule.length > 0)
- return true;
-
- return false;
- }
-
- return false;
- }
- if( element instanceof IServer ) {
- return ((IServer) element).getModules().length > 0;
- }
- return false;
- }
-
- public void inputChanged(Viewer aViewer, Object oldInput, Object newInput) {
- viewer = (StructuredViewer) aViewer;
- }
-
- public void dispose() {
- // remove all listeners!
- ServerCore.removeServerLifecycleListener(serverResourceListener);
- IServer[] servers = ServerCore.getServers();
- for( int i = 0;i < servers.length; i++ ) {
- servers[i].removePublishListener(publishListener);
- servers[i].removeServerListener(serverListener);
- }
- }
-
-
-
- // Listeners and refreshing the viewer
- protected void addListeners() {
- serverResourceListener = new IServerLifecycleListener() {
- public void serverAdded(IServer server) {
- refreshServer(null);
- server.addServerListener(serverListener);
- ((Server) server).addPublishListener(publishListener);
- }
- public void serverChanged(IServer server) {
- refreshServer(server);
- }
- public void serverRemoved(IServer server) {
- refreshServer(null);
- server.removeServerListener(serverListener);
- ((Server) server).removePublishListener(publishListener);
- }
- };
- ServerCore.addServerLifecycleListener(serverResourceListener);
-
- publishListener = new PublishAdapter() {
- public void publishStarted(IServer server) {
- handlePublishChange(server, true);
- }
-
- public void publishFinished(IServer server, IStatus status) {
- handlePublishChange(server, false);
- }
- };
-
- serverListener = new IServerListener() {
- public void serverChanged(ServerEvent event) {
- if (event == null)
- return;
-
- int eventKind = event.getKind();
- IServer server = event.getServer();
- if ((eventKind & ServerEvent.SERVER_CHANGE) != 0) {
- // server change event
- if ((eventKind & ServerEvent.STATE_CHANGE) != 0) {
- refreshServer(server, true);
- int state = event.getState();
- String id = server.getId();
- if (state == IServer.STATE_STARTING || state == IServer.STATE_STOPPING) {
- boolean startThread = false;
- synchronized (starting) {
- if (!starting.contains(id)) {
- if (starting.isEmpty())
- startThread = true;
- starting.add(id);
- }
- }
- if (startThread)
- startThread();
- } else {
- boolean stopThread = false;
- synchronized (starting) {
- if (starting.contains(id)) {
- starting.remove(id);
- if (starting.isEmpty())
- stopThread = true;
- }
- }
- if (stopThread)
- stopThread();
- }
- } else
- refreshServer(server);
- } else if ((eventKind & ServerEvent.MODULE_CHANGE) != 0) {
- // module change event
- if ((eventKind & ServerEvent.STATE_CHANGE) != 0 || (eventKind & ServerEvent.PUBLISH_STATE_CHANGE) != 0) {
- refreshServer(server);
- }
- }
- }
- };
-
- // add listeners to servers
- IServer[] servers = ServerCore.getServers();
- if (servers != null) {
- int size = servers.length;
- for (int i = 0; i < size; i++) {
- servers[i].addServerListener(serverListener);
- ((Server) servers[i]).addPublishListener(publishListener);
- }
- }
- }
-
- protected void deferInitialization() {
- Job job = new Job(org.eclipse.wst.server.ui.internal.Messages.jobInitializingServersView) {
- public IStatus run(IProgressMonitor monitor) {
- IServer[] servers = ServerCore.getServers();
- int size = servers.length;
- for (int i = 0; i < size; i++) {
- ((Server)servers[i]).getAllModules().iterator();
- }
-
- for (int i = 0; i < size; i++) {
- IServer server = servers[i];
- if (server.getServerType() != null && server.getServerState() == IServer.STATE_UNKNOWN) {
- UpdateServerJob job2 = new UpdateServerJob(new IServer[]{server});
- job2.schedule();
- }
- }
- initialized = true;
- refreshServer(null);
- return Status.OK_STATUS;
- }
- };
-
- job.setSystem(true);
- job.setPriority(Job.SHORT);
- job.schedule();
- }
-
- protected void updateServerLabel(final IServer server) {
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- try {
- if( viewer != null && !viewer.getControl().isDisposed()) {
- viewer.update(server, null);
- }
- } catch (Exception e) {
- // ignore
- }
- }
- });
- }
-
- protected void refreshServer(final IServer server) {
- refreshServer(server, false);
- }
- protected void refreshServer(final IServer server, final boolean resetSelection) {
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- try {
- if( viewer != null && !viewer.getControl().isDisposed()) {
- viewer.refresh(server);
- if( resetSelection ) {
- ISelection sel = viewer.getSelection();
- viewer.setSelection(sel);
- }
- }
- } catch (Exception e) {
- // ignore
- }
- }
- });
- }
-
- protected void handlePublishChange(IServer server, boolean isPublishing) {
- String serverId = server.getId();
- if (isPublishing)
- publishing.add(serverId);
- else
- publishing.remove(serverId);
-
- refreshServer(server);
- }
-
-
- protected void startThread() {
- if (animationActive)
- return;
-
- stopAnimation = false;
-
- final Display display = viewer == null ? Display.getDefault() : viewer.getControl().getDisplay();
- final int SLEEP = 200;
- final Runnable[] animator = new Runnable[1];
- animator[0] = new Runnable() {
- public void run() {
- if (!stopAnimation) {
- try {
- int size = 0;
- String[] servers;
- synchronized (starting) {
- size = starting.size();
- servers = new String[size];
- starting.toArray(servers);
- }
-
- for (int i = 0; i < size; i++) {
- IServer server = ServerCore.findServer(servers[i]);
- if (server != null ) {
- updateServerLabel(server);
- }
- }
- } catch (Exception e) {
- //Trace.trace(Trace.STRING_FINEST, Messages.ServerContentProvider_ErrorInServersViewAnimation, e);
- }
- display.timerExec(SLEEP, animator[0]);
- }
- }
- };
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- display.timerExec(SLEEP, animator[0]);
- }
- });
- }
-
- protected void stopThread() {
- stopAnimation = true;
- }}
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerLabelProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerLabelProvider.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServerLabelProvider.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,80 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * IBM Corporation - Base Code
- * Red Hat - Refactor for CNF
- *******************************************************************************/
-package org.jboss.tools.as.wst.server.ui.xpl;
-
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.wst.server.core.IServer;
-import org.eclipse.wst.server.ui.ServerUICore;
-import org.eclipse.wst.server.ui.internal.ImageResource;
-import org.eclipse.wst.server.ui.internal.Messages;
-import org.eclipse.wst.server.ui.internal.view.servers.ModuleServer;
-/**
- * Server table label provider.
- * @deprecated
- */
-public class ServerLabelProvider extends LabelProvider {
-
- /**
- * ServerTableLabelProvider constructor comment.
- */
- public ServerLabelProvider() {
- super();
- }
-
- public String getText(Object element) {
- if (element instanceof ModuleServer) {
- ModuleServer ms = (ModuleServer) element;
- if (ms.module == null)
- return ""; //$NON-NLS-1$
- int size = ms.module.length;
- String name = ms.module[size - 1].getName();
- return name;
- }
-
- if( element instanceof IServer ) {
- IServer server = (IServer) element;
- return notNull(server.getName());
- }
-
- if( element == ServerContentProvider.INITIALIZING)
- return Messages.viewInitializing;
-
- return null;
- }
- public Image getImage(Object element) {
- Image image = null;
- if (element instanceof ModuleServer) {
- ModuleServer ms = (ModuleServer) element;
- ILabelProvider labelProvider = ServerUICore.getLabelProvider();
- image = labelProvider.getImage(ms.module[ms.module.length - 1]);
- labelProvider.dispose();
- } else if( element instanceof IServer ) {
- IServer server = (IServer) element;
- if (server.getServerType() != null) {
- image = ImageResource.getImage(server.getServerType().getId());
- }
- }
- return image;
- }
-
- protected String notNull(String s) {
- if (s == null)
- return ""; //$NON-NLS-1$
- return s;
- }
-
- public boolean isLabelProperty(Object element, String property) {
- return false;
- }
-}
\ No newline at end of file
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServersView.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServersView.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServersView.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * IBM Corporation - Code taken from Superclass
- * Red Hat Inc - Refactor
- *******************************************************************************/
-package org.jboss.tools.as.wst.server.ui.xpl;
-
-import org.eclipse.ui.IMemento;
-import org.eclipse.ui.IViewSite;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.navigator.CommonNavigator;
-/**
- * A view of servers, their modules, and status.
- * @deprecated
- */
-public class ServersView extends CommonNavigator {
-
- /**
- * ServersView constructor comment.
- */
- public ServersView() {
- super();
- }
-
- private IMemento memento;
-
- public void init(IViewSite aSite, IMemento aMemento)
- throws PartInitException {
- this.memento = memento;
- super.init(aSite, aMemento);
- }
-}
\ No newline at end of file
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServersViewDropAdapterAssistant.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServersViewDropAdapterAssistant.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/tools/as/wst/server/ui/xpl/ServersViewDropAdapterAssistant.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,212 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are 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 - Initial Implementation
- *******************************************************************************/
-package org.jboss.tools.as.wst.server.ui.xpl;
-
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.DropTargetEvent;
-import org.eclipse.swt.dnd.FileTransfer;
-import org.eclipse.swt.dnd.TransferData;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.activities.WorkbenchActivityHelper;
-import org.eclipse.ui.internal.Workbench;
-import org.eclipse.ui.navigator.CommonDropAdapter;
-import org.eclipse.ui.navigator.CommonDropAdapterAssistant;
-import org.eclipse.ui.part.ResourceTransfer;
-import org.eclipse.ui.views.navigator.LocalSelectionTransfer;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.IModuleArtifact;
-import org.eclipse.wst.server.core.IModuleType;
-import org.eclipse.wst.server.core.IServer;
-import org.eclipse.wst.server.core.IServerWorkingCopy;
-import org.eclipse.wst.server.core.ServerUtil;
-import org.eclipse.wst.server.core.internal.ServerPlugin;
-import org.eclipse.wst.server.ui.internal.EclipseUtil;
-import org.eclipse.wst.server.ui.internal.ServerUIPlugin;
-import org.eclipse.wst.server.ui.internal.actions.RunOnServerActionDelegate;
-
-/**
- *
- * @author rob
- * @deprecated
- */
-public class ServersViewDropAdapterAssistant extends CommonDropAdapterAssistant {
-
- @SuppressWarnings("unchecked") private List fElements;
-
- public ServersViewDropAdapterAssistant() {
- super();
- }
- protected void doInit() {
- }
-
- public IStatus validatePluginTransferDrop(
- IStructuredSelection aDragSelection, Object aDropTarget) {
- initializeSelection(aDragSelection);
- return internalValidate(aDropTarget, fElements);
- }
-
- public IStatus validateDrop(Object target, int operation,
- TransferData transferType) {
- if (LocalSelectionTransfer.getInstance().isSupportedType(transferType)) {
- ISelection s = LocalSelectionTransfer.getInstance().getSelection();
- initializeSelection(s);
- return internalValidate(target, fElements);
- }
- return Status.CANCEL_STATUS;
- }
-
- protected void initializeSelection(ISelection s) {
- if (fElements != null)
- return;
- if (!(s instanceof IStructuredSelection)) {
- fElements= Collections.EMPTY_LIST;
- return;
- }
- fElements = ((IStructuredSelection) s).toList();
- }
-
- @SuppressWarnings("unchecked")
- protected IStatus internalValidate(Object target, List elements) {
- if( target instanceof IServer ) {
- IServer server = (IServer)target;
- Object next;
- if( elements != null ) {
- Iterator i = elements.iterator();
- while(i.hasNext() ) {
- next = i.next();
- IModuleArtifact[] moduleArtifacts = ServerPlugin.getModuleArtifacts(next);
- if (moduleArtifacts != null && moduleArtifacts.length > 0 ) {
- for( int j = 0; j < moduleArtifacts.length; j++ ) {
- if( moduleArtifacts[j] != null && moduleArtifacts[j].getModule() != null ) {
- IModuleType[] moduleTypes = server.getServerType().getRuntimeType().getModuleTypes();
- if (ServerUtil.isSupportedModule(moduleTypes, moduleArtifacts[j].getModule().getModuleType())) {
- return Status.OK_STATUS;
- }
- }
- }
- }
- }
- }
- }
- clear();
- return Status.CANCEL_STATUS;
- }
-
- public IStatus handleDrop(CommonDropAdapter dropAdapter,
- DropTargetEvent dropTargetEvent, Object target) {
- IStatus ret = internalHandleDrop(target, fElements);
- if( ret.isOK())
- dropTargetEvent.detail = DND.DROP_NONE;
- return ret;
- }
-
- public IStatus handlePluginTransferDrop(
- IStructuredSelection aDragSelection, Object aDropTarget) {
- return internalHandleDrop(aDropTarget, fElements);
- }
-
- protected IStatus internalHandleDrop(Object target, List elements) {
- boolean b = false;
- if( target instanceof IServer ) {
- b = true;
- if( fElements != null ) {
- Iterator iterator = elements.iterator();
- while (iterator.hasNext()) {
- Object data2 = iterator.next();
- if (!doSel((IServer)target, data2))
- b = false;
- }
- }
- }
- clear();
- return b ? Status.OK_STATUS : Status.CANCEL_STATUS;
- }
-
- private void clear() {
- fElements = null;
- }
-
- protected boolean doSel(IServer server, Object data) {
- // check if the selection is a project (module) that we can add to the server
- IProject project = (IProject) Platform.getAdapterManager().getAdapter(data, IProject.class);
- if (project != null) {
- IModule[] modules = ServerUtil.getModules(project);
- if (modules != null && modules.length == 1) {
- try {
- IServerWorkingCopy wc = server.createWorkingCopy();
- IModule[] parents = wc.getRootModules(modules[0], null);
- if (parents == null || parents.length == 0)
- return false;
-
- if (ServerUtil.containsModule(server, parents[0], null))
- return false;
-
- IModule[] add = new IModule[] { parents[0] };
- if (wc.canModifyModules(add, null, null).getSeverity() != IStatus.ERROR) {
- wc.modifyModules(modules, null, null);
- wc.save(false, null);
- return true;
- }
- } catch (final CoreException ce) {
- final Shell shell = Workbench.getInstance().getActiveWorkbenchWindow().getShell();
- shell.getDisplay().asyncExec(new Runnable() {
- public void run() {
- EclipseUtil.openError(shell, ce.getLocalizedMessage());
- }
- });
- return true;
- }
- }
- }
-
- // otherwise, try Run on Server
- final IServer finalServer = server;
- RunOnServerActionDelegate ros = new RunOnServerActionDelegate() {
- public IServer getServer(IModule module, IModuleArtifact moduleArtifact, IProgressMonitor monitor) throws CoreException {
- if (!ServerUIPlugin.isCompatibleWithLaunchMode(finalServer, launchMode))
- return null;
-
- if (!ServerUtil.containsModule(finalServer, module, monitor)) {
- IServerWorkingCopy wc = finalServer.createWorkingCopy();
- try {
- ServerUtil.modifyModules(wc, new IModule[] { module }, new IModule[0], monitor);
- wc.save(false, monitor);
- } catch (CoreException ce) {
- throw ce;
- }
- }
-
- return finalServer;
- }
- };
- Action action = new Action() {
- //
- };
- ros.selectionChanged(action, new StructuredSelection(data));
-
- ros.run(action);
- return true;
- }
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/util/ServerModelUtilities.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/util/ServerModelUtilities.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/util/ServerModelUtilities.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -66,6 +66,10 @@
return new IModule[0];
}
+ public static boolean isBinaryModule(IModule[] moduleTree) {
+ return moduleTree == null ? false : isBinaryModule(moduleTree[moduleTree.length - 1]);
+ }
+
public static boolean isBinaryModule(IModule module) {
IJ2EEModule jee = (IJ2EEModule) module.loadAdapter(IJ2EEModule.class, null);
if( jee != null )
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ReferenceResolverUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ReferenceResolverUtil.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ReferenceResolverUtil.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -1,137 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.ide.eclipse.as.wtp.core.vcf;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.common.componentcore.internal.ModulecorePlugin;
-import org.eclipse.wst.common.componentcore.internal.ReferencedComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.jboss.ide.eclipse.as.wtp.core.ASWTPToolsPlugin;
-
-@Deprecated
-public class ReferenceResolverUtil {
- public static ReferenceResolverUtil instance = null;
- public static ReferenceResolverUtil getDefault() {
- if( instance == null )
- instance = new ReferenceResolverUtil();
- return instance;
- }
-
- private HashMap<String, ReferenceResolverWrapper> resolvers = null;
- private ArrayList<IReferenceResolver> sorted = null;
- private DefaultReferenceResolver defaultResolver = new DefaultReferenceResolver();
- public IReferenceResolver[] getResolvers() {
- if( resolvers == null )
- loadResolvers();
- return (IReferenceResolver[]) sorted.toArray(new IReferenceResolver[sorted.size()]);
- }
-
- public IReferenceResolver getResolver(IVirtualComponent context, ReferencedComponent reference) {
- getResolvers();
- Iterator<IReferenceResolver> i = sorted.iterator();
- IReferenceResolver resolver;
- while(i.hasNext()) {
- resolver = i.next();
- if( resolver.canResolve(context, reference))
- return resolver;
- }
- return defaultResolver;
- }
-
- public IReferenceResolver getResolver(IVirtualReference reference) {
- getResolvers();
- Iterator<IReferenceResolver> i = sorted.iterator();
- IReferenceResolver resolver;
- while(i.hasNext()) {
- resolver = i.next();
- if( resolver.canResolve(reference))
- return resolver;
- }
- return defaultResolver;
- }
-
- protected void loadResolvers() {
- HashMap<String, ReferenceResolverWrapper> map = new HashMap<String, ReferenceResolverWrapper>();
-
- IExtensionRegistry registry = Platform.getExtensionRegistry();
- IConfigurationElement[] cf = registry.getConfigurationElementsFor(ASWTPToolsPlugin.PLUGIN_ID, "referenceResolver"); //$NON-NLS-1$
- String id = null;
- for( int j = 0; j < cf.length; j++ ) {
- id = cf[j].getAttribute("id");
- try {
- map.put(id, new ReferenceResolverWrapper(
- id, (IReferenceResolver)
- cf[j].createExecutableExtension("class"),
- cf[j].getAttribute("weight")));
- } catch( CoreException ce ) {
- // TODO figure it out
- }
- }
- resolvers = map;
-
- // Cache the sorted ones
- List<ReferenceResolverWrapper> list = new ArrayList(resolvers.values());
- Comparator comparator = new Comparator() {
- public int compare(Object o1, Object o2) {
- if( !(o1 instanceof ReferenceResolverWrapper))
- return -1;
- if( !(o2 instanceof ReferenceResolverWrapper))
- return 1;
- return ((ReferenceResolverWrapper)o2).getWeight()
- - ((ReferenceResolverWrapper)o1).getWeight();
- }
- };
-
- Collections.sort(list, comparator);
- ArrayList<IReferenceResolver> sorted = new ArrayList<IReferenceResolver>();
- Iterator i = list.iterator();
- while(i.hasNext())
- sorted.add(((ReferenceResolverWrapper)i.next()).getResolver());
- this.sorted = sorted;
- }
-
-
- protected class ReferenceResolverWrapper {
- private String id;
- private IReferenceResolver resolver;
- private int weight;
- public ReferenceResolverWrapper(String id, IReferenceResolver resolver, String weight) {
- this.id = id;
- this.resolver = resolver;
- try {
- this.weight = Integer.parseInt(weight);
- } catch( NumberFormatException nfe) {
- this.weight = 1000;
- }
- }
- public int getWeight() {
- return weight;
- }
- public String getId() {
- return id;
- }
- public IReferenceResolver getResolver() {
- return resolver;
- }
- }
-
-}
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/src/org/jboss/ide/eclipse/as/archives/integration/test/BuildDeployTest.java
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/src/org/jboss/ide/eclipse/as/archives/integration/test/BuildDeployTest.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/src/org/jboss/ide/eclipse/as/archives/integration/test/BuildDeployTest.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -273,7 +273,7 @@
rootArchive.setProperty(ArchivesModuleModelListener.DEPLOY_SERVERS, servers);
rootArchive.setProperty(ArchivesModuleModelListener.DEPLOY_AFTER_BUILD, new Boolean(alwaysPublish).toString());
final IPath projectPath = rootArchive.getProjectPath();
- ArchivesModel.instance().save(projectPath, new NullProgressMonitor());
+ ArchivesModel.instance().getRoot(projectPath).save( new NullProgressMonitor());
}
protected void buildArchive() {
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/MockPublishMethod.java
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/MockPublishMethod.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/MockPublishMethod.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -22,7 +22,6 @@
import org.eclipse.wst.server.core.model.IModuleFile;
import org.jboss.ide.eclipse.as.core.publishers.AbstractPublishMethod;
import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
-import org.jboss.ide.eclipse.as.core.server.xpl.PublishCopyUtil;
import org.jboss.ide.eclipse.as.core.server.xpl.PublishCopyUtil.IPublishCopyCallbackHandler;
public class MockPublishMethod extends AbstractPublishMethod {
@@ -94,7 +93,7 @@
IProgressMonitor monitor) throws CoreException {
// System.out.println("copying to " + root.append(path));
File file = PublishUtil.getFile(mf);
- shouldRestartModule |= PublishCopyUtil.checkRestartModule(file);
+ shouldRestartModule |= checkRestartModule(file);
IPath path2 = root.append(path);
if( !changed.contains(path2.makeRelative()))
changed.add(path2.makeRelative());
@@ -114,5 +113,11 @@
IPath path2 = root.append(path);
return path2.toFile().exists() && path2.toFile().isFile();
}
+ public boolean checkRestartModule(File file) {
+ if( file.getName().toLowerCase().endsWith(".jar")) //$NON-NLS-1$
+ return true;
+ return false;
+ }
+
}
}
Modified: trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
===================================================================
--- trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-12-13 14:38:45 UTC (rev 37268)
+++ trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-12-13 14:49:38 UTC (rev 37269)
@@ -26,6 +26,7 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.osgi.util.NLS;
@@ -42,8 +43,8 @@
import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
import org.jboss.ide.eclipse.as.core.server.IJBossServerPublishMethod;
import org.jboss.ide.eclipse.as.core.server.IJBossServerPublisher;
+import org.jboss.ide.eclipse.as.core.server.xpl.LocalCopyCallback;
import org.jboss.ide.eclipse.as.core.server.xpl.PublishCopyUtil;
-import org.jboss.ide.eclipse.as.core.server.xpl.PublishCopyUtil.LocalCopyCallback;
import org.jboss.ide.eclipse.as.core.util.FileUtil;
import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
import org.jboss.ide.eclipse.as.core.util.IWTPConstants;
@@ -128,7 +129,7 @@
IModule last = moduleTree[moduleTree.length -1];
IPath deployPath = getDeployPath(moduleTree, ds);
IPath tempDeployPath = PublishUtil.getTempDeployFolder(moduleTree, ds);
- IModuleResource[] members = PublishUtil.getResources(last);
+ IModuleResource[] members = PublishUtil.getResources(last, new NullProgressMonitor());
// https://issues.jboss.org/browse/JBDS-1573
// make sure the project has a deploy.xml (bpel-deploy.xml for backward compatibility).
boolean hasDeployXML = false;
14 years, 4 months
JBoss Tools SVN: r37268 - trunk/documentation/whatsnew/central.
by jbosstools-commits@lists.jboss.org
Author: fbricon
Date: 2011-12-13 09:38:45 -0500 (Tue, 13 Dec 2011)
New Revision: 37268
Modified:
trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html
Log:
JBIDE-10386 : Create Project section in JBoss Central N&N
Modified: trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html 2011-12-13 14:37:17 UTC (rev 37267)
+++ trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html 2011-12-13 14:38:45 UTC (rev 37268)
@@ -56,7 +56,7 @@
Except for the stock Eclipse Dynamic Web project, all wizards will generate Maven based projects.
</p>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-9368">Related Jira</a></small></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-10053">Related Jira</a></small></p>
</td>
</tr>
14 years, 4 months
JBoss Tools SVN: r37267 - in trunk/documentation/whatsnew: central and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: fbricon
Date: 2011-12-13 09:37:17 -0500 (Tue, 13 Dec 2011)
New Revision: 37267
Added:
trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html
trunk/documentation/whatsnew/images/jboss-central-create-projects.png
Modified:
trunk/documentation/whatsnew/index.html
trunk/documentation/whatsnew/maven/maven-news-3.3.0.M5.html
trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
Log:
JBIDE-10386 : Create Project section in JBoss Central N&N
Added: trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html (rev 0)
+++ trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html 2011-12-13 14:37:17 UTC (rev 37267)
@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css"/>
+<title>JBoss Central 1.0.0.M5 What's New</title>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-17645367-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script></head>
+<body>
+<h1>JBoss Central 1.0.0.M5 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a>
+</p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>General</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <a name="itemnam1e" id="itemname1"></a><b>New project wizards</b>
+ </td>
+ <td width="70%" valign="top">
+ The <strong>Create Project</strong> section of JBoss Central has been revamped to offer you links to new project wizards :
+
+ <p><img src="../images/jboss-central-create-projects.png"/></p>
+ <p>
+ <ul>
+ <li><strong>Dynamic Web Project</strong> : the standard Eclipse Java EE Web project wizard</li>
+ <li><strong>OpenShift Express Application</strong> : allows you to create a new OpenShift Express-based project</li>
+ <li><strong>Java EE Web Project</strong> : generates a Java EE 6 web project with JSF 2, JPA 2, REST and CDI support enabled</li>
+ <li><strong>Java EE Project</strong> : generates a Java EE 6 multi module application, complete with EAR, EJB and WAR projects, having JSF 2, JPA 2, REST and CDI support enabled</li>
+ <li><strong>HTML5 Project</strong> : generates a Java EE 6 HTML5 web application compatible with mobile devices, having JPA 2, REST and CDI support enabled</li>
+ <li><strong>Spring MVC Project</strong> : generates a Spring MVC web application with Java EE persistence settings (server bootstrapped JPA, JTA transaction management) for JBoss AS7 / EAP 6</li>
+ <li><strong>RichFaces Project</strong> : generates a Java EE 6 web application using RichFaces</li>
+ </ul>
+
+ Except for the stock Eclipse Dynamic Web project, all wizards will generate Maven based projects.
+ </p>
+
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9368">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <!--
+ <tr>
+ <td valign="top" align="left">
+ <a name="itemnam1e" id="itemname1"></a><b>Search and quick access buttons</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>The top section of JBoss Central provides an easy way to search
+ jboss.org and the knowledge base from Red Hat. The result will
+ show up in the browser configured in Eclipse preferences.
+ </p>
+
+ <p>There is is also a set of quick access icons to access JBoss
+ Tools homepage, Eclipse Marketplace, Preferences and Twitter account.</p>
+
+ <p><img src="../images/jbosscentralsearch.png"/></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9368">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <a name="itemnam1e" id="itemname1"></a><b>News</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>On the right side of JBoss Central there are two feeds, one
+ for News another for Blogs - all related to jboss.org and JBoss technology.
+ </p>
+
+ <p>The feeds can be refreshed and if you want to subscribe to
+ these feeds in your newsreader you can click the RSS & Blog icon
+ to get the feedd address.</p>
+
+ <p><img src="../images/jbosscentralfeeds.png"/></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9368">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <a name="itemnam1e" id="itemname1"></a><b>Create
+ Projects/Project Examples</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>On the left side there are quick access to central wizards in
+ Eclipse & JBoss Tools which will create and setup projects for you.</p>
+
+ <p>In the Project Examples section there is a selected set of
+ Project Examples to get you started using JBoss AS.</p>
+
+ <p><img src="../images/jbosscentralprojects.png"/></p>
+
+ <p>If the examples requires certain runtimes or plugins it will
+ let you know and in case there is a publically available
+ download available it will offer to Download and install
+ it.</p>
+
+ <p><img src="../images/jbosscentraldownloadas.png"/></p>
+
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9368">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <a name="itemnam1e" id="itemname1"></a><b>Software/Update</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>The second tab of JBoss Central provides a list of plugins
+ which works with JBoss Tools - initially we've just added some
+ basic plugins like Maven JBoss Tools integration, TestNG and
+ eGit.</p>
+
+ <p><img src="../images/jbosscentralsoftwareupdate.png"/></p>
+
+ <p>In the future we will add more to this list as they come available.</p>
+
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9368">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ -->
+</table>
+
+</body>
+
+</html>
Added: trunk/documentation/whatsnew/images/jboss-central-create-projects.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/jboss-central-create-projects.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2011-12-13 14:03:34 UTC (rev 37266)
+++ trunk/documentation/whatsnew/index.html 2011-12-13 14:37:17 UTC (rev 37267)
@@ -36,8 +36,16 @@
<td valign="top" align="left">
<p align="right"><b>3.3.0.M5</b>
<td valign="top">
+ <p><a href="core/core-news-3.3.0.M5.html">Core/General</a></p>
+ <p><a href="jst/jst-news-3.3.0.M5.html">JST/JSF</a></p>
+ <p><a href="vpe/vpe-news-3.3.0.M5.html">Visual Page Editor</a></p>
+ <p><a href="cdi/cdi-news-3.3.0.M5.html">CDI/Seam 3 Tools</a></p>
<p><a href="forge/forge-news-3.3.0.M5.html">Forge Tools</a></p>
- </td>
+ <p><a href="openshift/openshift-news-2.3.0.M5.html">OpenShift Tools</a></p>
+ <!-- p><a href="examples/examples-news-3.3.0.M5.html">Project Examples</a></p -->
+ <p><a href="maven/maven-news-3.3.0.M5.html">Maven Tools</a></p>
+ <p><a href="central/central-news-1.0.0.M5.html">JBoss Central</a></p>
+ </td>
</tr>
<tr>
<td valign="top" align="left">
Modified: trunk/documentation/whatsnew/maven/maven-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/maven/maven-news-3.3.0.M5.html 2011-12-13 14:03:34 UTC (rev 37266)
+++ trunk/documentation/whatsnew/maven/maven-news-3.3.0.M5.html 2011-12-13 14:37:17 UTC (rev 37267)
@@ -24,7 +24,7 @@
<h1>Maven Tools</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
-href="../hibernate/hibernate-news-3.5.0.M5.html">Hibernate Tools ></a></p>
+href="../central/central-news-1.0.0.M5.html">JBoss Central ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
<td colspan="2">
Modified: trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-13 14:03:34 UTC (rev 37266)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-13 14:37:17 UTC (rev 37267)
@@ -24,7 +24,7 @@
<h1>OpenShift 2.3.0.M5 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
- href="../esb/esb-news-1.5.1.M4.html">ESB Tools
+ href="../maven/maven-news-3.3.0.M5.html">Maven Tools
></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
14 years, 4 months
JBoss Tools SVN: r37266 - trunk/download.jboss.org/jbosstools/examples.
by jbosstools-commits@lists.jboss.org
Author: fbricon
Date: 2011-12-13 09:03:34 -0500 (Tue, 13 Dec 2011)
New Revision: 37266
Modified:
trunk/download.jboss.org/jbosstools/examples/project-examples-jbds50.xml
Log:
JBDS-1969 : remove duplicate Java EE6 category
added eap6 to all allowed types
bumped m2e-wtp compatible version
Modified: trunk/download.jboss.org/jbosstools/examples/project-examples-jbds50.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/project-examples-jbds50.xml 2011-12-13 13:24:37 UTC (rev 37265)
+++ trunk/download.jboss.org/jbosstools/examples/project-examples-jbds50.xml 2011-12-13 14:03:34 UTC (rev 37266)
@@ -1,285 +1,5 @@
<projects>
- <project>
- <category>Weld archetypes</category>
- <name>jboss-javaee6-webapp</name>
- <included-projects>jboss-javaee6-webapp</included-projects>
- <shortDescription>Weld Java EE 6 example</shortDescription>
- <description>
-The example demonstrates Weld Java EE 6 application.
-It will create the jboss-javaee6-webapp project in your workspace based on the org.jboss.weld.archetypes:jboss-javaee6-webapp:1.0.1.Beta2 archetype.
- </description>
- <size>8192</size>
- <url/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.60</property>
- <property name="description">This project example requires JBoss AS 6.0</property>
- <property name="downloadId">org.jboss.tools.runtime.core.as.610</property>
- </fix>
- </fixes>
- <importType>mavenArchetype</importType>
- <importTypeDescription>The project example requires the m2eclipse-core, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
- <mavenArchetype>
- <archetypeGroupId>org.jboss.weld.archetypes</archetypeGroupId>
- <archetypeArtifactId>jboss-javaee6-webapp</archetypeArtifactId>
- <archetypeVersion>1.0.1.Beta2</archetypeVersion>
- <!-- <archetypeRepository>http://repository.jboss.org/nexus/content/groups/public/</archetypeRepository> -->
- <groupId>org.jboss.tools.examples</groupId>
- <artifactId>jboss-javaee6-webapp</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <javaPackage>org.jboss.tools.examples</javaPackage>
- <!--
- <properties>
- <property name="name" value="Java EE 6 webapp project"/>
- </properties>
- -->
- </mavenArchetype>
- </project>
<project>
- <category>Java EE 6 Quickstarts</category>
- <name>jboss-javaee6-webapp</name>
- <included-projects>jboss-javaee6-webapp</included-projects>
- <shortDescription>Java EE 6 example (Maven archetype)</shortDescription>
- <description>
-This is your project! It's a sample, deployable Maven 3 project to help you get your foot in the door developing with Java EE 6 on JBoss AS 7.
-This project is setup to allow you to create a compliant Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1, JPA 2.0 and Bean Validation 1.0.
-It includes a persistence unit and some sample persistence and transaction code to help you get your feet wet with database access in enterprise Java.
- </description>
- <size>8192</size>
- <url/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70</property>
- <property name="description">This project example requires JBoss AS 7.0</property>
- <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.eclipse.m2e.core</property>
- <property name="versions">[1.0.0,1.2.0)</property>
- <property name="description">This project example requires m2e >= 1.0.</property>
- <property name="connectorIds">org.eclipse.m2e.feature</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
- <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
- <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.jboss.tools.maven.core</property>
- <property name="versions">[1.3.0,1.4.0)</property>
- <property name="description">This project example requires JBoss Maven Tools.</property>
- <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature,org.jboss.tools.maven.hibernate.feature,org.jboss.tools.maven.jaxrs.feature,org.jboss.tools.maven.portlet.feature,org.jboss.tools.maven.seam.feature</property>
- </fix>
- </fixes>
- <importType>mavenArchetype</importType>
- <importTypeDescription>The project example requires the m2e, m2eclipse-wtp and JBoss Maven Integration feature.</importTypeDescription>
- <mavenArchetype>
- <archetypeGroupId>org.jboss.spec.archetypes</archetypeGroupId>
- <archetypeArtifactId>jboss-javaee6-webapp</archetypeArtifactId>
- <archetypeVersion>7.0.2-SNAPSHOT</archetypeVersion>
- <archetypeRepository>http://anonsvn.jboss.org/repos/jbosstools/workspace/fred/repositories/sna...</archetypeRepository>
- <groupId>org.jboss.tools.examples</groupId>
- <artifactId>jboss-javaee6-webapp</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <javaPackage>org.jboss.tools.examples</javaPackage>
- <properties>
- <property name="name" value="Java EE 6 webapp project"/>
- </properties>
- </mavenArchetype>
- </project>
- <!-- Temporary EE6 project - replace with Pete's new archetype when it's ready -->
- <project>
- <category>Java EE 6 Quickstarts</category>
- <name>multi-javaee6-archetype</name>
- <included-projects>multi-javaee6-archetype</included-projects>
- <shortDescription>JBoss AS 7 / Java EE 6 EAR Webapp(Maven archetype)</shortDescription>
- <description>An archetype that generates a starter Java EE 6 webapp project for JBoss AS 7 / EAP 6. The project is an EAR, with an EJB-JAR and WAR</description>
- <size>13806</size>
- <url/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.eap.60</property>
- <property name="description">This project example requires JBoss AS 7.0</property>
- <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.eclipse.m2e.core</property>
- <property name="versions">[1.0.0,1.2.0)</property>
- <property name="description">This project example requires m2e >= 1.0.</property>
- <property name="connectorIds">org.eclipse.m2e.feature</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
- <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
- <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.jboss.tools.maven.core</property>
- <property name="versions">[1.3.0,1.4.0)</property>
- <property name="description">This project example requires JBoss Maven Tools.</property>
- <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature</property>
- </fix>
- </fixes>
- <importType>mavenArchetype</importType>
- <importTypeDescription>The project example requires the m2e, m2eclipse-wtp and JBoss Maven Integration feature.</importTypeDescription>
- <mavenArchetype>
- <archetypeGroupId>org.jboss.spec.archetypes</archetypeGroupId>
- <archetypeArtifactId>jboss-javaee6-ear-webapp</archetypeArtifactId>
- <archetypeVersion>7.0.2-SNAPSHOT</archetypeVersion>
- <archetypeRepository>http://anonsvn.jboss.org/repos/jbosstools/workspace/fred/repositories/sna...</archetypeRepository>
- <groupId>org.jboss.tools.example</groupId>
- <artifactId>multi</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <javaPackage></javaPackage>
- </mavenArchetype>
- <!--targetProjectFacet facet="jst.ear" version="6.0"/-->
- </project>
- <!-- Temporary POH5 project - replace with Pete's new archetype when it's ready -->
- <project>
- <category>Java EE 6 Quickstarts</category>
- <name>jboss-javaee6-poh5-archetype</name>
- <included-projects>jboss-javaee6-poh5</included-projects>
- <shortDescription>Java EE 6 HTML5 Mobile Webapp (Maven archetype)</shortDescription>
- <description>An archetype that generates a Java EE 6 HTML5 Mobile Webapp project for JBoss AS 7 / EAP 6</description>
- <size>165567</size>
- <url/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.eap.60</property>
- <property name="description">This project example requires JBoss AS 7.0</property>
- <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.eclipse.m2e.core</property>
- <property name="versions">[1.0.0,1.2.0)</property>
- <property name="description">This project example requires m2e >= 1.0.</property>
- <property name="connectorIds">org.eclipse.m2e.feature</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
- <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
- <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.jboss.tools.maven.core</property>
- <property name="versions">[1.3.0,1.4.0)</property>
- <property name="description">This project example requires JBoss Maven Tools.</property>
- <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature</property>
- </fix>
- </fixes>
- <importType>mavenArchetype</importType>
- <importTypeDescription>The project example requires the m2e, m2eclipse-wtp and JBoss Maven Integration feature.</importTypeDescription>
- <defaultMavenProfiles>arq-jbossas-remote</defaultMavenProfiles>
- <mavenArchetype>
- <archetypeGroupId>org.jboss.spec.archetypes</archetypeGroupId>
- <archetypeArtifactId>jboss-javaee6-html5-mobile-archetype</archetypeArtifactId>
- <archetypeVersion>7.0.2-SNAPSHOT</archetypeVersion>
- <archetypeRepository>http://anonsvn.jboss.org/repos/jbosstools/workspace/fred/repositories/sna...</archetypeRepository>
- <groupId>org.jboss.tools.example</groupId>
- <artifactId>html5-webapp</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <javaPackage>org.jboss.tools.example.html5</javaPackage>
- </mavenArchetype>
- </project>
- <!-- Temporary Spring MVC project - replace with Marius' new archetype when it's ready -->
- <project>
- <category>Java EE 6 Quickstarts</category>
- <name>spring-mvc-webapp</name>
- <included-projects>spring-mvc-webapp</included-projects>
- <shortDescription>Java EE 6 - Spring MVC Application (Maven archetype)</shortDescription>
- <description>An archetype that generates a starter Spring MVC application with Java EE persistence settings (server bootstrapped JPA, JTA transaction management) for JBoss AS7 / EAP 6</description>
- <size>165567</size>
- <url/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.eap.60</property>
- <property name="description">This project example requires JBoss AS 7.0</property>
- <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.eclipse.m2e.core</property>
- <property name="versions">[1.0.0,1.2.0)</property>
- <property name="description">This project example requires m2e >= 1.0.</property>
- <property name="connectorIds">org.eclipse.m2e.feature</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
- <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
- <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.jboss.tools.maven.core</property>
- <property name="versions">[1.3.0,1.4.0)</property>
- <property name="description">This project example requires JBoss Maven Tools.</property>
- <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature</property>
- </fix>
- </fixes>
- <importType>mavenArchetype</importType>
- <importTypeDescription>The project example requires the m2e, m2eclipse-wtp and JBoss Maven Integration feature.</importTypeDescription>
- <mavenArchetype>
- <archetypeGroupId>org.jboss.spring.archetypes</archetypeGroupId>
- <archetypeArtifactId>spring-mvc-webapp</archetypeArtifactId>
- <archetypeVersion>1.0.0.CR1</archetypeVersion>
- <!-- archetypeRepository>http://anonsvn.jboss.org/repos/jbosstools/workspace/fred/repositories/sna...</archetypeRepository -->
- <groupId>org.jboss.tools.example</groupId>
- <artifactId>springmvc</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <javaPackage>org.jboss.tools.example.springmvc</javaPackage>
- </mavenArchetype>
- </project>
- <!-- Richfaces project -->
- <project>
- <category>Java EE 6 Quickstarts</category>
- <name>richfaces-archetype-simpleapp</name>
- <included-projects>richfaces-archetype-simpleapp</included-projects>
- <shortDescription>Java EE 6 - RichFaces Simple Application (Maven archetype)</shortDescription>
- <description>An archetype that generates a simple Richfaces application</description>
- <size>165567</size>
- <url/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.eap.60</property>
- <property name="description">This project example requires JBoss AS 7.0</property>
- <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.eclipse.m2e.core</property>
- <property name="versions">[1.0.0,1.2.0)</property>
- <property name="description">This project example requires m2e >= 1.0.</property>
- <property name="connectorIds">org.eclipse.m2e.feature</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
- <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
- <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.jboss.tools.maven.core</property>
- <property name="versions">[1.3.0,1.4.0)</property>
- <property name="description">This project example requires JBoss Maven Tools.</property>
- <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature</property>
- </fix>
- </fixes>
- <importType>mavenArchetype</importType>
- <importTypeDescription>The project example requires the m2e, m2eclipse-wtp and JBoss Maven Integration feature.</importTypeDescription>
- <defaultMavenProfiles>jee6</defaultMavenProfiles>
- <mavenArchetype>
- <archetypeGroupId>org.richfaces.archetypes</archetypeGroupId>
- <archetypeArtifactId>richfaces-archetype-simpleapp</archetypeArtifactId>
- <archetypeVersion>4.1.0-SNAPSHOT</archetypeVersion>
- <archetypeRepository>http://repository.jboss.org/nexus/content/repositories/snapshots/</archetypeRepository>
- <groupId>org.jboss.tools.example</groupId>
- <artifactId>richfaces-webapp</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <javaPackage>org.jboss.tools.example.richfaces</javaPackage>
- </mavenArchetype>
- </project>
- <project>
<category>JBoss AS 7 Quickstarts</category>
<name>helloworld</name>
<included-projects>jboss-as-helloworld</included-projects>
@@ -292,8 +12,8 @@
<url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
<fixes>
<fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
- <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71, org.jboss.ide.eclipse.as.runtime.eap.60</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1 or EAP 6 </property>
<property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
</fix>
<fix type="plugin">
@@ -304,7 +24,7 @@
</fix>
<fix type="plugin">
<property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="versions">[0.13.1,0.16.0)</property>
<property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
<property name="connectorIds">org.maven.ide.eclipse.wtp</property>
</fix>
@@ -337,8 +57,8 @@
<url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
<fixes>
<fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
- <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71, org.jboss.ide.eclipse.as.runtime.eap.60</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1 or EAP 6 </property>
<property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
</fix>
<fix type="plugin">
@@ -349,7 +69,7 @@
</fix>
<fix type="plugin">
<property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="versions">[0.13.1,0.16.0)</property>
<property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
<property name="connectorIds">org.maven.ide.eclipse.wtp</property>
</fix>
@@ -378,8 +98,8 @@
<url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
<fixes>
<fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
- <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71, org.jboss.ide.eclipse.as.runtime.eap.60</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1 or EAP 6 </property>
<property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
</fix>
<fix type="plugin">
@@ -390,7 +110,7 @@
</fix>
<fix type="plugin">
<property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="versions">[0.13.1,0.16.0)</property>
<property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
<property name="connectorIds">org.maven.ide.eclipse.wtp</property>
</fix>
@@ -419,8 +139,8 @@
<url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
<fixes>
<fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
- <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71, org.jboss.ide.eclipse.as.runtime.eap.60</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1 or EAP 6 </property>
<property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
</fix>
<fix type="plugin">
@@ -431,7 +151,7 @@
</fix>
<fix type="plugin">
<property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="versions">[0.13.1,0.16.0)</property>
<property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
<property name="connectorIds">org.maven.ide.eclipse.wtp</property>
</fix>
@@ -461,8 +181,8 @@
<url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
<fixes>
<fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
- <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71, org.jboss.ide.eclipse.as.runtime.eap.60</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1 or EAP 6 </property>
<property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
</fix>
<fix type="plugin">
@@ -473,7 +193,7 @@
</fix>
<fix type="plugin">
<property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="versions">[0.13.1,0.16.0)</property>
<property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
<property name="connectorIds">org.maven.ide.eclipse.wtp</property>
</fix>
@@ -499,8 +219,8 @@
<url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
<fixes>
<fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
- <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71, org.jboss.ide.eclipse.as.runtime.eap.60</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1 or EAP 6 </property>
<property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
</fix>
<fix type="plugin">
14 years, 4 months
JBoss Tools SVN: r37265 - in trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal: v7 and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-12-13 08:24:37 -0500 (Tue, 13 Dec 2011)
New Revision: 37265
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServerBehavior.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java
Log:
JBIDE-9630 - to trunk
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java 2011-12-13 13:23:45 UTC (rev 37264)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java 2011-12-13 13:24:37 UTC (rev 37265)
@@ -169,11 +169,11 @@
if( ds == null )
return;
- IJBossServerPublishMethod method = getOrCreatePublishMethod();
+ IJBossServerPublishMethod method = createPublishMethod();
IPath depPath = PublishUtil.getDeployPath(method, module, ds);
if( ServerModelUtilities.isBinaryModule(module[module.length-1]) || ds.zipsWTPDeployments()) {
// touch the file
- getOrCreatePublishMethod().getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
+ method.getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
} else {
// touch the descriptor
IPublishCopyCallbackHandler callback = method.getCallbackHandler(AbstractServerToolsPublisher.getRootPath(depPath).append(depPath), getServer());
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServerBehavior.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServerBehavior.java 2011-12-13 13:23:45 UTC (rev 37264)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServerBehavior.java 2011-12-13 13:24:37 UTC (rev 37265)
@@ -60,6 +60,17 @@
method.publishStart(this, monitor);
}
+ /**
+ * Get the current publish method if one exists, or, create one and return it.
+ * Any created publish method will be cached and stored.
+ *
+ * This method should NOT be called except as part of the publishing process.
+ * Clients that need a disposable single-use publish method should call
+ * createPublishMethod() instead.
+ *
+ * @return
+ * @throws CoreException
+ */
protected IJBossServerPublishMethod getOrCreatePublishMethod() throws CoreException {
if( method == null )
method = createPublishMethod();
@@ -103,11 +114,16 @@
}
/**
- * This should only be called once per overall publish.
- * publishStart() should call this, cache the method, and use it
- * until after publishFinish() is called.
+ * This method creates a disposable publishMethod for use in publishing modules and projects,
+ * touching files, copying files, or any other task relevent to publish methods.
*
- * @return
+ * This method will also be called once during a "publish cycle"
+ * between publishStart and publishFinish, with the
+ * IJBossServerPublishMethod cached for the duration.
+ *
+ * Other clients can use this API to have a disposable publish method to use.
+ *
+ * @return The publish method
*/
public IJBossServerPublishMethod createPublishMethod() {
IJBossServerPublishMethodType type = DeploymentPreferenceLoader.getCurrentDeploymentMethodType(getServer());
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java 2011-12-13 13:23:45 UTC (rev 37264)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java 2011-12-13 13:24:37 UTC (rev 37265)
@@ -169,11 +169,11 @@
if( ds == null )
return;
- IJBossServerPublishMethod method = getOrCreatePublishMethod();
+ IJBossServerPublishMethod method = createPublishMethod();
IPath depPath = PublishUtil.getDeployPath(method, module, ds);
if( ServerModelUtilities.isBinaryModule(module[module.length-1]) || ds.zipsWTPDeployments()) {
// touch the file
- getOrCreatePublishMethod().getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
+ method.getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
} else {
// touch the descriptor
IPublishCopyCallbackHandler callback = method.getCallbackHandler(AbstractServerToolsPublisher.getRootPath(depPath).append(depPath), getServer());
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java 2011-12-13 13:23:45 UTC (rev 37264)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java 2011-12-13 13:24:37 UTC (rev 37265)
@@ -101,7 +101,7 @@
}
List<IPath> paths = getMarkedDoDeploy();
monitor.beginTask("Completing Publishes", paths.size() + 1); //$NON-NLS-1$
- createDoDeployMarker(paths, monitor);
+ createDoDeployMarker(getOrCreatePublishMethod(), paths, monitor);
}
@Override
@@ -110,9 +110,9 @@
if( ds == null )
return;
- IJBossServerPublishMethod method = getOrCreatePublishMethod();
+ IJBossServerPublishMethod method = createPublishMethod();
IPath depPath = PublishUtil.getDeployPath(method, module, ds);
- createDoDeployMarker(new IPath[]{depPath}, monitor);
+ createDoDeployMarker(method, new IPath[]{depPath}, monitor);
}
@Override
@@ -180,12 +180,14 @@
}
return (List<IPath>) o;
}
- private void createDoDeployMarker(IPath[] paths, IProgressMonitor monitor) throws CoreException {
+ private void createDoDeployMarker(IJBossServerPublishMethod method, IPath[] paths, IProgressMonitor monitor) throws CoreException {
List<IPath> allPaths = Arrays.asList(paths);
- createDoDeployMarker(allPaths, monitor);
+ createDoDeployMarker(method, allPaths, monitor);
}
- private void createDoDeployMarker(List<IPath> paths, IProgressMonitor monitor) throws CoreException {
- DeploymentMarkerUtils.addDoDeployMarker(getOrCreatePublishMethod(), getServer(), paths, monitor);
+ private void createDoDeployMarker(IJBossServerPublishMethod method, List<IPath> paths, IProgressMonitor monitor) throws CoreException {
+ if( method == null )
+ method = createPublishMethod();
+ DeploymentMarkerUtils.addDoDeployMarker(method, getServer(), paths, monitor);
}
@Override
14 years, 4 months
JBoss Tools SVN: r37264 - in branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal: v7 and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-12-13 08:23:45 -0500 (Tue, 13 Dec 2011)
New Revision: 37264
Modified:
branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java
branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServerBehavior.java
branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java
branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java
Log:
JBIDE-9630 - branch commit for longstanding 'already publishing' bug
Modified: branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java
===================================================================
--- branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java 2011-12-13 12:12:50 UTC (rev 37263)
+++ branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DelegatingServerBehavior.java 2011-12-13 13:23:45 UTC (rev 37264)
@@ -169,11 +169,11 @@
if( ds == null )
return;
- IJBossServerPublishMethod method = getOrCreatePublishMethod();
+ IJBossServerPublishMethod method = createPublishMethod();
IPath depPath = PublishUtil.getDeployPath(method, module, ds);
if( ServerModelUtilities.isBinaryModule(module[module.length-1]) || ds.zipsWTPDeployments()) {
// touch the file
- getOrCreatePublishMethod().getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
+ method.getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
} else {
// touch the descriptor
IPublishCopyCallbackHandler callback = method.getCallbackHandler(AbstractServerToolsPublisher.getRootPath(depPath).append(depPath), getServer());
Modified: branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServerBehavior.java
===================================================================
--- branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServerBehavior.java 2011-12-13 12:12:50 UTC (rev 37263)
+++ branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServerBehavior.java 2011-12-13 13:23:45 UTC (rev 37264)
@@ -59,6 +59,17 @@
method.publishStart(this, monitor);
}
+ /**
+ * Get the current publish method if one exists, or, create one and return it.
+ * Any created publish method will be cached and stored.
+ *
+ * This method should NOT be called except as part of the publishing process.
+ * Clients that need a disposable single-use publish method should call
+ * createPublishMethod() instead.
+ *
+ * @return
+ * @throws CoreException
+ */
protected IJBossServerPublishMethod getOrCreatePublishMethod() throws CoreException {
if( method == null )
method = createPublishMethod();
@@ -102,11 +113,16 @@
}
/**
- * This should only be called once per overall publish.
- * publishStart() should call this, cache the method, and use it
- * until after publishFinish() is called.
+ * This method creates a disposable publishMethod for use in publishing modules and projects,
+ * touching files, copying files, or any other task relevent to publish methods.
*
- * @return
+ * This method will also be called once during a "publish cycle"
+ * between publishStart and publishFinish, with the
+ * IJBossServerPublishMethod cached for the duration.
+ *
+ * Other clients can use this API to have a disposable publish method to use.
+ *
+ * @return The publish method
*/
public IJBossServerPublishMethod createPublishMethod() {
IJBossServerPublishMethodType type = DeploymentPreferenceLoader.getCurrentDeploymentMethodType(getServer());
Modified: branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java
===================================================================
--- branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java 2011-12-13 12:12:50 UTC (rev 37263)
+++ branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServerBehavior.java 2011-12-13 13:23:45 UTC (rev 37264)
@@ -169,11 +169,11 @@
if( ds == null )
return;
- IJBossServerPublishMethod method = getOrCreatePublishMethod();
+ IJBossServerPublishMethod method = createPublishMethod();
IPath depPath = PublishUtil.getDeployPath(method, module, ds);
if( ServerModelUtilities.isBinaryModule(module[module.length-1]) || ds.zipsWTPDeployments()) {
// touch the file
- getOrCreatePublishMethod().getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
+ method.getCallbackHandler(depPath.removeLastSegments(1), getServer()).touchResource(new Path(depPath.lastSegment()));
} else {
// touch the descriptor
IPublishCopyCallbackHandler callback = method.getCallbackHandler(AbstractServerToolsPublisher.getRootPath(depPath).append(depPath), getServer());
Modified: branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java
===================================================================
--- branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java 2011-12-13 12:12:50 UTC (rev 37263)
+++ branches/jbosstools-3.3.0.M5/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/DelegatingJBoss7ServerBehavior.java 2011-12-13 13:23:45 UTC (rev 37264)
@@ -100,7 +100,7 @@
}
List<IPath> paths = getMarkedDoDeploy();
monitor.beginTask("Completing Publishes", paths.size() + 1); //$NON-NLS-1$
- createDoDeployMarker(paths, monitor);
+ createDoDeployMarker(getOrCreatePublishMethod(), paths, monitor);
}
@Override
@@ -109,9 +109,9 @@
if( ds == null )
return;
- IJBossServerPublishMethod method = getOrCreatePublishMethod();
+ IJBossServerPublishMethod method = createPublishMethod();
IPath depPath = PublishUtil.getDeployPath(method, module, ds);
- createDoDeployMarker(new IPath[]{depPath}, monitor);
+ createDoDeployMarker(method, new IPath[]{depPath}, monitor);
}
@Override
@@ -179,11 +179,14 @@
}
return (List<IPath>) o;
}
- private void createDoDeployMarker(IPath[] paths, IProgressMonitor monitor) throws CoreException {
+ private void createDoDeployMarker(IJBossServerPublishMethod method, IPath[] paths, IProgressMonitor monitor) throws CoreException {
List<IPath> allPaths = Arrays.asList(paths);
- createDoDeployMarker(allPaths, monitor);
+ createDoDeployMarker(method, allPaths, monitor);
}
- private void createDoDeployMarker(List<IPath> paths, IProgressMonitor monitor) throws CoreException {
- DeploymentMarkerUtils.addDoDeployMarker(getOrCreatePublishMethod(), getServer(), paths, monitor);
+ private void createDoDeployMarker(IJBossServerPublishMethod method, List<IPath> paths, IProgressMonitor monitor) throws CoreException {
+ if( method == null )
+ method = createPublishMethod();
+ DeploymentMarkerUtils.addDoDeployMarker(method, getServer(), paths, monitor);
}
+
}
14 years, 4 months
JBoss Tools SVN: r37263 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wait/condition.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2011-12-13 07:12:50 -0500 (Tue, 13 Dec 2011)
New Revision: 37263
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wait/condition/NonSystemJobRunsCondition.java
Log:
Changed the running jobs condition
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wait/condition/NonSystemJobRunsCondition.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wait/condition/NonSystemJobRunsCondition.java 2011-12-13 12:12:26 UTC (rev 37262)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wait/condition/NonSystemJobRunsCondition.java 2011-12-13 12:12:50 UTC (rev 37263)
@@ -37,7 +37,7 @@
private List<Job> getJobs(){
List<Job> jobs = new ArrayList<Job>();
for (Job job : Job.getJobManager().find(null)){
- if (!job.isSystem()){
+ if (!job.isSystem() && Job.SLEEPING != job.getState()){
jobs.add(job);
}
}
14 years, 4 months
JBoss Tools SVN: r37262 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/workspace/file.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2011-12-13 07:12:26 -0500 (Tue, 13 Dec 2011)
New Revision: 37262
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/workspace/file/ExistingFilesMatcher.java
Log:
Improved error reporting
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/workspace/file/ExistingFilesMatcher.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/workspace/file/ExistingFilesMatcher.java 2011-12-13 10:37:42 UTC (rev 37261)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/workspace/file/ExistingFilesMatcher.java 2011-12-13 12:12:26 UTC (rev 37262)
@@ -1,5 +1,6 @@
package org.jboss.tools.portlet.ui.bot.matcher.workspace.file;
+import java.util.ArrayList;
import java.util.List;
import org.hamcrest.Description;
@@ -10,6 +11,12 @@
public class ExistingFilesMatcher extends AbstractSWTMatcher<List<WorkspaceFile>> {
+ private List<WorkspaceFile> missingFiles;
+
+ public ExistingFilesMatcher() {
+ missingFiles = new ArrayList<WorkspaceFile>();
+ }
+
@Override
public boolean matchesSafely(List<WorkspaceFile> files) {
SWTBotFactory.getOpen().perspective(ActionItem.Perspective.JAVA.LABEL);
@@ -18,15 +25,15 @@
boolean isPresent = SWTBotFactory.getPackageexplorer().isFilePresent(file.getProject(), file.getFilePathAsArray());
if (!isPresent){
- return false;
+ missingFiles.add(file);
}
}
- return true;
+ return missingFiles.isEmpty();
}
@Override
public void describeTo(Description description) {
- description.appendText("existing files");
+ description.appendText("existing files " + missingFiles);
}
}
14 years, 4 months