sdedic opened a new pull request #3262:
URL: https://github.com/apache/netbeans/pull/3262


   The PR improves how the 'native project templates' for maven are handled. 
   
   The native templates, created by NB code (instead of `archetype:create` run) 
were generated entirely. The Layer template was just a stub whose only function 
was to invoke the wizard. The `api.templates` API lacks the ability to 
construct a subtree populated with files; this PR fixes that - the default 
processing will copy out folder-based template. Naturally if a specific 
`CreateFromTemplateHandler` chooses a different implementation, it will take 
precedence. As part of the changes, I've introduced possibility to interpolate 
template parameters in filenames - see the provided test resources.
   
   There are a few helper methods for CreateFromTemplateHandler implementors, 
which do stuff whose details are IMHO better not to export from the 
`api.templates` module or have the CFTH implementors replicate.
   
   There's also 
[NETBEANS-5847](https://issues.apache.org/jira/browse/NETBEANS-5847)  that 
notes that the maven application Wizard cannot be run from a headless mode 
(provided all necessary parameters are in). This PR moves much of 
WizardIterator's logic into `CreateFromTemplateHandler` implementation, and the 
Wizard just populates the `FileBuilder` parameter map.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to