[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5700) Simplify project examples update process

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Mon Jan 18 17:21:47 EST 2010


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

Snjezana Peco commented on JBIDE-5700:
--------------------------------------

Since a project example can contain more than one project that can have runtime, we can do the following:

- add the following declarations to the project_examples.xml file (optional) :

<runtimes>
  <asRuntime projectName="project1" runtimeType="org.jboss.ide.eclipse.as.51, org.jboss.ide.eclipse.as.50, org.jboss.ide.eclipse.as.60, any" />
  <asRuntime projectName="project2" runtimeType="org.jboss.ide.eclipse.as.60" />
  <seamRuntime projectName="project1" runtimeVersion="2.2.0, 2.1.2, any" />
  <seamRuntime projectName="project2" runtimeVersion="2.1.0", "2.1.1", "2.1.2" />
</runtimes>

The Project Examples engine would work in the following way:

- if the workspace would contain the same runtime name as the project in the project example does, the engine wouldn't do anything (in case of Seam and AS runtime)
- for the first declaration, PE would try to find the JBoss AS 5.1 Runtime, then JBoss AS 5.0 and finally JBoss AS 6.0. If it wouldn't find any, it would choose the first available runtime and set it to the project1
- for the second declaration, PE would set the server runtime to the project2 if there is the JBoss AS 6.0 Runtime
- declarations for Seam would be similar. The only difference would be using versions instead of types.

This would be done before bringing up the Quick Fix dialog.

We would have to add the JBoss Tools AS and Seam dependencies.

> Simplify project examples update process 
> -----------------------------------------
>
>                 Key: JBIDE-5700
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5700
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: project-examples
>    Affects Versions: 3.1.0.CR2
>            Reporter: Brian Fitzpatrick
>            Assignee: Snjezana Peco
>            Priority: Critical
>             Fix For: 3.1.0.CR2, 3.2.next
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> Currently for the project examples, the user must either create a runtime instance in the tooling that maps to the expected runtime name from the project example or go in and update the references in the Quick Fix dialog by hand in the project properties.
> Is there any way to make this process simpler? For example, could we match on the type of server instead of the name? 
> How feasible is this type of change?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list