开发者

Classpath issue in play framework

I sometimes move my source files from one package to another during refactoring. After I move them, Eclipse with play plugin cannot find the classes. I have to manually fix each and every import statement, instead of letting eclipse take care of it for me. For a large project, this takes a lot of time.

Also, 开发者_StackOverflow中文版each time I add a jar file to /lib Eclipse cannot find it even though it is added to the classpath.

The only solution I found is to delete the whole project, exit eclipse, "re-eclipsify" the play project, restart eclipse and reimport the project. After that it works again until I need to move some files around or add jars.

Is there a way to fix this classpath issue in Eclipse with Play? Regularly going through this whole re-eclipsification process is not very convenient.

Edit: also have the same problem with constant variables. Eclipse or play caches them and it's impossible to change them unless a whole re-eclipsification takes places.


You can always add jars manually to the eclipse-projekt. You don't need to use play eclipsify.

If you move classes with the refactor functionality from eclipse, eclipse adjust all Java-Sources. In routes.conf and in the views it's a manual job, except you let eclipse search for text in this files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜