[JBoss JIRA] (FORGE-1867) Enable sorting of UIInputs added to UIBuilder
by Lincoln Baxter III (JIRA)
Lincoln Baxter III created FORGE-1867:
-----------------------------------------
Summary: Enable sorting of UIInputs added to UIBuilder
Key: FORGE-1867
URL: https://issues.jboss.org/browse/FORGE-1867
Project: Forge
Issue Type: Feature Request
Components: UI - API
Affects Versions: 2.6.0.Final
Reporter: Lincoln Baxter III
Priority: Minor
Fix For: 2.x Future
builder.add(input1).add(input2).add(input3).sort(new Sorter() {...})
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (FORGE-1804) Generated code is not properly indented
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1804?page=com.atlassian.jira.plugin... ]
Antonio Goncalves commented on FORGE-1804:
------------------------------------------
Working fine !
> Generated code is not properly indented
> ---------------------------------------
>
> Key: FORGE-1804
> URL: https://issues.jboss.org/browse/FORGE-1804
> Project: Forge
> Issue Type: Enhancement
> Components: Java EE
> Affects Versions: 2.6.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.6.1.Final
>
> Attachments: win7.png
>
>
> *The affected version is 2.5.1-SNAPSHOT*. I noticed a regression in 2.5.1-SNAPSHOT.
> I create an Entity and an EJB :
> {code}
> [temp]$ project-new --named proj251
> [proj251]$ jpa-new-entity --named MyEntity
> [MyEntity.java]$ ejb-new-bean --named MyService
> {code}
> If I run this script in 2.5.0 the generated code is well indented. Here for the entity :
> {code}
> import java.lang.Override;
> @Entity
> public class MyEntity implements Serializable
> {code}
> And for the EJB :
> {code}
> import java.io.Serializable;
> @Stateless
> @LocalBean
> public class MyService implements Serializable
> {code}
> But when I do that with 2.5.1-SNAPSHOT, the class annotation is not right :
> {code}
> import java.lang.Override;@Entity
> public class MyEntity implements Serializable {
> {code}
> And
> {code}
> import java.io.Serializable;@Stateless
> @LocalBean
> public class MyService implements Serializable {
> {code}
> I haven't tried with all the other artifacts, I'm wondering if it's on all the generated code or not
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (FORGE-1860) Writing files with content
by Robert Balent (JIRA)
[ https://issues.jboss.org/browse/FORGE-1860?page=com.atlassian.jira.plugin... ]
Robert Balent updated FORGE-1860:
---------------------------------
Assignee: (was: Robert Balent)
> Writing files with content
> --------------------------
>
> Key: FORGE-1860
> URL: https://issues.jboss.org/browse/FORGE-1860
> Project: Forge
> Issue Type: Feature Request
> Components: UI - Shell
> Affects Versions: 2.6.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> I see myself adding files here and there on my projects (JBoss cli commands, shell scripts, SQL scripts...) and I use the touch command in Forge extensively. But how could I add content to these files ? I mostly write Forge scripts, so I would love to do something like that in my script :
> {code}
> # Creates a project
> project-new --named test
> # Adds a few extra files and directories
> mkdir src/main/script ;
> touch src/main/resources/insert.sql ; // This creates an empty file
> touch src/main/script/wildfly-show.cli --content (((( // This adds content to the file
> version
> # ####################
> # # System Properties
> # ####################
> /core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
> # ####################
> # # Datasource
> # ####################
> /subsystem=datasources/data-source=ApplicationBlancheH2DS:read-resource
> ))))
> {code}
> And this command would just create a file with the previous content in it. As you can see, this can be tricky : when to end the content of a file (something similar to <![CDATA[]]>)
> George mentioned on the mailing list :
> ??I think piping to a file would be more intuitive and it should work now:??
> {code}
> echo Hi > a.txt
> {code}
> The problem with this, is I can't make it work the way I want. In fact, each time I do a {{echo text > file.txt}}, the {{file.txt}} is created in the directory below, not the current one. As I can't create a file in another directory.
> {code}
> [Devoxx]$ ls
> [Devoxx]$ project-new --named testecho
> ***SUCCESS*** Project named 'testecho' has been created.
> [testecho]$ ls
> pom.xml src
> [testecho]$ echo Text to add to this new file > newfile.txt
> [testecho]$ ls
> pom.xml src
> [testecho]$ cd ..
> [Devoxx]$ ls
> newfile.txt testecho
> [Devoxx]$
> [testecho]$ echo One test again > ./file.txt
> [testecho]$ ls
> pom.xml src
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (FORGE-1804) Generated code is not properly indented
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1804?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1804.
----------------------------------
Fix Version/s: 2.6.1.Final
(was: 2.x Future)
Resolution: Done
Fixed by upgrading to Roaster 2.5.1.Final
> Generated code is not properly indented
> ---------------------------------------
>
> Key: FORGE-1804
> URL: https://issues.jboss.org/browse/FORGE-1804
> Project: Forge
> Issue Type: Enhancement
> Components: Java EE
> Affects Versions: 2.6.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.6.1.Final
>
> Attachments: win7.png
>
>
> *The affected version is 2.5.1-SNAPSHOT*. I noticed a regression in 2.5.1-SNAPSHOT.
> I create an Entity and an EJB :
> {code}
> [temp]$ project-new --named proj251
> [proj251]$ jpa-new-entity --named MyEntity
> [MyEntity.java]$ ejb-new-bean --named MyService
> {code}
> If I run this script in 2.5.0 the generated code is well indented. Here for the entity :
> {code}
> import java.lang.Override;
> @Entity
> public class MyEntity implements Serializable
> {code}
> And for the EJB :
> {code}
> import java.io.Serializable;
> @Stateless
> @LocalBean
> public class MyService implements Serializable
> {code}
> But when I do that with 2.5.1-SNAPSHOT, the class annotation is not right :
> {code}
> import java.lang.Override;@Entity
> public class MyEntity implements Serializable {
> {code}
> And
> {code}
> import java.io.Serializable;@Stateless
> @LocalBean
> public class MyService implements Serializable {
> {code}
> I haven't tried with all the other artifacts, I'm wondering if it's on all the generated code or not
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (FORGE-1865) Upgrade to Roaster 2.5.1.Final
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1865:
--------------------------------------
Summary: Upgrade to Roaster 2.5.1.Final
Key: FORGE-1865
URL: https://issues.jboss.org/browse/FORGE-1865
Project: Forge
Issue Type: Component Upgrade
Components: Parsers / File Manipulation
Affects Versions: 2.6.0.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 2.6.1.Final
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months