How do I set the package for my generated Java files? [message #1168050] |
Sun, 03 November 2013 03:17 |
Gary Worsham Messages: 176 Registered: September 2013 |
Senior Member |
|
|
I'm guessing that it is a setting in the GenerateSpinCAD.mwe2 file, however I'm pretty reluctant to change things without knowing what I'm doing. I just recovered from a couple days digression based on trying to change the package definition via refactoring in Eclipse. Won't try that again!
I want my generated Java files to be part of this package:
package com.holycityaudio.SpinCAD.CADBlocks;
(which code is inserted into the Java source file).
However they are being generated in the /SpinCADBuilder/src-gen/(default package) package.
What do I need to do?
Thanks,
GW
[Updated on: Sun, 03 November 2013 03:17] Report message to a moderator
|
|
|
|
|
|
Re: How do I set the package for my generated Java files? [message #1168827 is a reply to message #1168821] |
Sun, 03 November 2013 15:55 |
Gary Worsham Messages: 176 Registered: September 2013 |
Senior Member |
|
|
Certainly I am to blame! LOL.
Anyway it is the IGenerator. So I guess what I have to do is determine the path (with slashes) of the desired package and then prepend that to the name of the desired generated file. What I had done previously was to use a "fully qualified name" prefix (with dots) and it simply added that to the file name of each generated file, but still put them in the (default package).
I'll give it a try. Thanks for the hint.
[Update] - got it working. Thanks again.
GW
[Updated on: Sun, 03 November 2013 18:56] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04802 seconds