• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse: project builder out of template

 
Korhan Rankin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

I'm working on an "eclipse-project-builder" to create the stub for applications in a fast way. What I want is something like a template to import or create in eclipse, this template is like the bones and the developer puts the flesh into it. There is one naming-requirement, before this is imported or created into eclipse some values in files and package structures shall be named due to a specified value.

Now there are several ways to do something like this:
1. Copy the project-template with placesholders and run ant with arguments over it before importing to eclipse
2. Eclipse plugin to create the project within eclipse and specifiy the naming attribute(s)
3. RAD project interchange

I thought I ask here to get your opinion, someone may have experience with it or even better solutions... Which solution would you suggest and why?

Thanks in advance.
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a job for Maven archetypes to me. They have this kind of capability.
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another thought. If you are not keen on converting your projects to Maven, you could use Ant to do what you want. Create your template(s), embedding property references (e.g., ${project.name}) within the text files. Then use an Ant script to copy the template into the Eclipse workspace, using the ExpandProperties FilterChain to replace the embedded properties wit the values for the project. Essentially, this is what Maven archetypes do automatically.
 
Korhan Rankin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Peter,

I had a look at maven archetypes, that's exactly something I'm looking for.

Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic