package name does not match directory name problem during importing [message #55114] |
Thu, 12 June 2003 00:15  |
Eclipse User |
|
|
|
Hi, some of the classes I'm importing are in a directory "generated" because
they are automatically generated. However, the package name of these classes
does not begine with "generated". However, JDT will report all of them as
error. "Delcared package does not match the expected package name
generated.blah blah".
Anyone has any clue how to turn this thing off? Thanks.
Charles
|
|
|
|
|
Re: package name does not match directory name problem during importing [message #55410 is a reply to message #55357] |
Thu, 12 June 2003 11:17  |
Eclipse User |
|
|
|
Hi, Rich,Chris, thanks for helping. I tried both methods and both failed.
The reason is the directory arrangment of the classes do not follow its
directory structure at all. And I am working with very large legacy code
base. They have a very good reason why they can't arrage the directory
hierarchy the same as the package hierarchy.
Any other tips?
Should this be an Eclipse JDT bug? As far as I could understand, Eclipse
should NOT take the directory name and assume it is the same as the package
name.
Thanks again.
Charles
"Richard L. Kulp" <richkulp@NOSPAM.us.ibm.com> wrote in message
news:bca424$61l$1@rogue.oti.com...
> When you import, on the import page, have in "From Directory" the
> "generated" directory, BUT DON'T check the "generated" directory in the
> tree that appears below. Instead check the children directories (and any
> files on the left hand panel that you also want from "generated"). AND
> at the bottom check the "Create Selected Folders Only" radio button.
>
> By doing this it imports only the subdirectories and direct children of
> generated without also creating the generated folder.
>
> Rich
>
|
|
|
Powered by
FUDForum. Page generated in 0.04729 seconds