Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off DataNucleus Enhancer while working with Google App Engine

I am working in Eclipse on a Google AppEngine Java code. Every time I save a java file, the DataNucleus Enchancer starts off "Enhancement of Classes". Its quite irritating since it takes away focus when you are in full screen mode. Anybody knows how I can turn it off?

If I turn it off, will it affect my ability to deploy my application to App Engine from within Eclipse?

like image 611
Shreeni Avatar asked Jun 18 '09 23:06

Shreeni


2 Answers

You can restrict which classes DataNucleus watches for changes so that it only re-runs the enhancement when your model classes actually change.

Go to the Project's properties, and select Google->App Engine->Orm. There you can specify patterns for the files to watch.

For example, I put all my model beans in a model/ subdirectory, so a pattern of src/**/model works for me. There are also example patterns under the 'Add' dialogue.

like image 66
Kris Jenkins Avatar answered Oct 18 '22 18:10

Kris Jenkins


The Enhancer is setup as a Builder in your project properties. I suspect you could safely disable it while you are editing, and then when you want to run it you would have to re-enable and build again to ensure that any changes you made to persistent classes are reflected correctly before you try to run or test your application locally. Then, you could upload to app engine.

like image 28
digitaljoel Avatar answered Oct 18 '22 19:10

digitaljoel