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);
// Manipulate the model as in [2]

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

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


forge-users mailing list