Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » classes in output dir getting removed
classes in output dir getting removed [message #167082] Thu, 24 August 2006 14:43 Go to next message
Eclipse UserFriend
Originally posted by: me.somewhere2.com

Eclipse 3.0.2, have output dir defined as C:\something\classes.

I'm using a project that was previously developed by someone using eclipse,
and his \classes dir has some class files and dirs that i need for runtime.

If I copy his \classes folder over mine and run, all's well.

Somewhere along the way, maybe eclipse re-start or project close, the
subdirs in \classes are being removed.

How can I solve this issue? Would like Eclipse to just write to classes but
not remove previously existing dirs. Over-write is fine, but not clean-up.

cheers.

c
Re: classes in output dir getting removed [message #167197 is a reply to message #167082] Thu, 24 August 2006 23:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"c" <me@somewhere2.com> wrote in message
news:eckdvo$9fn$1@utils.eclipse.org...
> Eclipse 3.0.2, have output dir defined as C:\something\classes.
>
> I'm using a project that was previously developed by someone using
> eclipse, and his \classes dir has some class files and dirs that i need
> for runtime.
>
> If I copy his \classes folder over mine and run, all's well.
>
> Somewhere along the way, maybe eclipse re-start or project close, the
> subdirs in \classes are being removed.
>
> How can I solve this issue? Would like Eclipse to just write to classes
> but not remove previously existing dirs. Over-write is fine, but not
> clean-up.

If you have .class resources that are not generated by the build, you should
not keep them in an output folder. Put them in a class folder instead (like
a src folder but for binaries - it's one of the options in the Java Build
Path dialog, and one of the New items you can create for a project).

The output directory *will* get blown away during a full build.
Re: classes in output dir getting removed [message #167700 is a reply to message #167197] Mon, 28 August 2006 08:57 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Walter Harley wrote:

>"c" <me@somewhere2.com> wrote in message
>news:eckdvo$9fn$1@utils.eclipse.org...
>
>
>>Eclipse 3.0.2, have output dir defined as C:\something\classes.
>>
>>I'm using a project that was previously developed by someone using
>>eclipse, and his \classes dir has some class files and dirs that i need
>>for runtime.
>>
>>If I copy his \classes folder over mine and run, all's well.
>>
>>Somewhere along the way, maybe eclipse re-start or project close, the
>>subdirs in \classes are being removed.
>>
>>How can I solve this issue? Would like Eclipse to just write to classes
>>but not remove previously existing dirs. Over-write is fine, but not
>>clean-up.
>>
>>
>
>If you have .class resources that are not generated by the build, you should
>not keep them in an output folder. Put them in a class folder instead (like
>a src folder but for binaries - it's one of the options in the Java Build
>Path dialog, and one of the New items you can create for a project).
>
>The output directory *will* get blown away during a full build.
>
>
This can be prevented (though not recommended) by unchecking "Scrub
output folders ..." on Java > Compiler > Building preference page (see
Output folder section).

Dani

>
>
>
Previous Topic:Computed columns + I18N
Next Topic:Eclipse and accent characters
Goto Forum:
  


Current Time: Mon May 06 19:55:52 GMT 2024

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

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

Back to the top