Author: adietish
Date: 2011-12-21 09:04:43 -0500 (Wed, 21 Dec 2011)
New Revision: 37491
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java
Log:
[JBIDE-10542] commented what needs to be changedto be able to push to the configured
remote
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java 2011-12-21
14:00:08 UTC (rev 37490)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java 2011-12-21
14:04:43 UTC (rev 37491)
@@ -35,6 +35,8 @@
public class ExpressPublishMethod implements IJBossServerPublishMethod {
+ private ArrayList<IProject> projectsLackingGitRepo = null;
+
public ExpressPublishMethod() {
// TODO Auto-generated constructor stub
}
@@ -46,7 +48,6 @@
}
- private ArrayList<IProject> projectsLackingGitRepo = null;
@Override
public int publishFinish(DeployableServerBehavior behaviour,
IProgressMonitor monitor) throws CoreException {
@@ -101,6 +102,10 @@
return IServer.PUBLISH_STATE_NONE;
} else if( changed == 0 && requestPushApproval(module)) {
monitor.beginTask("Publishing " + p.getName(), 100);
+// TODO: use the following instead of the current:
+// EGitUtils.push("<remote name configured in
AdapterWizardPageModel#getRemoteName>"
+// , EGitUtils.getRepository(p)
+// , new SubProgressMonitor(monitor, 100));
EGitUtils.push(EGitUtils.getRepository(p), new SubProgressMonitor(monitor, 100));
monitor.done();
return IServer.PUBLISH_STATE_NONE;
Show replies by date