Book a Demo

Author Topic: Java code generation question  (Read 2850 times)

agavrilov

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Java code generation question
« on: December 09, 2004, 02:39:59 pm »
Hi!

 I stumbled upon the way EA generates Java code for packages. Let's say I have one package in EA called com.mycompany.main and one subpackage called com.mycompany.main.sub. By default, EA puts all classes from the main packages into the directory called 'com.mycompany.main' and the subpackage into the directory  with the name 'com.mycompany.main\com.mycompany.main.sub'.
 Is there any easy way to configure EA such way that classes from main packages go to 'com\mycompany\main' and the subpackage goes to 'com\mycompany\main\sub'? I know I can change filenames for each class individually, but it's a pain if we have hundreds classes :(

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Java code generation question
« Reply #1 on: December 09, 2004, 03:40:53 pm »
Try creating the nested packages "com", "mycompany", "main" and "sub".  Also set the package containing your package "com" to be a namespace root. (Right click on it in the project view, select "Package Control" |  "Set as Namespace Root")

Then do a package generate and select "Auto Generate Files" and "Include all Child Packages".  (Make sure all your classes are selected too.)

Simon