[forge-dev] JBoss Stacks: Requirements

Rafael Benevides benevides at redhat.com
Mon Jul 16 21:19:18 EDT 2012


The latest version of the JBoss Stacks format is right here: 
https://github.com/jboss-jdf/jdf-stack/blob/Beta2/stacks.yaml
I think that this format finally met our requirements.

For now, I put only JBoss EAP 6.0 and JBoss AS 7.0.0 runtimes just to 
illustrate how it should be. The archetypes will also follow the same 
structure.

I committed the parser on the same repo because the parser is tied to 
the file format.

The Stacks class is now the root of the Yaml file ( more detail on 
attached diagram - modified since last email ).

The API use is simple as:

Stacks stacks = parser.parse(inputStream);

After we just navigate on the graph (various paths are possible):
/
stacks.getAvailableBoms().get(SOME);
stacks.getAvailableRuntimes().get(SOME);
stacks.getMajorReleases().get(SOME).getMinorReleases().get(OTHER).getRecommendedRuntime().getBoms().get(ANOTHER).
stacks.getMinorReleases().get(SOME).getRecommendedRuntime().getRecommendedBOM().getAvailableVersions();/

Now I will update the jdf-plugin to use the jdf-stack parser API.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20120716/ef537889/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Class Diagram.png
Type: image/png
Size: 155529 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/forge-dev/attachments/20120716/ef537889/attachment-0001.png 


More information about the forge-dev mailing list