Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » "allow output folders for source folders" won't stay checked
"allow output folders for source folders" won't stay checked [message #720432] Tue, 30 August 2011 15:21 Go to next message
Nina  is currently offline Nina Friend
Messages: 6
Registered: August 2011
Junior Member
I recently had to reinstall eclipse on a new pc and have been trying to set up my project for over a week. I have run into many problems. Just when I finally thought I had everything figured out, now the "allow output folders for source folders" will not stay checked in the build properties. This was the only way I could get my errors to go away since I am declaring variables in outside classes. I finally had my project building error free after discovering this checkbox. But then I realized my project had to be a "dynamic web project" in order to set up tomcat. So I started a new project from SVN using the dynamic web project option. Now this checkbox will not stay checked and I get all these 'cannot be resolved to a variable' errors. I check the box and hit 'ok' nothing happens (normally the errors would immediately be fixed) and I go to the project properties again and the box has unchecked itself. No matter what I do it will not stay checked. Is there a way to fix this?
Re: "allow output folders for source folders" won't stay checked [message #720811 is a reply to message #720432] Wed, 31 August 2011 09:18 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 30.08.2011 17:21, Nina wrote:
> I recently had to reinstall eclipse on a new pc and have been trying
> to set up my project for over a week. I have run into many problems.
> Just when I finally thought I had everything figured out, now the
> "allow output folders for source folders" will not stay checked in the
> build properties. This was the only way I could get my errors to go
> away since I am declaring variables in outside classes. I finally had
> my project building error free after discovering this checkbox. But
> then I realized my project had to be a "dynamic web project" in order
> to set up tomcat. So I started a new project from SVN using the
> dynamic web project option. Now this checkbox will not stay checked
> and I get all these 'cannot be resolved to a variable' errors. I check
> the box and hit 'ok' nothing happens (normally the errors would
> immediately be fixed) and I go to the project properties again and the
> box has unchecked itself. No matter what I do it will not stay
> checked. Is there a way to fix this?
I can't comment on the dynamic web project, but for a Java project the
checkbox remains checked, but only if there are indeed some output
folders configured i.e. if you just check that option but you don't
explicitly configure a non-default output folder, then it won't store
the setting. Please file a bug report if that's not the case for you.

Dani
Re: "allow output folders for source folders" won't stay checked [message #720924 is a reply to message #720811] Wed, 31 August 2011 13:50 Go to previous messageGo to next message
Nina  is currently offline Nina Friend
Messages: 6
Registered: August 2011
Junior Member
I did find a bug report for it: Bug 226912. But there has been no resolution that I can see. I have WEB-INF\classes declared in the "Default output folder" below the checkbox. In the .project file, this folder is of kind "output". Is there something else I need to do? I need my source files to see this classes folder when it builds.
Re: "allow output folders for source folders" won't stay checked [message #720970 is a reply to message #720924] Wed, 31 August 2011 15:23 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 31.08.2011 15:50, Nina wrote:
> I did find a bug report for it: Bug 226912. But there has been no
> resolution that I can see.
Because the current behavior shouldn't cause any harm.

> I have WEB-INF\classes declared in the "Default output folder" below
> the checkbox. In the .project file, this folder is of kind "output".
> Is there something else I need to do? I need my source files to see
> this classes folder when it builds.
Does the behavior cause any harm to you except for that fact that it
deselects itself? If so, please file a bug report with steps to
reproduce the problem.

Dani
Re: "allow output folders for source folders" won't stay checked [message #721022 is a reply to message #720970] Wed, 31 August 2011 17:54 Go to previous messageGo to next message
Nina  is currently offline Nina Friend
Messages: 6
Registered: August 2011
Junior Member
Well the harm is that I can't build my project because it's not able to reference the classes where the variable is declared.

You can reproduce the checkbox behavior by starting a new dynamic web project and using all the default values provided. Then go to properties, check the box, and it won't be checked when you open it up again.
Re: "allow output folders for source folders" won't stay checked [message #721223 is a reply to message #721022] Thu, 01 September 2011 08:15 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 31.08.2011 19:54, Nina wrote:
> Well the harm is that I can't build my project because it's not able
> to reference the classes where the variable is declared.
>
> You can reproduce the checkbox behavior by starting a new dynamic web
> project and using all the default values provided. Then go to
> properties, check the box, and it won't be checked when you open it up
> again.
So, to me it looks it did not work before you went to that dialog and
also afterwards. This indicates that you need to configure it a bit more.

Dani
Re: "allow output folders for source folders" won't stay checked [message #1009244 is a reply to message #720432] Thu, 14 February 2013 18:43 Go to previous messageGo to next message
valentin Mising name is currently offline valentin Mising nameFriend
Messages: 38
Registered: December 2011
Member
Hi, I have realized how to fix it. We are normal people and think that "compile into src dir" means that output will go into a corresponding src dir. Eclipse is different. When you say it "compile" it creates anouther option, called "tell me your target directory". So, "allow output folders for source folders" just shows you "Output folder: (locaion)" option. Since location is (default) by default, and you do not change the location, the option is hidden next time you open the dialog. So, once you ticked the "allow output folders for source folders", you do not mention the new target location options. Yet, you must specify em in the source folders that you do not want to go to bin.

The checkbox "compile into source" is actually misleading rather than useful. It is a bug to have it. Why to hide the target location option at all?

[Updated on: Thu, 14 February 2013 19:12]

Report message to a moderator

Re: "allow output folders for source folders" won't stay checked [message #1009420 is a reply to message #1009244] Fri, 15 February 2013 05:35 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Valentin,

Your post doesn't have a question in it and provides no additional
information to help anyone track down a problem.

On 14/02/2013 7:43 PM, valentin Mising name wrote:
> Having the same problem here


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Eclipse build path allow output folders for source folders checkbox strange behaviour
Next Topic:hi can you help me in spinner
Goto Forum:
  


Current Time: Wed Sep 25 18:53:51 GMT 2024

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

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

Back to the top