1
General Board / EA does not properly handle Java packages
« on: March 25, 2004, 10:07:14 am »
I have tried several things to get EA to properly generate Java package "import" statements. The best that I could come up with was to come up with a new View for each package. In that case, "import" statements are properly generated (the View name becomes the package name), but the directory structure is completely messed up.
For example, if I create a View called "com.mycompany.mypackage", the directory called "com.mycompany.mypackage" will be generated under the directory that I specified as the generation directory, and all the generated source files will go there. Obviously, I would like it to expand the package name and create the proper directory structure.
On reverse engineering, package names are completely ignored. All classes that are brought in go into the same place.
All this makes round-trip engineering difficult, if not impossible.
For example, if I create a View called "com.mycompany.mypackage", the directory called "com.mycompany.mypackage" will be generated under the directory that I specified as the generation directory, and all the generated source files will go there. Obviously, I would like it to expand the package name and create the proper directory structure.
On reverse engineering, package names are completely ignored. All classes that are brought in go into the same place.
All this makes round-trip engineering difficult, if not impossible.