Executing processes in Forge 2
by Ivan St. Ivanov
Hi everybody,
I have a question about Forge 2. Is there a utility for executing external
processes?
In Forge 1 there was this:
org.jboss.forge.shell.util.NativeSystemCall.execFromPath
However, in Forge 2 it is hidden in the maven-impl project. There is
something similar in org.jboss.forge.arquillian.util.NativeSystemCall.
Is there a preferred way in Forge 2 to run external processes? Maybe every
developer should write their own utility? Or maybe we could move the
maven-impl implementation to Furnace (org.jboss.forge.furnace.util)?
Cheers,
Ivan
10 years, 10 months
angular scaffold: parent/child relationship issues
by Thomas Frühbeck
Hi,
I wanted to work with AngularJS scaffold in Forge and ask for your help.
With Forge2, I did not find the way to install the angularjs-scaffold-x
as addon/plugin.
Is there some guidance available on how to use oldstyle plugins as addons?
Stepping back to Forge 1.4 I successfully created a simple parent/child
application.
On deployment on Wildfly 8.0.0 CR1 I found following issues:
Setup: I created a parent and then a child, the child referencing the
parent.
Issue 1:
- w/o any modifications I got a StackOverflowError in
org.codehaus.jackson.map.ser.BeanSerializer because infinite loop
between parent/child
My solution was to:
- import org.codehaus.jackson/jackson-jaxrs maven dependency
(because this is, what Wildfly seems to use per default)
- add @JsonManagedReference/@JsonBackReference on the
parent.children and child.parent properties resp.
Is there some simpler/more obvious fix for the problem?
In Fasterxml Jackson 2.x there is a @JsonIdentityInfo, could this be a
way to solve the issue?
I seem to be unable to activate Fasterxml.Jackson on Wildfly :-/
Issue 2:
- by above @JsonBackReference the child.parent property was not
serialized and so the reference did not show up as selected in the
parents <select> options
My solution was to rewrite the EditChildController to check for
parent.id from the parents side (because child.parent is empty):
for (var idx=0; idx < item.children.length; idx++) {
if (item.children[idx].id === $scope.child.id) {
$scope.parentSelection = labelObject;
$scope.child.parent = wrappedObject;
}
}
Original code:
if($scope.child.parent && item.id ==
$scope.child.parent.id) {
$scope.parentSelection = labelObject;
$scope.child.parent = wrappedObject;
self.original.parent = $scope.child.parent;
}
Again I ask for your expertise, if this is a problem I introduced by
misusing @JsonBackReference or if this needs a fix in the scaffold.
Thank you for your great work on Forge and this incredible AngularJS
plugin :-)
Thomas
10 years, 10 months
Forge Hack Night, 2nd ed.
by Ivan St. Ivanov
Hi folks,
With Forge 2 coming really soon, I think that it is time for our second
Forge Hack Night. I still remember the first one: it was at the same time
fun and success.
Now I guess that a good theme for our next event could be Forge 1 plugins
migration to Forge 2. It would be valuable for us, non-core contributors,
to develop our first addons while having Lincoln, George, Koen or Vineet in
the IRC channel. It would also be good for Forge to have a blast of good
old plugins migrated.
What do you think?
Cheers,
Ivan
10 years, 10 months
Re: [forge-dev] Forge 2.0.0.CR2 Released
by Antonio Goncalves
>
> Hum.... I've downloaded Forge, removed all the addons, and when I run
> Forge, it installs and downloads CR1 artifacts, not CR2 :
>
>
> Installation request for [org.jboss.forge.addon:core,2.0.0.CR1] will:
> Deploy: [org.jboss.forge.addon:addons,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:addon-manager-spi,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:addon-manager,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:scaffold-spi,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:scaffold-faces,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:scaffold,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:database-tools,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:dev-tools-java,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:configuration,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:shell-spi,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:shell,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:parser-java,2.0.0.CR1]
> Deploy: [org.jboss.forge.furnace.container:simple,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:text,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:projects,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:templates-spi,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:templates,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:javaee,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:dependencies,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:resources,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:parser-xml,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:maven,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:convert,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:environment,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:ui-spi,2.0.0.CR1]
> Deploy: [org.jboss.forge.furnace.container:cdi,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:facets,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:ui,2.0.0.CR1]
> Deploy: [org.jboss.forge.addon:core,2.0.0.CR1]
>
> Confirm installation [Y/n]? Y
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/addons/2.0.0.CR1/addo...
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/addons-api/2.0.0.CR1/...
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/addons-impl/2.0.0.CR1...
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/forge/furnace/container/cdi/2.0.0...
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/ui/2.0.0.CR1/ui-2.0.0...
> Downloaded:
> http://repo1.maven.org/maven2/org/jboss/forge/furnace/container/cdi/2.0.0... KB at 38.5 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/maven/2.0.0.CR1/maven...
> Downloaded:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/addons/2.0.0.CR1/addo... KB at 36.6 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/projects/2.0.0.CR1/pr...
> Downloaded:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/ui/2.0.0.CR1/ui-2.0.0... KB at 25.1 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/javaee/2.0.0.CR1/java...
> Downloaded:
> http://repo1.maven.org/maven2/org/jboss/forge/addon/maven/2.0.0.CR1/maven... KB at 48.5 KB/sec)
>
>
> The version is CR2 :
>
> [Forge]$ version
> JBoss Forge, version [ 2.0.0.CR2 ] - JBoss, by Red Hat, Inc. [
> http://jboss.org/forge ]
>
> But I don't see any of the new commands such as project-remove-dependency :
>
> [Forge]$ project-new
> --named --finalName --topLevelPackage --buildSystem --targetLocation
> --type --version
>
> Are you sure CR2 contains the rights addons ?
>
>
> 2014-01-28 Lincoln Baxter, III <lincolnbaxter(a)gmail.com>
>
> Please try it out and check for bugs! We are very close to final! Just one
>> day away :)
>>
>> http://forge.jboss.org/news/2014/01/28/post-forge-2.html
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.org
>> "Simpler is better."
>>
>
--
--
Antonio Goncalves (antonio.goncalves(a)gmail.com)
Software architect
Web site : www.antoniogoncalves.org
Blog: agoncal.wordpress.com
Feed: feeds2.feedburner.com/AntonioGoncalves
Paris JUG leader : www.parisjug.org
LinkedIn: www.linkedin.com/in/agoncal
10 years, 10 months
Asciidoctor, Hyla and Forge
by Alex Soto
Hello Forge folks,
this is Alex, I am the developer of AsciidoctorJ, the interface between
Ruby part of Asciidoctor and Java. There is one project called Hyla
https://github.com/cmoulliard/hyla (written in Ruby) which is something
like a console for working with Asciidoctor. Basically what I am going to
do is something similar but for Java.
What I want is create some commands which allows you to create an
Asciidoctor project for example with DZSlides structure, so for example
user can do:
$>asciidoctor install template dzslides http://......... #this command
download a template from internet and install it inside forge directory.
$>asciidoctor create dzslides /home/alex/mypresentation #this command
basically uncompress the downloaded file inside the destination directory
$>asciidoctor render #this command renders the project.
Then as you can see it is a very lightweight operations, basically download
something from internet, uncompress it, and run a compilation command. Of
course maybe in future I can add something like push to github-pages, ....
But my original idea was to usig Crest (project from Tomitribe) because I
don't need many things provided by (Forge 1), but after Forge 2 is released
(which means user can install the required addons instead of having some
predefined addons),
I send this email because Lincoln asked it in Twitter, so I don't know what
are your thoughts about this.
BTW one thing that worries me a lot is about using JBoss Modules because
historically has complicated a bit our life with classloader issues and
JRuby, but of course may be it is time to give a try with Forge.
Thank you so much,
Alex.
--
+----------------------------------------------------------+
Alex Soto Bueno
www.lordofthejars.com
+----------------------------------------------------------+
10 years, 10 months
Meeting minutes - 02-05-2014
by George Gastaldi
==============
#forge Meeting
==============
Meeting started by lincolnthree at 15:54:33 UTC. The full logs are
available at
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2014/forge.20...
.
Meeting summary
---------------
* Agenda (lincolnthree, 15:54:46)
* Final Release Post-mortem (fallout/issues/etc) (gastaldi, 15:55:59)
* Forge Hack Night (gastaldi, 15:57:39)
* Next steps (Forge 2, Website) (lincolnthree, 15:58:19)
* Final Release Post-mortem (fallout/issues/etc) (gastaldi, 15:59:28)
* next release version will be 2.1.0.Final (lincolnthree, 16:00:48)
* ACTION: Current core/master branch will be renamed to core/1.x —
core/2.0 branch will be renamed to core/master. (lincolnthree,
16:02:40)
* the Java-parser project was renamed to Roaster (gastaldi, 16:03:25)
* Forge Hack Night (gastaldi, 16:06:52)
* ACTION: The Forge Hack Night is scheduled for Feb 10th and 17th
(gastaldi, 16:15:12)
* ACTION: For more information about the hack night dates, visit
http://forge.jboss.org/events.html (gastaldi, 16:18:42)
* Next steps (Forge 2, Website) (ivannov, 16:22:37)
* LINK: https://issues.jboss.org/browse/FORGE-1479 (lincolnthree,
16:23:28)
* LINK: https://issues.jboss.org/browse/FORGE-1432 (lincolnthree,
16:23:34)
* ACTION: Decide new package name for Roaster (lincolnthree,
16:37:47)
* ACTION: Crobson will put together a few visual designs, then we will
proceed to the implementation phase (hire a web designer.)
(lincolnthree, 16:46:31)
Meeting ended at 16:51:55 UTC.
Action Items
------------
* Current core/master branch will be renamed to core/1.x — core/2.0
branch will be renamed to core/master.
* The Forge Hack Night is scheduled for Feb 10th and 17th
* For more information about the hack night dates, visit
http://forge.jboss.org/events.html
* Decide new package name for Roaster
* Crobson will put together a few visual designs, then we will proceed
to the implementation phase (hire a web designer.)
Action Items, by person
-----------------------
* **UNASSIGNED**
* Current core/master branch will be renamed to core/1.x — core/2.0
branch will be renamed to core/master.
* The Forge Hack Night is scheduled for Feb 10th and 17th
* For more information about the hack night dates, visit
http://forge.jboss.org/events.html
* Decide new package name for Roaster
* Crobson will put together a few visual designs, then we will proceed
to the implementation phase (hire a web designer.)
People Present (lines said)
---------------------------
* lincolnthree (109)
* gastaldi (101)
* ivannov (41)
* crobson (35)
* vineetreynolds (13)
* mbenson (9)
* jbossbot (6)
* jbott (4)
* koentsje (2)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
10 years, 10 months
Java-parser name change
by George Gastaldi
Hello everyone,
We are in the process of releasing a new version of the Java-parser
project (thanks to the great job from Matt Benson) and we would like to
give it a cool, easy to remember name.
We came up with the name "Roaster", so we would like to know if there is
any objection on the name change or we could go ahead with it?
Best Regards and looking forward to seeing your reply,
--
*George Gastaldi | Senior Software Engineer*
JBoss Forge Team
T: +55 11 3524-6169
M: +55 47 9711-1000
Red Hat
Better technology. Faster innovation. Powered by community collaboration.
See how it works at www.redhat.com <http://www.redhat.com/>
LinkedIn <http://www.linkedin.com/company/3258288> Youtube
<https://www.youtube.com/redhatlatam>
10 years, 10 months