[jbosstools-issues] [JBoss JIRA] (JBIDE-21481) [server adapter] Allow publishing of wtp-style projects

Rob Stryker (JIRA) issues at jboss.org
Wed Jan 20 08:21:00 EST 2016


    [ https://issues.jboss.org/browse/JBIDE-21481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151134#comment-13151134 ] 

Rob Stryker commented on JBIDE-21481:
-------------------------------------

To properly get WTP-style projects deployed, a significant number of changes really need to be made to openshift server adapter. In reality, the behavior of the server should really be customized based on what we know of the pod's type (if it's possible to get such information). If we know the POD is an eap server, we'd use a lot of logic from astools, including being able to set .dodeploy markers and check server status and module deployment status. 

If the remote pod is something set up for node.js or php or other simple file-tree style projects, it'd use a much more simplified set of logic without any of these extras built in. 

The currently attached PR doesn't do the .dodeploy stuff, and so in reality, this patch only really allows changes to html files unless the user is willing to go in and touch the .dodeploy file in the (workspaceroot)/.metadata/.plugins/org.jboss.ide.eclipse.as.core/eap-app_at_OpenShift_3_(192.168.121.62)/deploy/ROOT.war.dodeploy file. 

However, once the user does that once, all future rsync's seem to always initiate a new full reload of the app on the server, and so we stop getting class errors when executing actions on kitchensink that require interaction with servlets or classes. Obviously this behaviour isn't ideal, since setting the .dodeploy once will result in every publish being a full restart of the module. 

But I think this patch is valuable for a beta2 to get some more user feedback on how it's working, what doesn't flow, and what can be improved. 

> [server adapter] Allow publishing of wtp-style projects
> -------------------------------------------------------
>
>                 Key: JBIDE-21481
>                 URL: https://issues.jboss.org/browse/JBIDE-21481
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: openshift, server
>    Affects Versions: 4.3.1.Beta1
>            Reporter: Rob Stryker
>            Assignee: Rob Stryker
>              Labels: openshift_v3, server_adapter
>             Fix For: 4.3.1.Beta2
>
>
> The openshift server adapter as currently coded simply copies the magic project into a hidden metadata location and executes an rsync.  This won't work for any project iwth a custom wtp-style layout and mappings available, including maven projects created via m2ewtp. 
> This jira targets an initial implementation of a zipped publish of wtp-style projects, both as the magic project or as an added module to be deployed along-side the magic project. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list