[forge-issues] [JBoss JIRA] (FORGE-2099) scaffold-generate command should have a --targetPackage attribute

Antonio Goncalves (JIRA) issues at jboss.org
Tue Oct 28 06:38:35 EDT 2014


    [ https://issues.jboss.org/browse/FORGE-2099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015482#comment-13015482 ] 

Antonio Goncalves commented on FORGE-2099:
------------------------------------------

{quote}
vineetr_  agoncal: Changes should be done here: https://github.com/forge/core/blob/master/javaee/faces/src/main/java/org/jboss/forge/addon/scaffold/faces/FacesScaffoldProvider.java#L812-L816
vineetr_  specifically this line should be changed to the user-configurable value: viewBean.setPackage(java.getBasePackage() + ".view");
vineetr_  java.getBasePackage() would return a safe value from groupId+artifactId, to be used in a package name
{quote}

> scaffold-generate command should have a --targetPackage attribute
> -----------------------------------------------------------------
>
>                 Key: FORGE-2099
>                 URL: https://issues.jboss.org/browse/FORGE-2099
>             Project: Forge
>          Issue Type: Sub-task
>          Components: Scaffold
>    Affects Versions: 2.12.1.Final
>            Reporter: Antonio Goncalves
>             Fix For: 2.12.2.Final
>
>
> Today, the {{scaffold-generate}} command has the following attributes :
> {code}
> scaffold-generate --provider  --webRoot  --targets  --pageTemplate
> {code}
> {{webRoot}} is to change the default directory of where the pages are generated. It would be good to have a {{targetPackage}} attribute as well, to customize the default package of the generated JSF Beans



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the forge-issues mailing list