[jbosstools-issues] [JBoss JIRA] (JBIDE-14083) CordovaSim: create a launch configuration

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Fri Apr 19 03:48:53 EDT 2013


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

Max Rydahl Andersen commented on JBIDE-14083:
---------------------------------------------

"Automatically prefill" feature of launch configs can result in multiple launch configurations being generated and it also requires you to use Run As.. > CordovaSim *everytime*...if you launch it from the launch menu it will not be refiled.

A better option IMO is that the launch configuration does not need explicit values set, but just have a mechanism that says "if the field is not specified, figure it out at launch time". Examples of that is "Use workspace default JRE" or "default working directory" which are based on calculations.
Another approach is to use variables like "-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog" used in Eclipse PDE launch configurations but I think that is overkill for this situation.

If you have some code that calculates these settings based on current selection to prefill the launch config, that code could simply just be part of the launch config to calculate based on the selection at launch time.

Of course, other modules can still create an explicit launch configuration that does not use the defaults to make their own custom launch.

                
> CordovaSim: create a launch configuration
> -----------------------------------------
>
>                 Key: JBIDE-14083
>                 URL: https://issues.jboss.org/browse/JBIDE-14083
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: browsersim
>            Reporter: Yahor Radtsevich
>            Assignee: Yahor Radtsevich
>             Fix For: 4.1.0.Beta1
>
>         Attachments: icd-draft-1.png
>
>
> Launch configurations is the conventional way to run applications in Eclipse. The idea of the feature proposal is to create a specific launch configuration allowing to run Cordova enabled projects in CordovaSim.
> The launch configuration might have the following attributes:
> # Root folder (e.g. {{/myProject/www}})
> # Start page (e.g. {{index.html}})
> # Port number for embedded Jetty server (e.g. {{4400}}). This port will be visible in the BrowserSim address bar.
> The launch configuration might be automatically configured for:
> # Projects with the JBoss Tools Cordova nature which has {{www/index.html}}.
> # Projects with the Android nature which has {{assets/www/index.html}}.
> # Any {{.html}} file selected by the user.
> # Any folder selected by the user if it has an {{index.html}} in it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list