[forge-issues] [JBoss JIRA] (FORGE-1851) scaffold-generate requires a webRoot value to be provided for additional parameters to be displayed.

Vineet Reynolds (JIRA) issues at jboss.org
Thu May 22 19:00:56 EDT 2014


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

Vineet Reynolds resolved FORGE-1851.
------------------------------------

         Assignee: Vineet Reynolds
    Fix Version/s: 2.5.1.Final
       Resolution: Done


Resolved in commit: https://github.com/forge/core/commit/ba9d0c9d24acae50980970673469f37f39e59e3b

The isSetup invocation did not set the Project instance for the scaffold provider, thus causing an NPE and preventing Aesh from obtaining a complete list of navigation result entries to use for populating the autocomplete list.

> scaffold-generate requires a webRoot value to be provided for additional parameters to be displayed.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: FORGE-1851
>                 URL: https://issues.jboss.org/browse/FORGE-1851
>             Project: Forge
>          Issue Type: Bug
>          Components: Scaffold
>    Affects Versions: 2.5.1.Final
>            Reporter: Vineet Reynolds
>            Assignee: Vineet Reynolds
>             Fix For: 2.5.1.Final
>
>
> Gist https://gist.github.com/VineetReynolds/b4cedca4c95cbef9ae8a
> This occurs when you type the following commands :
> {code}
> [Devoxx]$ project-new --named cdbookstore --topLevelPackage org.agoncal.cdbookstore --type war --finalName cdbookstore ;
> [cdbookstore]$ jpa-generate-entities-from-tables --jdbcUrl jdbc:postgresql://localhost:5432/postgres --userName postgres --userPassword postgres --driverLocation /Users/antoniombp/.m2/repository/org/postgresql/postgresql/9.3-1100-jdbc3/postgresql-9.3-1100-jdbc3.jar --hibernateDialect PostgreSQL\ :\ org.hibernate.dialect.PostgreSQLDialect ;
> [cdbookstore]$ scaffold-setup ;
> [cdbookstore]$ scaffold-generate --   TAB
> --provider --webRoot
> {code}
> The code completion for command {{scaffold-generate}} only brings the {{--provider}} and {{--webRoot}} options. Only if you fill them that {{--targets}} is shown :
> {code}
> [cdbookstore]$ scaffold-generate -- TAB
> --provider --webRoot
> [cdbookstore]$ scaffold-generate --provider Faces --webRoot test -- TAB
> --targets --pageTemplate
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the forge-issues mailing list