[forge-issues] [JBoss JIRA] (FORGE-1432) run command is missing (and with it, scripting)

Ståle Pedersen (JIRA) issues at jboss.org
Thu Feb 20 02:29:47 EST 2014


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

Ståle Pedersen edited comment on FORGE-1432 at 2/20/14 2:28 AM:
----------------------------------------------------------------

i dont know much about fsh, but afaik a "normal" script like this works in æsh:
{code}
#!/bin/bash

/path/to/forge2 <<EOFDEL
my-commands-here
++++

EOFDEL
{code}
                
      was (Author: stalep):
    i dont know much about fsh, but afaik a "normal" script like works in æsh:
{code}
#!/bin/bash

/path/to/forge2 <<EOFDEL
my-commands-here
++++

EOFDEL
{code}
                  
> run command is missing (and with it, scripting)
> -----------------------------------------------
>
>                 Key: FORGE-1432
>                 URL: https://issues.jboss.org/browse/FORGE-1432
>             Project: Forge
>          Issue Type: Sub-task
>          Components: UI - Shell
>    Affects Versions: 2.0.0.CR2
>            Reporter: Antonio Goncalves
>            Assignee: Lincoln Baxter III
>             Fix For: 2.x Future
>
>
> I use a lot of scripts to start my projects, add/remove Maven dependencies.... So when I'm in Forge console, I type {{run ../myScript.fsh}}. For example, here is a script I use to get ride of EE 6 dependencies and add EE7  :
> {code}
> @/* ====================================== */;
> @/* == From Java EE 6 to 7 Dependencies == */;
> @/* ====================================== */;
> project remove-dependency org.hibernate.javax.persistence:hibernate-jpa-2.0-api ;
> project remove-dependency javax.validation:validation-api ;
> project remove-dependency org.hibernate:hibernate-validator ;
> project remove-dependency javax.enterprise:cdi-api ;
> project remove-dependency org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec ;
> project remove-dependency org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec ;
> project remove-dependency org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec ;
> project remove-dependency org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec ;
> project remove-dependency org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec ;
> project remove-dependency org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec ;
> project add-dependency javax:javaee-api:7.0:provided ;
> project add-dependency org.primefaces:primefaces:4.0 ;
> project add-repository primefaces-repo http://repository.primefaces.org ;
> {code}
> I have other scripts like that. The good this is, without leaving the console, I can write :
> {code}
> [Forge]$ run script1.fsh
> [Forge]$ run script2.fsh
> [Forge]$ run script3.fsh
> {code}

--
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 forge-issues mailing list