Generate Project Structure Dynamically Freemarker/FMPP

126 Views Asked by At

I am new to Freemarker and writing a new Software. Before starting of any functionality, I want to get a complete folder structure to be created dynamically on the basis of user input (like Project Name, package name etc.) But I am not able to find any better way to achieve this.

Here is the structure which I am looking for.

myProject
│   config.json
│   pom.xml
│
└───src
    └───main
        ├───server
        │       server-config.xml
        │
        └───resources
            │   server-artifact.properties
            │
            └───api
                    api.json

I managed to generate server-config.xml with some dynamic values using Freemarker but not able to understand that how can I process these folders/files recursively. And also where should I be maintaining this project structure meta-data so that if there is any change in this structure then program should be able to adapt that change and generate those basic files/folders dynamically.

Thanks in advance.

0

There are 0 best solutions below