-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Let's say that we have 3 .list files named Globals.list, Inplaces.list, and InplacesToFunctions.list (this is my use case). Inplaces.list uses some of the functions in Globals.list, and imports it using a relative path (in my case, both of these files are in the same package, but this doesn't really matter).
Our third file, InplacesToFunctions.list, is in a different package. It wants to use some of the functions in both Inplaces.list and Globals.list; it would naturally make sense to import only Inplaces.list and then get all of the functions in both. However, generate-groovy cannot find Globals.list, since it takes the relative path given in Inplaces.list and appends it to the absolute path of InplacesToFunctions.list. This is wrong, and this scheme only works if all three .list files are in the same package.
generate-groovy instead needs to append the relative path given in Inplaces.list and append it to the absolute path of Inplaces.list when determining the imports for InplacesToFunctions.java.