1) To create a JavaClass you are free to choose whether Freemarker templates are more adequate or use Roaster to create the class using an API [1]
2) To create an application.yaml file, you can use this code:

ResourcesFacet resources = project.getFacet(ResourcesFacet.class);
YamlResource applicationYaml = resources.getResource("application.yaml").as(YamlResource.class);
applicationYaml.createNewFile();
// Manipulate the model as in [2]


On Thu, Mar 9, 2017 at 2:59 PM, Charles Moulliard <cmoullia@redhat.com> wrote:
Hi,

As there are different strategies to scaffold code of a project, I would like to get your opinion about the idea to use the template approach (ex. Rest.ftl) using freemarker [1] or to create the files using JavaFacet, .... for a Spring project

Can we create easily a Java Class with @Annotations ?
What do you suggest to do to by example setup src/main/resources/application.yaml file


Regards,
 
Charles 

_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users