[forge-dev] [JBoss JIRA] Resolved: (SEAMFORGE-30) project.getName()

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Mon Jan 31 09:27:39 EST 2011


     [ https://issues.jboss.org/browse/SEAMFORGE-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lincoln Baxter III resolved SEAMFORGE-30.
-----------------------------------------

    Resolution: Rejected


Hi Josef,

The docs are pretty weak at the moment, sorry, but to get the name of the project, it is currently encapsulated in the MetadataFacet. The reason Project itself is so utterly bare is because with different build systems, there may be different ways of naming the project, so this is abstracted:

--------------------
MetadataFacet meta = project.getFacet(MetadataFacet.class);
String projectName = meta.getProjectName();

> project.getName()
> -----------------
>
>                 Key: SEAMFORGE-30
>                 URL: https://issues.jboss.org/browse/SEAMFORGE-30
>             Project: Seam Forge
>          Issue Type: Feature Request
>          Components: Brainstorming, Plugin API
>    Affects Versions: 1.0.0.Alpha1
>            Reporter: Jozef Hartinger
>            Priority: Minor
>
> Not sure what's currently the best way to find out the name of the current project (probably from pom file). However, I think it would be natural to encapsulate the mechanism for obtaining this information in the project object, by calling getName() method. Project name can be used by various plugins to display the project name on a generated view template or perhaps as a default name for a JAX-RS configuration class.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-dev mailing list