[jbosstools-issues] [JBoss JIRA] (JBIDE-10218) Run button in toolbar needs to run the newly generated project
Snjezana Peco (JIRA)
jira-events at lists.jboss.org
Wed Jan 18 10:15:19 EST 2012
[ https://issues.jboss.org/browse/JBIDE-10218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660205#comment-12660205 ]
Snjezana Peco commented on JBIDE-10218:
---------------------------------------
We could add the following features:
1) We could add the select-projects element to the project examples xml file. If a project example creator adds that element as follows:
<select-projects>${project[1]}, ${project[2]}</select-project>
the Project examples engine would check if the Package Explorer view (and, maybe, the Project Explorer view) is visible/open. If so, it would select the mentioned projects.
If the selectProjects element doesn't exist, the Project Examples engine would try to select project[0].
For those projects that have a runtime/server fix, it is also possible to check the "Always use this server when running this project" preference (https://issues.jboss.org/secure/attachment/12349250/Screen+Shot+2011-11-22+at+12.02.38+PM.png screenshot).
That would enable the user to start a project using the Run/Debug icon without showing the Run On server wizard.
2) As to the deploying a datasource, JBoss AS > 5.x/6.x recognizes a datasource added to the application.xml file. I think, this way I have created all the project examples targeted to JBoss AS 5.x/JBoss AS 6.x (EAP 5.x), but it isn't possible to do that for the project examples targeted to the JBoss AS 4.
It is, however, possible to add the make-deployables element to the project examples xml file. This property would contain resources as, for instance, the following one:
<make-deployables >${project[0]}-ear/resources/photolbum-ds.xml</make-deployables >
The Project Examples would deploy this resource to the server after successful importing a project example and assigning server/runtime to the project example.
3) We could also suppress starting a project example if all requirements are not satisfied. Users would be able to change this behavior using the Project Examples preference
> Run button in toolbar needs to run the newly generated project
> --------------------------------------------------------------
>
> Key: JBIDE-10218
> URL: https://issues.jboss.org/browse/JBIDE-10218
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: central, common/jst/core
> Reporter: Burr Sutter
> Fix For: 3.3.0.Beta1
>
> Attachments: Screen Shot 2011-11-22 at 12.02.17 PM.png, Screen Shot 2011-11-22 at 12.02.38 PM.png, Screen Shot 2011-11-22 at 12.02.53 PM.png, Screen Shot 2011-11-22 at 12.03.03 PM.png, Screen Shot 2011-11-22 at 12.03.29 PM.png, Screen Shot 2011-11-22 at 12.03.42 PM.png
>
>
> The Run icon in the Eclipse toolbar is where a new developer (new to JBoss Tools) expects to go directly after he has generated a new project from either File-New or JBoss Central by using one of the archetypes or project examples/quickstarts.
> This means the generated project needs to be highlighted in the Project Explorer and the Run button should "just work".
> There is also an issue with Run vs Debug - if the server is in "debug mode" then Run should just assume that is OK and not prompt the user.
> Run on Server should be the default so the user can use a single click on OK
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list