Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IDE-348 get deploy, undeploy, and update working for remote servers
- Loading branch information
Showing
13 changed files
with
1,523 additions
and
1,360 deletions.
There are no files selected for viewing
78 changes: 40 additions & 38 deletions
78
eclipse/common/plugins/com.liferay.ide.eclipse.sdk/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Liferay Plugin SDK | ||
Bundle-SymbolicName: com.liferay.ide.eclipse.sdk;singleton:=true | ||
Bundle-Version: 1.3.0.qualifier | ||
Bundle-Activator: com.liferay.ide.eclipse.sdk.SDKPlugin | ||
Bundle-Vendor: Liferay, Inc. | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.jdt.launching, | ||
org.eclipse.debug.core, | ||
org.eclipse.ant.core, | ||
org.eclipse.ant.ui, | ||
com.liferay.ide.eclipse.core, | ||
org.eclipse.ui.externaltools, | ||
org.eclipse.debug.ui, | ||
org.eclipse.jdt.debug.ui, | ||
org.eclipse.jdt.core, | ||
org.eclipse.wst.server.core;bundle-version="[1.1.102,2.0.0)", | ||
org.eclipse.wst.common.project.facet.core;bundle-version="[1.4.1,1.5.0)", | ||
com.liferay.ide.eclipse.ui, | ||
org.eclipse.ant.launching | ||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||
Bundle-ActivationPolicy: lazy | ||
Export-Package: com.liferay.ide.eclipse.sdk, | ||
com.liferay.ide.eclipse.sdk.job, | ||
com.liferay.ide.eclipse.sdk.pref, | ||
com.liferay.ide.eclipse.sdk.util, | ||
org.apache.commons.configuration, | ||
org.apache.commons.configuration.beanutils, | ||
org.apache.commons.configuration.event, | ||
org.apache.commons.configuration.interpol, | ||
org.apache.commons.configuration.plist, | ||
org.apache.commons.configuration.reloading, | ||
org.apache.commons.configuration.tree, | ||
org.apache.commons.configuration.tree.xpath, | ||
org.apache.commons.configuration.web | ||
Bundle-ClassPath: ., | ||
lib/commons-configuration-1.6.jar | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Liferay Plugin SDK | ||
Bundle-SymbolicName: com.liferay.ide.eclipse.sdk;singleton:=true | ||
Bundle-Version: 1.3.0.qualifier | ||
Bundle-Activator: com.liferay.ide.eclipse.sdk.SDKPlugin | ||
Bundle-Vendor: Liferay, Inc. | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.jdt.launching, | ||
org.eclipse.debug.core, | ||
org.eclipse.ant.core, | ||
org.eclipse.ant.ui, | ||
com.liferay.ide.eclipse.core, | ||
org.eclipse.ui.externaltools, | ||
org.eclipse.debug.ui, | ||
org.eclipse.jdt.debug.ui, | ||
org.eclipse.jdt.core, | ||
org.eclipse.wst.server.core;bundle-version="[1.1.102,2.0.0)", | ||
org.eclipse.wst.common.project.facet.core;bundle-version="[1.4.1,1.5.0)", | ||
com.liferay.ide.eclipse.ui, | ||
org.eclipse.ant.launching, | ||
org.apache.commons.logging;visibility:=reexport, | ||
org.apache.commons.collections;visibility:=reexport | ||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||
Bundle-ActivationPolicy: lazy | ||
Export-Package: com.liferay.ide.eclipse.sdk, | ||
com.liferay.ide.eclipse.sdk.job, | ||
com.liferay.ide.eclipse.sdk.pref, | ||
com.liferay.ide.eclipse.sdk.util, | ||
org.apache.commons.configuration, | ||
org.apache.commons.configuration.beanutils, | ||
org.apache.commons.configuration.event, | ||
org.apache.commons.configuration.interpol, | ||
org.apache.commons.configuration.plist, | ||
org.apache.commons.configuration.reloading, | ||
org.apache.commons.configuration.tree, | ||
org.apache.commons.configuration.tree.xpath, | ||
org.apache.commons.configuration.web | ||
Bundle-ClassPath: ., | ||
lib/commons-configuration-1.6.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 41 additions & 43 deletions
84
eclipse/server/plugins/com.liferay.ide.eclipse.server.core/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,41 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Liferay Server Core | ||
Bundle-SymbolicName: com.liferay.ide.eclipse.server.core;singleton:=true | ||
Bundle-Version: 1.3.0.qualifier | ||
Bundle-Activator: com.liferay.ide.eclipse.server.core.LiferayServerCorePlugin | ||
Bundle-Vendor: Liferay, Inc. | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.wst.server.core;bundle-version="[1.1.102,2.0.0)";visibility:=reexport, | ||
org.eclipse.jst.server.core;bundle-version="[1.2.0,2.0.0)";visibility:=reexport, | ||
org.eclipse.debug.core, | ||
org.eclipse.jdt.launching, | ||
com.liferay.ide.eclipse.core, | ||
org.eclipse.jst.server.tomcat.core;bundle-version="[1.1.106,1.2.0)", | ||
org.eclipse.jst.server.tomcat.ui;bundle-version="[1.1.102,1.2.0)", | ||
org.eclipse.jdt.core, | ||
org.eclipse.wst.common.project.facet.core;bundle-version="[1.4.1,1.5.0)", | ||
org.eclipse.jst.j2ee;bundle-version="[1.1.301,2.0.0)", | ||
org.eclipse.jdt.debug, | ||
org.eclipse.jdt.debug.ui, | ||
org.eclipse.debug.ui, | ||
org.eclipse.wst.xml.core;bundle-version="[1.1.402,1.5.0)", | ||
org.eclipse.core.expressions;bundle-version="3.4.101", | ||
com.liferay.ide.eclipse.ui;bundle-version="1.0.0";visibility:=reexport, | ||
org.eclipse.wst.ws.parser;bundle-version="[1.0.402,1.1.0)", | ||
javax.wsdl;bundle-version="[1.5.1,1.7.0)", | ||
org.eclipse.jst.common.frameworks;bundle-version="[1.1.300,1.2.0)", | ||
org.apache.commons.logging, | ||
org.apache.commons.collections, | ||
org.eclipse.jst.common.project.facet.core, | ||
org.apache.commons.httpclient, | ||
org.apache.commons.codec;visibility:=reexport, | ||
org.apache.commons.io;visibility:=reexport, | ||
com.liferay.ide.eclipse.sdk | ||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||
Bundle-ActivationPolicy: lazy | ||
Export-Package: com.liferay.ide.eclipse.server.core, | ||
com.liferay.ide.eclipse.server.core.support, | ||
com.liferay.ide.eclipse.server.remote, | ||
com.liferay.ide.eclipse.server.util | ||
Bundle-ClassPath: ., | ||
portal-support/deps/portal-impl.jar, | ||
portal-support/deps/portal-service.jar | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Liferay Server Core | ||
Bundle-SymbolicName: com.liferay.ide.eclipse.server.core;singleton:=true | ||
Bundle-Version: 1.3.0.qualifier | ||
Bundle-Activator: com.liferay.ide.eclipse.server.core.LiferayServerCorePlugin | ||
Bundle-Vendor: Liferay, Inc. | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.wst.server.core;bundle-version="[1.1.102,2.0.0)";visibility:=reexport, | ||
org.eclipse.jst.server.core;bundle-version="[1.2.0,2.0.0)";visibility:=reexport, | ||
org.eclipse.debug.core, | ||
org.eclipse.jdt.launching, | ||
com.liferay.ide.eclipse.core, | ||
org.eclipse.jst.server.tomcat.core;bundle-version="[1.1.106,1.2.0)", | ||
org.eclipse.jst.server.tomcat.ui;bundle-version="[1.1.102,1.2.0)", | ||
org.eclipse.jdt.core, | ||
org.eclipse.wst.common.project.facet.core;bundle-version="[1.4.1,1.5.0)", | ||
org.eclipse.jst.j2ee;bundle-version="[1.1.301,2.0.0)", | ||
org.eclipse.jdt.debug, | ||
org.eclipse.jdt.debug.ui, | ||
org.eclipse.debug.ui, | ||
org.eclipse.wst.xml.core;bundle-version="[1.1.402,1.5.0)", | ||
org.eclipse.core.expressions;bundle-version="3.4.101", | ||
com.liferay.ide.eclipse.ui;bundle-version="1.0.0";visibility:=reexport, | ||
org.eclipse.wst.ws.parser;bundle-version="[1.0.402,1.1.0)", | ||
javax.wsdl;bundle-version="[1.5.1,1.7.0)", | ||
org.eclipse.jst.common.frameworks;bundle-version="[1.1.300,1.2.0)", | ||
org.eclipse.jst.common.project.facet.core, | ||
org.apache.commons.httpclient, | ||
org.apache.commons.codec;visibility:=reexport, | ||
org.apache.commons.io;visibility:=reexport, | ||
com.liferay.ide.eclipse.sdk | ||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||
Bundle-ActivationPolicy: lazy | ||
Export-Package: com.liferay.ide.eclipse.server.core, | ||
com.liferay.ide.eclipse.server.core.support, | ||
com.liferay.ide.eclipse.server.remote, | ||
com.liferay.ide.eclipse.server.util | ||
Bundle-ClassPath: ., | ||
portal-support/deps/portal-impl.jar, | ||
portal-support/deps/portal-service.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 56 additions & 55 deletions
111
...ver.core/src/com/liferay/ide/eclipse/server/core/LiferayRuntimeStubClasspathProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,56 @@ | ||
package com.liferay.ide.eclipse.server.core; | ||
|
||
import org.eclipse.core.resources.IProject; | ||
import org.eclipse.core.runtime.CoreException; | ||
import org.eclipse.core.runtime.IConfigurationElement; | ||
import org.eclipse.core.runtime.NullProgressMonitor; | ||
import org.eclipse.core.runtime.Platform; | ||
import org.eclipse.jdt.core.IClasspathEntry; | ||
import org.eclipse.jst.server.core.RuntimeClasspathProviderDelegate; | ||
import org.eclipse.wst.server.core.IRuntime; | ||
|
||
|
||
public class LiferayRuntimeStubClasspathProvider extends RuntimeClasspathProviderDelegate { | ||
|
||
private static final NullProgressMonitor npm = new NullProgressMonitor(); | ||
protected RuntimeClasspathProviderDelegate stubDelegate = null; | ||
|
||
public LiferayRuntimeStubClasspathProvider() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public IClasspathEntry[] resolveClasspathContainer( IProject project, IRuntime runtime ) { | ||
IClasspathEntry[] retval = null; | ||
|
||
if ( stubDelegate == null ) { | ||
LiferayRuntimeStubDelegate delegate = | ||
(LiferayRuntimeStubDelegate) runtime.loadAdapter( LiferayRuntimeStubDelegate.class, npm ); | ||
|
||
String runtimeStubTypeId = delegate.getRuntimeStubTypeId(); | ||
|
||
IConfigurationElement[] elements = | ||
Platform.getExtensionRegistry().getConfigurationElementsFor( | ||
"org.eclipse.jst.server.core.runtimeClasspathProviders" ); | ||
|
||
for ( IConfigurationElement element : elements ) { | ||
String runtimeTypeIds = element.getAttribute( "runtimeTypeIds" ); | ||
if ( runtimeTypeIds.contains( runtimeStubTypeId ) ) { | ||
try { | ||
stubDelegate = (RuntimeClasspathProviderDelegate) element.createExecutableExtension( "class" ); | ||
} | ||
catch ( CoreException e ) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
} | ||
} | ||
|
||
if ( stubDelegate != null ) { | ||
retval = stubDelegate.resolveClasspathContainer( project, runtime ); | ||
} | ||
|
||
return retval; | ||
} | ||
} | ||
package com.liferay.ide.eclipse.server.core; | ||
|
||
import org.eclipse.core.resources.IProject; | ||
import org.eclipse.core.runtime.CoreException; | ||
import org.eclipse.core.runtime.IConfigurationElement; | ||
import org.eclipse.core.runtime.NullProgressMonitor; | ||
import org.eclipse.core.runtime.Platform; | ||
import org.eclipse.jdt.core.IClasspathEntry; | ||
import org.eclipse.jst.server.core.RuntimeClasspathProviderDelegate; | ||
import org.eclipse.wst.server.core.IRuntime; | ||
|
||
|
||
public class LiferayRuntimeStubClasspathProvider extends RuntimeClasspathProviderDelegate { | ||
|
||
private static final NullProgressMonitor npm = new NullProgressMonitor(); | ||
protected RuntimeClasspathProviderDelegate stubDelegate = null; | ||
|
||
public LiferayRuntimeStubClasspathProvider() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public IClasspathEntry[] resolveClasspathContainer( IProject project, IRuntime runtime ) { | ||
IClasspathEntry[] retval = null; | ||
|
||
if ( stubDelegate == null ) { | ||
LiferayRuntimeStubDelegate delegate = | ||
(LiferayRuntimeStubDelegate) runtime.loadAdapter( LiferayRuntimeStubDelegate.class, npm ); | ||
|
||
String runtimeStubTypeId = delegate.getRuntimeStubTypeId(); | ||
|
||
IConfigurationElement[] elements = | ||
Platform.getExtensionRegistry().getConfigurationElementsFor( | ||
"org.eclipse.jst.server.core.runtimeClasspathProviders" ); | ||
|
||
for ( IConfigurationElement element : elements ) { | ||
String runtimeTypeIds = element.getAttribute( "runtimeTypeIds" ); | ||
if ( runtimeTypeIds.contains( runtimeStubTypeId ) ) { | ||
try { | ||
stubDelegate = (RuntimeClasspathProviderDelegate) element.createExecutableExtension( "class" ); | ||
break; | ||
} | ||
catch ( CoreException e ) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
} | ||
} | ||
|
||
if ( stubDelegate != null ) { | ||
retval = stubDelegate.resolveClasspathContainer( project, runtime ); | ||
} | ||
|
||
return retval; | ||
} | ||
} |
Oops, something went wrong.