Please report new issues athttps://github.com/DOCGroup
Dear TAO developer, The idl file: $ACE_ROOT/TAO/orbsvcs/orbsvcs/NotifyExt.idl has empty pragma prefix. We want to generate from this IDL files also code for Java, so we woud like to have this prefix non empty. So We are kindly ask if you can cahnge the pragma prefix of NotifyExt.idl from empty to something more meaningful. (com.oomworks ?) Thank you Bogdan
what about just making it #pragma prefix "tao"
Fine for me just that we do not have flat packages in Java. Here are some more suggestion: - if the extension was made by some people a s NotifyMonitoringExt.idl and NotificationServiceMC.idl than "sandia.gov" can be used. - "corba.tao".
Are you sure you are asking for the right thing here ? If I remember the Java mapping correctly, the pragma prefix value does not effect the package that generated code is to be placed in. It only effects the generated repository IDs. If you want to control what package your code is generated in you can either put it in a particular nested module scope or, more usually, use an IDL compiler flag to tell the IDL compiler to generate into a particular package.
You are right ther is nothing about pragma prefix and pacakgin in IDL2Java mapping. However, in out project we add functionality (an option) that idl2java compiler generates package according to value of pragma prefix. So if you can change the pragma prefix from empty to something more meaningful like corba.tao ro similar would be good, otherwise we can use other options of the compiler to put generated code in right packages.