Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse directory problem
Eclipse directory problem [message #168636] Thu, 31 August 2006 08:44 Go to next message
Eclipse UserFriend
I'm having a problem getting eclipse set up to my new environment. They
have been using ant build files and have all of their source files in src/
and their tests in test/. When I check these out from source control to
create a new java project, it won't recognize the package names because
eclipse thinks the package name should be src.com.acs... instead of
com.acs...

Is there a way I can convince harvest to use the package specified instead
of creating its own from the directory structure?

Thanks.
Re: Eclipse directory problem [message #168668 is a reply to message #168636] Thu, 31 August 2006 10:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Thom Hehl wrote:

> I'm having a problem getting eclipse set up to my new environment. They
> have been using ant build files and have all of their source files in src/
> and their tests in test/. When I check these out from source control to
> create a new java project, it won't recognize the package names because
> eclipse thinks the package name should be src.com.acs... instead of
> com.acs...

> Is there a way I can convince harvest to use the package specified instead
> of creating its own from the directory structure?

> Thanks.

On the Java Build Path properties page, go to the Source tab. Click on
Add Folder. The resulting dialog should show the src and test folders.
Check each one and hit OK.

You may also want/need to change the default output folder.
Re: Eclipse directory problem [message #168703 is a reply to message #168668] Thu, 31 August 2006 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.home.com

"Dave Wegener" <wegener@cboenospam.com> wrote in message
news:8b865d13816cb2f455c642ac69e3c1ab$1@www.eclipse.org...
> Thom Hehl wrote:
>
>> I'm having a problem getting eclipse set up to my new environment. They
>> have been using ant build files and have all of their source files in
>> src/ and their tests in test/. When I check these out from source control
>> to create a new java project, it won't recognize the package names
>> because eclipse thinks the package name should be src.com.acs... instead
>> of com.acs...
>
>> Is there a way I can convince harvest to use the package specified
>> instead of creating its own from the directory structure?
>
>> Thanks.
>
> On the Java Build Path properties page, go to the Source tab. Click on
> Add Folder. The resulting dialog should show the src and test folders.
> Check each one and hit OK.
>
> You may also want/need to change the default output folder.

I also use the src/ for all source, build/ for compiler output and test/ for
all tests but I see nothing that refers to "Test" folders/directories, only
"Source" in this tab. When I click on Add Folder all I get is a window
which allows me to select a source folder, not a test folder. Does Eclipse
treat them the same? Is my project missing something wrt to JUnit?

Thanks,

Wes
Re: Eclipse directory problem [message #168898 is a reply to message #168703] Thu, 31 August 2006 17:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Wes Harrison wrote:

> "Dave Wegener" <wegener@cboenospam.com> wrote in message
> news:8b865d13816cb2f455c642ac69e3c1ab$1@www.eclipse.org...
>> Thom Hehl wrote:
>>
>>> I'm having a problem getting eclipse set up to my new environment. They
>>> have been using ant build files and have all of their source files in
>>> src/ and their tests in test/. When I check these out from source control
>>> to create a new java project, it won't recognize the package names
>>> because eclipse thinks the package name should be src.com.acs... instead
>>> of com.acs...
>>
>>> Is there a way I can convince harvest to use the package specified
>>> instead of creating its own from the directory structure?
>>
>>> Thanks.
>>
>> On the Java Build Path properties page, go to the Source tab. Click on
>> Add Folder. The resulting dialog should show the src and test folders.
>> Check each one and hit OK.
>>
>> You may also want/need to change the default output folder.

> I also use the src/ for all source, build/ for compiler output and test/ for
> all tests but I see nothing that refers to "Test" folders/directories, only
> "Source" in this tab. When I click on Add Folder all I get is a window
> which allows me to select a source folder, not a test folder. Does Eclipse
> treat them the same? Is my project missing something wrt to JUnit?

> Thanks,

> Wes

The Source tab refers to all directories that contain Java source code
that needs to be compiled. Since JUnit tests are Java source that must be
compiled before they can be run, they need to be defined on the Source tab.
Re: Eclipse directory problem [message #168904 is a reply to message #168898] Thu, 31 August 2006 23:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.home.com

"Dave Wegener" <wegener@cboenospam.com> wrote in message
news:9bbeb2c3fa022752aeba3207a707d2b2$1@www.eclipse.org...
> Wes Harrison wrote:
>
>> "Dave Wegener" <wegener@cboenospam.com> wrote in message
>> news:8b865d13816cb2f455c642ac69e3c1ab$1@www.eclipse.org...
>>> Thom Hehl wrote:
>>>
>>>> I'm having a problem getting eclipse set up to my new environment. They
>>>> have been using ant build files and have all of their source files in
>>>> src/ and their tests in test/. When I check these out from source
>>>> control to create a new java project, it won't recognize the package
>>>> names because eclipse thinks the package name should be src.com.acs...
>>>> instead of com.acs...
>>>
>>>> Is there a way I can convince harvest to use the package specified
>>>> instead of creating its own from the directory structure?
>>>
>>>> Thanks.
>>>
>>> On the Java Build Path properties page, go to the Source tab. Click on
>>> Add Folder. The resulting dialog should show the src and test folders.
>>> Check each one and hit OK.
>>>
>>> You may also want/need to change the default output folder.
>
>> I also use the src/ for all source, build/ for compiler output and test/
>> for all tests but I see nothing that refers to "Test"
>> folders/directories, only "Source" in this tab. When I click on Add
>> Folder all I get is a window which allows me to select a source folder,
>> not a test folder. Does Eclipse treat them the same? Is my project
>> missing something wrt to JUnit?
>
>> Thanks,
>
>> Wes
>
> The Source tab refers to all directories that contain Java source code
> that needs to be compiled. Since JUnit tests are Java source that must be
> compiled before they can be run, they need to be defined on the Source
> tab.

But this only allows for a test/ directory _under_ src/. I want to have
test/ at the same level as src/ and build/. Is this something that just
can't be done with Eclipse?

Thanks,

Wes
Re: Eclipse directory problem [message #168952 is a reply to message #168904] Fri, 01 September 2006 10:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Wes Harrison wrote:

> "Dave Wegener" <wegener@cboenospam.com> wrote in message
> news:9bbeb2c3fa022752aeba3207a707d2b2$1@www.eclipse.org...
>> Wes Harrison wrote:
>>
>>> "Dave Wegener" <wegener@cboenospam.com> wrote in message
>>> news:8b865d13816cb2f455c642ac69e3c1ab$1@www.eclipse.org...
>>>> Thom Hehl wrote:
>>>>
>>>>> I'm having a problem getting eclipse set up to my new environment. They
>>>>> have been using ant build files and have all of their source files in
>>>>> src/ and their tests in test/. When I check these out from source
>>>>> control to create a new java project, it won't recognize the package
>>>>> names because eclipse thinks the package name should be src.com.acs...
>>>>> instead of com.acs...
>>>>
>>>>> Is there a way I can convince harvest to use the package specified
>>>>> instead of creating its own from the directory structure?
>>>>
>>>>> Thanks.
>>>>
>>>> On the Java Build Path properties page, go to the Source tab. Click on
>>>> Add Folder. The resulting dialog should show the src and test folders.
>>>> Check each one and hit OK.
>>>>
>>>> You may also want/need to change the default output folder.
>>
>>> I also use the src/ for all source, build/ for compiler output and test/
>>> for all tests but I see nothing that refers to "Test"
>>> folders/directories, only "Source" in this tab. When I click on Add
>>> Folder all I get is a window which allows me to select a source folder,
>>> not a test folder. Does Eclipse treat them the same? Is my project
>>> missing something wrt to JUnit?
>>
>>> Thanks,
>>
>>> Wes
>>
>> The Source tab refers to all directories that contain Java source code
>> that needs to be compiled. Since JUnit tests are Java source that must be
>> compiled before they can be run, they need to be defined on the Source
>> tab.

> But this only allows for a test/ directory _under_ src/. I want to have
> test/ at the same level as src/ and build/. Is this something that just
> can't be done with Eclipse?

> Thanks,

> Wes

Your description indicates a project layout as follows:
project_root/
src/
test/
build/

In this case, both src/ and test/ should be added as source folders on the
Source tab. Click on Add folder and check both of them in the dialog. At
the bottom of the Source tab, enter build/ as the output folder.
Re: Eclipse directory problem [message #169173 is a reply to message #168952] Sun, 03 September 2006 23:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Dave Wegener wrote:
> Wes Harrison wrote:
>>> The Source tab refers to all directories that contain Java source
>>> code that needs to be compiled. Since JUnit tests are Java source
>>> that must be compiled before they can be run, they need to be defined
>>> on the Source tab.
>
>> But this only allows for a test/ directory _under_ src/. I want to
>> have test/ at the same level as src/ and build/. Is this something
>> that just can't be done with Eclipse?
>
>> Thanks,
>
>> Wes
>
> Your description indicates a project layout as follows:
> project_root/
> src/
> test/
> build/
>
> In this case, both src/ and test/ should be added as source folders on
> the Source tab. Click on Add folder and check both of them in the
> dialog. At the bottom of the Source tab, enter build/ as the output
> folder.

In addition to Dave's patient help, I will strongly suggest opening the
Eclipse Help Contents and going through all the Getting Started
sections, especially under Java Development User Guide and Workbench
User Guide. The tutorials there will help you a great deal and would
have avoided the need for this entire thread.

Hope this helps,
Eric
Re: Eclipse directory problem [message #169236 is a reply to message #169173] Mon, 04 September 2006 07:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.home.com

"Eric Rizzo" <eclipse4@rizzoweb.com> wrote in message
news:edg7r9$s0k$2@utils.eclipse.org...
> Dave Wegener wrote:
>> Wes Harrison wrote:
>>>> The Source tab refers to all directories that contain Java source code
>>>> that needs to be compiled. Since JUnit tests are Java source that must
>>>> be compiled before they can be run, they need to be defined on the
>>>> Source tab.
>>
>>> But this only allows for a test/ directory _under_ src/. I want to have
>>> test/ at the same level as src/ and build/. Is this something that just
>>> can't be done with Eclipse?
>>
>>> Thanks,
>>
>>> Wes
>>
>> Your description indicates a project layout as follows:
>> project_root/
>> src/
>> test/
>> build/
>>
>> In this case, both src/ and test/ should be added as source folders on
>> the Source tab. Click on Add folder and check both of them in the
>> dialog. At the bottom of the Source tab, enter build/ as the output
>> folder.
>
> In addition to Dave's patient help, I will strongly suggest opening the
> Eclipse Help Contents and going through all the Getting Started sections,
> especially under Java Development User Guide and Workbench User Guide. The
> tutorials there will help you a great deal and would have avoided the need
> for this entire thread.
>
> Hope this helps,

No, it didn't. May I politely suggest you keep your RTFMs to yourself? The
problem I was having was caused by creating the project root directory in
the source directory so every created folder would appear under src/. I
have read all the relevant tutorials and documentation and simply made a
mistake. You may not be familiar with mistakes as you clearly don't make
them. May I also further suggest that if reading a thread where someone who
has just picked up a new product makes a mistake is so irritating then
perhaps you should avoid usenet altogether because it is actualy quite a
common thing.

Wes
Re: Eclipse directory problem [message #169310 is a reply to message #169236] Mon, 04 September 2006 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Wes Harrison wrote:
> "Eric Rizzo" <eclipse4@rizzoweb.com> wrote in message
> news:edg7r9$s0k$2@utils.eclipse.org...
>> Dave Wegener wrote:
>>> Wes Harrison wrote:
>>>>> The Source tab refers to all directories that contain Java source code
>>>>> that needs to be compiled. Since JUnit tests are Java source that must
>>>>> be compiled before they can be run, they need to be defined on the
>>>>> Source tab.
>>>> But this only allows for a test/ directory _under_ src/. I want to have
>>>> test/ at the same level as src/ and build/. Is this something that just
>>>> can't be done with Eclipse?
>>>> Thanks,
>>>> Wes
>>> Your description indicates a project layout as follows:
>>> project_root/
>>> src/
>>> test/
>>> build/
>>>
>>> In this case, both src/ and test/ should be added as source folders on
>>> the Source tab. Click on Add folder and check both of them in the
>>> dialog. At the bottom of the Source tab, enter build/ as the output
>>> folder.
>> In addition to Dave's patient help, I will strongly suggest opening the
>> Eclipse Help Contents and going through all the Getting Started sections,
>> especially under Java Development User Guide and Workbench User Guide. The
>> tutorials there will help you a great deal and would have avoided the need
>> for this entire thread.
>>
>> Hope this helps,
>
> No, it didn't. May I politely suggest you keep your RTFMs to yourself? The
> problem I was having was caused by creating the project root directory in
> the source directory so every created folder would appear under src/. I
> have read all the relevant tutorials and documentation and simply made a
> mistake. You may not be familiar with mistakes as you clearly don't make
> them. May I also further suggest that if reading a thread where someone who
> has just picked up a new product makes a mistake is so irritating then
> perhaps you should avoid usenet altogether because it is actualy quite a
> common thing.
>
> Wes
>
>

I just want to confirm that have resolved your issue by changing the
project root directory. If so, does this work for your needs?
Re: Eclipse directory problem [message #169342 is a reply to message #169310] Mon, 04 September 2006 18:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.home.com

"David Wegener" <wegener@cboenospam.com> wrote in message
news:edhtrb$l88$1@utils.eclipse.org...
> Wes Harrison wrote:
>> "Eric Rizzo" <eclipse4@rizzoweb.com> wrote in message
>> news:edg7r9$s0k$2@utils.eclipse.org...
>>> Dave Wegener wrote:
>>>> Wes Harrison wrote:
>>>>>> The Source tab refers to all directories that contain Java source
>>>>>> code that needs to be compiled. Since JUnit tests are Java source
>>>>>> that must be compiled before they can be run, they need to be defined
>>>>>> on the Source tab.
>>>>> But this only allows for a test/ directory _under_ src/. I want to
>>>>> have test/ at the same level as src/ and build/. Is this something
>>>>> that just can't be done with Eclipse?
>>>>> Thanks,
>>>>> Wes
>>>> Your description indicates a project layout as follows:
>>>> project_root/
>>>> src/
>>>> test/
>>>> build/
>>>>
>>>> In this case, both src/ and test/ should be added as source folders on
>>>> the Source tab. Click on Add folder and check both of them in the
>>>> dialog. At the bottom of the Source tab, enter build/ as the output
>>>> folder.
>>> In addition to Dave's patient help, I will strongly suggest opening the
>>> Eclipse Help Contents and going through all the Getting Started
>>> sections, especially under Java Development User Guide and Workbench
>>> User Guide. The tutorials there will help you a great deal and would
>>> have avoided the need for this entire thread.
>>>
>>> Hope this helps,
>>
>> No, it didn't. May I politely suggest you keep your RTFMs to yourself?
>> The problem I was having was caused by creating the project root
>> directory in the source directory so every created folder would appear
>> under src/. I have read all the relevant tutorials and documentation and
>> simply made a mistake. You may not be familiar with mistakes as you
>> clearly don't make them. May I also further suggest that if reading a
>> thread where someone who has just picked up a new product makes a mistake
>> is so irritating then perhaps you should avoid usenet altogether because
>> it is actualy quite a common thing.
>>
>> Wes
>
> I just want to confirm that have resolved your issue by changing the
> project root directory. If so, does this work for your needs?

Yes, it's working now that I have recreated the project with the correct
root directory. Thanks for your help.

Wes
Re: Eclipse directory problem [message #169386 is a reply to message #169236] Tue, 05 September 2006 00:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Wes Harrison wrote:
> "Eric Rizzo" <eclipse4@rizzoweb.com> wrote in message
>> In addition to Dave's patient help, I will strongly suggest opening the
>> Eclipse Help Contents and going through all the Getting Started sections,
>> especially under Java Development User Guide and Workbench User Guide. The
>> tutorials there will help you a great deal and would have avoided the need
>> for this entire thread.
>>
>> Hope this helps,
>
> No, it didn't. May I politely suggest you keep your RTFMs to yourself? The
> problem I was having was caused by creating the project root directory in
> the source directory so every created folder would appear under src/. I
> have read all the relevant tutorials and documentation and simply made a
> mistake. You may not be familiar with mistakes as you clearly don't make
> them. May I also further suggest that if reading a thread where someone who
> has just picked up a new product makes a mistake is so irritating then
> perhaps you should avoid usenet altogether because it is actualy quite a
> common thing.

Hey newbie, check the bad attitude at the door. Eclipse newsgroups are a
friendly place and don't need that kind of crap.
I don't see where in my message there was any insulting material, so
I'll kindly ask you to read it again to make sure it was not
misinterpreted. In particular, at no point did I say anyone was
irritated by your question or that I don't make mistakes. I, in fact,
have a lengthy Usenet history that can be verified by anyone and Google,
so your comments are particularly insulting.

My reputation around here certainly excuses me from having to justify a
friendly reminder about the tutorials - it is something I point out to
many newbies every week, and I always do so with a gentle touch after
practical advice or help has been provided.
It is too bad you misinterpreted my message, because I always like to
help people and exchange knowledge - a relationship you and I are
unlikely to enjoy now that you've hurled insults and blatant ingratitude.

Eric
Re: Eclipse directory problem [message #169510 is a reply to message #169386] Tue, 05 September 2006 08:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.home.com

"Eric Rizzo" <eclipse4@rizzoweb.com> wrote in message
news:edit7i$cnu$1@utils.eclipse.org...
> Wes Harrison wrote:
>> "Eric Rizzo" <eclipse4@rizzoweb.com> wrote in message
>>> In addition to Dave's patient help, I will strongly suggest opening the
>>> Eclipse Help Contents and going through all the Getting Started
>>> sections, especially under Java Development User Guide and Workbench
>>> User Guide. The tutorials there will help you a great deal and would
>>> have avoided the need for this entire thread.
>>>
>>> Hope this helps,
>>
>> No, it didn't. May I politely suggest you keep your RTFMs to yourself?
>> The problem I was having was caused by creating the project root
>> directory in the source directory so every created folder would appear
>> under src/. I have read all the relevant tutorials and documentation and
>> simply made a mistake. You may not be familiar with mistakes as you
>> clearly don't make them. May I also further suggest that if reading a
>> thread where someone who has just picked up a new product makes a mistake
>> is so irritating then perhaps you should avoid usenet altogether because
>> it is actualy quite a common thing.
>
> Hey newbie, check the bad attitude at the door. Eclipse newsgroups are a
> friendly place and don't need that kind of crap.
> I don't see where in my message there was any insulting material, so I'll
> kindly ask you to read it again to make sure it was not misinterpreted. In
> particular, at no point did I say anyone was irritated by your question or
> that I don't make mistakes. I, in fact, have a lengthy Usenet history that
> can be verified by anyone and Google, so your comments are particularly
> insulting.
>
> My reputation around here certainly excuses me from having to justify a
> friendly reminder about the tutorials - it is something I point out to
> many newbies every week, and I always do so with a gentle touch after
> practical advice or help has been provided.
> It is too bad you misinterpreted my message, because I always like to help
> people and exchange knowledge - a relationship you and I are unlikely to
> enjoy now that you've hurled insults and blatant ingratitude.

I have just come from a NetBeans support environment where I have never been
told that it requires patience to help me or that a thread should never have
been started had I RTFM. I was merely pointing out that newbies exist with
every product and if it is so painful for you to read my posts then perhaps
you are looking in the wrong newsgroup.

Wes
Re: Eclipse directory problem [message #169576 is a reply to message #169510] Tue, 05 September 2006 10:45 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Wes Harrison wrote:
> "Eric Rizzo" <eclipse4@rizzoweb.com> wrote in message
> news:edit7i$cnu$1@utils.eclipse.org...
>> Wes Harrison wrote:
>>> "Eric Rizzo" <eclipse4@rizzoweb.com> wrote in message
>>>> In addition to Dave's patient help, I will strongly suggest opening the
>>>> Eclipse Help Contents and going through all the Getting Started
>>>> sections, especially under Java Development User Guide and Workbench
>>>> User Guide. The tutorials there will help you a great deal and would
>>>> have avoided the need for this entire thread.

[snip]

>
> I have just come from a NetBeans support environment where I have never been
> told that it requires patience to help me or that a thread should never have
> been started had I RTFM. I was merely pointing out that newbies exist with
> every product and if it is so painful for you to read my posts then perhaps
> you are looking in the wrong newsgroup.
>
> Wes

Please stop putting words in my mouth.
Previous Topic:workspace: how to migrate from default location in Windows?
Next Topic:How to check whether an eclipse application is already running or not?
Goto Forum:
  


Current Time: Sun May 11 17:29:14 EDT 2025

Powered by FUDForum. Page generated in 0.10237 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top