Home » Newcomers » Newcomers » display of packages in java perspective
display of packages in java perspective [message #149404] |
Fri, 21 April 2006 10:39  |
Eclipse User |
|
|
|
Originally posted by: markmcallister.hotmail.com
Hi,
In, Eclipse, I have the following package hiearchy:
com.company.dao
com.company.bo
com.company.utils
com.company.utils.html
All the sources are under /root/src (i.e. /root/src/com/company/dao), and
has been added to be on the build path. In the past, I only saw 3 of
packages appear (see below):
com.company.dao
com.company.bo
com.company.utils.html
The other package, com.company.utils, did not appear because it had no
source underneath it. However, my problem is that now it appears and so do
the other directories:
com
com.company
com.company.utils
Why does Eclipse behave like this? Is this a bug or plugin issue? How may I
fix this so that only packages with source appear?
|
|
|
Re: display of packages in java perspective [message #149413 is a reply to message #149404] |
Fri, 21 April 2006 12:17   |
Eclipse User |
|
|
|
Originally posted by: markmcallister.hotmail.com
I found out what the problem was. In my source subdirs, I had hidden SVN
folders (.svn). After I removed the .svn folders, only the packages with
source code appear. However, as you can see, now my code is unversioned. :(
What I tried to do before remove the .svn folder was to exclude them from
the build paths. This approach did not work and had no impact.
The next thing I did was remove project from the workspace, zip up the
project, remove the .svn folders (from all the subdirs, what a pain this
was), add the project back to the workspace, and only the packages with
source code appears. I then closed Eclipse, unzipped all the project files
back (not overwriting anything, and so this means only .svn files were
placed back). Now I have what I want in Eclipse (only packages with source
code appear) and my code is versioned.
This is a strange behaviour of Eclipse. If anyone else has a better
workaround or solution, let me know.
Thanks.
"mark mcallister" <markmcallister@hotmail.com> wrote in message
news:e2aqr7$ugb$1@utils.eclipse.org...
> Hi,
>
> In, Eclipse, I have the following package hiearchy:
>
> com.company.dao
> com.company.bo
> com.company.utils
> com.company.utils.html
>
> All the sources are under /root/src (i.e. /root/src/com/company/dao), and
> has been added to be on the build path. In the past, I only saw 3 of
> packages appear (see below):
>
> com.company.dao
> com.company.bo
> com.company.utils.html
>
> The other package, com.company.utils, did not appear because it had no
> source underneath it. However, my problem is that now it appears and so do
> the other directories:
>
> com
> com.company
> com.company.utils
>
> Why does Eclipse behave like this? Is this a bug or plugin issue? How may
> I fix this so that only packages with source appear?
>
|
|
|
Re: display of packages in java perspective [message #149569 is a reply to message #149413] |
Mon, 24 April 2006 06:11   |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
mark mcallister schreef:
> I found out what the problem was. In my source subdirs, I had hidden SVN
> folders (.svn). After I removed the .svn folders, only the packages with
> source code appear. However, as you can see, now my code is unversioned. :(
>
> What I tried to do before remove the .svn folder was to exclude them from
> the build paths. This approach did not work and had no impact.
>
> The next thing I did was remove project from the workspace, zip up the
> project, remove the .svn folders (from all the subdirs, what a pain this
> was), add the project back to the workspace, and only the packages with
> source code appears. I then closed Eclipse, unzipped all the project files
> back (not overwriting anything, and so this means only .svn files were
> placed back). Now I have what I want in Eclipse (only packages with source
> code appear) and my code is versioned.
>
> This is a strange behaviour of Eclipse. If anyone else has a better
> workaround or solution, let me know.
It seems like somehow, the .svn folders are not any longer marked as
‘derived sources’. There should be a way to mark them thus and have the
compiler ignore them, but I don’t know how.
H.
- --
Hendrik Maryns
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFETKRTe+7xMGD3itQRAjhMAJ4lfvV+tSbK/0Beq7Pws+Zu77jT0QCf b3Hk
ykZkh7ey/A/c83zEjSNX2MM=
=D51C
-----END PGP SIGNATURE-----
|
|
|
Re: display of packages in java perspective [message #150855 is a reply to message #149569] |
Tue, 02 May 2006 16:06  |
Eclipse User |
|
|
|
Originally posted by: markmcallister.hotmail.com
When I installed subclipse AND do a fresh svn checkout, and finally open
up/restart Eclipse, the problem goes away. I think behind the scene,
subclipse may be marking the .svn directories to be ignored or as you stated
"derived sources."
I do not like using subclipse--in the past, it has locked my files and
corrupted my svn repository. Moreover, it has this annyoying UI bug--even if
all sources are committed, the root folder may be showing still as changed.
Excluding from the build path the .svn directories has no effect! I just
can't believe more users are not having this problem.
"Hendrik Maryns" <hendrik_maryns@despammed.com> wrote in message
news:e2i88f$blj$1@utils.eclipse.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> mark mcallister schreef:
>> I found out what the problem was. In my source subdirs, I had hidden SVN
>> folders (.svn). After I removed the .svn folders, only the packages with
>> source code appear. However, as you can see, now my code is unversioned.
>> :(
>>
>> What I tried to do before remove the .svn folder was to exclude them from
>> the build paths. This approach did not work and had no impact.
>>
>> The next thing I did was remove project from the workspace, zip up the
>> project, remove the .svn folders (from all the subdirs, what a pain this
>> was), add the project back to the workspace, and only the packages with
>> source code appears. I then closed Eclipse, unzipped all the project
>> files
>> back (not overwriting anything, and so this means only .svn files were
>> placed back). Now I have what I want in Eclipse (only packages with
>> source
>> code appear) and my code is versioned.
>>
>> This is a strange behaviour of Eclipse. If anyone else has a better
>> workaround or solution, let me know.
>
> It seems like somehow, the .svn folders are not any longer marked as
> 'derived sources'. There should be a way to mark them thus and have the
> compiler ignore them, but I don't know how.
>
> H.
> - --
> Hendrik Maryns
>
> ==================
> http://aouw.org
> Ask smart questions, get good answers:
> http://www.catb.org/~esr/faqs/smart-questions.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFETKRTe+7xMGD3itQRAjhMAJ4lfvV+tSbK/0Beq7Pws+Zu77jT0QCf b3Hk
> ykZkh7ey/A/c83zEjSNX2MM=
> =D51C
> -----END PGP SIGNATURE-----
|
|
|
Goto Forum:
Current Time: Sun Jun 01 10:07:37 EDT 2025
Powered by FUDForum. Page generated in 0.10432 seconds
|