[JBoss JIRA] (FORGE-1432) run command is missing (and with it, scripting)
by Ståle Pedersen (JIRA)
[ https://issues.jboss.org/browse/FORGE-1432?page=com.atlassian.jira.plugin... ]
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
10 years, 4 months
[JBoss JIRA] (FORGE-1587) FurnaceAddonSetupStep should split between addons and containers
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1587:
--------------------------------------
Summary: FurnaceAddonSetupStep should split between addons and containers
Key: FORGE-1587
URL: https://issues.jboss.org/browse/FORGE-1587
Project: Forge
Issue Type: Enhancement
Components: Plugin API
Affects Versions: 2.0.0.Final
Reporter: George Gastaldi
Fix For: 2.x Future
When creating a Forge Addon, the wizard step should have two inputs:
- Containers
- Dependent addons.
The validation should ensure that only 1 container is selected and 0..* addons are selected
--
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
10 years, 4 months
[JBoss JIRA] (FORGE-1535) Being able to update a field in an entity instead of "Field already exists"
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1535?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1535.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.0.1.Final
(was: 2.x Future)
Resolution: Done
> Being able to update a field in an entity instead of "Field already exists"
> ---------------------------------------------------------------------------
>
> Key: FORGE-1535
> URL: https://issues.jboss.org/browse/FORGE-1535
> Project: Forge
> Issue Type: Sub-task
> Components: Scaffold
> Affects Versions: 2.0.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.0.1.Final
>
>
> When you create a new field in an entity and, for example, need to change its datatype, there is not way to update it. Forge tells you that the field already exists :
> {code}
> [Artist.java]$ jpa-new-field --named age
> ***SUCCESS*** Field age created
> [Artist.java]$ jpa-new-field --named age --typeName int
> Field 'age' already exists
> {code}
> If would be good if Forge would ask to replace it :
> {code}
> [Artist.java]$ jpa-new-field --named age --typeName int
> Field 'age' already exists
> Do you want to ovewritte it (y/N) ?
> [Artist.java]$ y
> ***SUCCESS*** Field age created
> {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
10 years, 4 months
[JBoss JIRA] (FORGE-1531) Aesh Read Loop
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1531?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1531.
----------------------------------
Assignee: Ståle Pedersen
Fix Version/s: 2.0.1.Final
(was: 2.x Future)
Resolution: Done
Fixed in Aesh
> Aesh Read Loop
> --------------
>
> Key: FORGE-1531
> URL: https://issues.jboss.org/browse/FORGE-1531
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.Final
> Reporter: Antonio Goncalves
> Assignee: Ståle Pedersen
> Priority: Critical
> Fix For: 2.0.1.Final
>
>
> Difficult to reproduce, but I just copy/paste commands in the Console, and once in a while it goes bang with the following stacktrace. It happened 4 times just by copy/pasting any kind of lines of code. Could be related to [FORGE-1449] :
> {code}
> Exception in thread "Aesh Read Loop 934843325" java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at java.lang.AbstractStringBuilder.insert(AbstractStringBuilder.java:1152)
> at java.lang.StringBuilder.insert(StringBuilder.java:336)
> at org.jboss.aesh.console.Buffer.write(Buffer.java:369)
> at org.jboss.aesh.console.Console.writeChar(Console.java:1072)
> at org.jboss.aesh.console.Console.writeChars(Console.java:1067)
> at org.jboss.aesh.console.Console.parseOperation(Console.java:722)
> at org.jboss.aesh.console.Console.processInternalOperation(Console.java:624)
> at org.jboss.aesh.console.Console.execute(Console.java:609)
> at org.jboss.aesh.console.Console.access$400(Console.java:78)
> at org.jboss.aesh.console.Console$6.run(Console.java:531)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> {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
10 years, 4 months
[JBoss JIRA] (FORGE-1449) Copy/pasting several line in the Forge only pastes and executes the 1st line
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1449?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1449.
----------------------------------
Assignee: Ståle Pedersen
Fix Version/s: 2.0.1.Final
(was: 2.x Future)
Resolution: Done
Fixed in Aesh
> Copy/pasting several line in the Forge only pastes and executes the 1st line
> ----------------------------------------------------------------------------
>
> Key: FORGE-1449
> URL: https://issues.jboss.org/browse/FORGE-1449
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.CR2
> Environment: OS X Mavericks (10.9.1).
> JDK version "1.7.0_51"
> Reporter: Antonio Goncalves
> Assignee: Ståle Pedersen
> Fix For: 2.0.1.Final
>
>
> I have a few commands in a text file :
> {code}
> jpa-new-entity --named Book ;
> jpa-new-field --named isbn ;
> jpa-new-field --named title ;
> jpa-new-field --named author ;
> jpa-new-field --named description --length 2000 ;
> {code}
> When I copy paste these 5 lines in the Forge shell I get :
> {code}
> [Book.java]$ jpa-new-field --named isbn ;
> ***SUCCESS*** Field isbn created
> [Book.java]$
> {code}
> Only the first line is pasted and executed (the other lines are ignored)
--
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
10 years, 4 months