Skip to content

Incorrectly Ignored User Classes #229

@barreeeiroo

Description

@barreeeiroo

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" />

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions