Auto generate ant files from a template in eclipse

Each time I start a new Java project, I find that I continue to copy my build.xml file from the previous Java project. Is there a way in Eclipse, I can just create a template file and replace it with project information (name and directory)?

+3
source share
1 answer

You can customize Ant patterns and use them for various purposes.

Go to Window-> Preferences → Ant → Editor-> Templates, then create a new template or modify an existing one to suit your needs.

There is a great video that shows some of the options.

+1
source

Source: https://habr.com/ru/post/1714517/


All Articles