-
Notifications
You must be signed in to change notification settings - Fork 13
Description
This is probably kind of a niche issue... I was trying to integrate Ebean Agent using Ant into the App Inventor project, and found a very interesting bug...
Ebean Agent currently ignores "smartly" many package names known to be utilities through the https://github.com/ebean-orm/ebean-agent/blob/master/ebean-agent/src/main/java/io/ebean/enhance/common/IgnoreClassHelper.java file.
However, App Inventor uses the com.google.appinventor.* package as the user defined root package.
This causes Ebean Agent to not recognize nor enhance any of the classes there, despite explicitly told to. After moving only the entity classes to a different package out of com.google.*, it works fine.
Would it be possible to not ignore the classes, if they are explicitly passed as package filter?
<taskdef
name="ebeanEnhance"
classname="io.ebean.enhance.ant.AntEnhanceTask"
classpath="${lib.dir}/postgres/ebean-agent-16.1.1.jar"/>
<ebeanEnhance
classSource="${AiServerLib-class.dir}/"
packages="com/google/appinventor/server/storage/database/postgres/**" <!-- This should take prio over the ignored com.google -->
transformArgs="debug=10" />