I have a command line script that creates a (mostly) ready-to-go Eclipse project for me. It uses Maven's eclipse plugin, and has some other scripted steps such as copying our code standard settings from our repo into .settings. This is very handy, since I need to spin up new projects often, from this one template. (For branch work, one-off dev experiments, etc.)
But the project uses AspectJ. I can't figure out how to automatically tell Eclipse that it needs to "Convert to AspectJ", so I have to do this manually within Eclipse every time I create a new project.
Is there a way to configure the Eclipse project from the command line to consider itself an AspectJ project? I'm using Eclipse 3.4.2 and The AspectJ plugin 2.0.0.
You need to make changes to the .project file as well as your .classpath file.
Your .project file should look something like this:
And in your .classpath, you need to include the AspectJ runtime, which you can do by adding this line:
This is all assuming that you are creating a simple project and does not include any maven support. Based on your question, I am a little unsure exactly what you are looking for.