creating a project in eclipse for an existing project [message #1819] |
Tue, 22 April 2003 21:04 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: pchaudhari.empactcorporation.com
I have been doing my development using Jdeveloper. I want to give Eclipse a
try. I already have a project and now i am trying to 'import' the project
into eclipse. My project is a web application running on tomcat using
struts. So my basic file structure is
/ (Project root folder) - for jsps
/WEB-INF/src - for java source files
/WEB-INF/classes - for java class files
eclipse seems to be able to recognize this structure. but here are some of
my concerns.
1. I have a number of properties files in /web-inf/classes folder and when
i first created the project eclipse tried to recompile my entire project and
in the process deleted the all the contents of the class folder. ofcourse it
did recreate the appropriate folders with the class files but i lost the
properties files. And if i do rebuild of the entire project it removes all
the properties files again. Is there some way to avoid this?
2. What is the best way to compile a single file that i am editing. From
what i read, the only way to compile a single file is by saving it and
having the option to autocompile set.
From the little i have used eclipse it does seem superior to jdeveloper
(atleast the version i was using) and hoping to get acquanted with it
quickly. if anybody has good practice habbits and other 2 cents to keep in
mind for a newbie please let me know.
Thanks
|
|
|
Re: creating a project in eclipse for an existing project [message #2224 is a reply to message #1819] |
Wed, 23 April 2003 07:17 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: arnout.standaert.n-o-s-p-a-m.cit.kuleuven.ac.be
"haiiyaa" <pchaudhari@empactcorporation.com> wrote:
> 1. I have a number of properties files in /web-inf/classes
> folder and when i first created the project eclipse tried to
> recompile my entire project and in the process deleted the all
> the contents of the class folder. ofcourse it did recreate the
> appropriate folders with the class files but i lost the
> properties files. And if i do rebuild of the entire project it
> removes all the properties files again. Is there some way to
> avoid this?
Put the properties files in the src folder. As far as I know
Eclipse sees the output (classes) folder as an exact reflection of
the src folder. So, if your properties files are not in the src
folder, they won't end up in the classes folder either.
> 2. What is the best way to compile a single file
> that i am editing. From what i read, the only way to compile a
> single file is by saving it and having the option to autocompile
> set.
I'm not very clear on that one myself, let's hope someone else
answers this one.
> From the little i have used eclipse it does seem superior to
> jdeveloper (atleast the version i was using) and hoping to get
> acquanted with it quickly. if anybody has good practice habbits
> and other 2 cents to keep in mind for a newbie please let me
> know.
Maybe it's helpful to check out the Eclipse Wiki:
<http://eclipsewiki.swiki.net/1>
Regards,
Wald
|
|
|
Re: creating a project in eclipse for an existing project [message #4566 is a reply to message #2224] |
Thu, 24 April 2003 16:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: pchaudhari.empactcorporation.com
>
> Put the properties files in the src folder. As far as I know
> Eclipse sees the output (classes) folder as an exact reflection of
> the src folder. So, if your properties files are not in the src
> folder, they won't end up in the classes folder either.
>
I tried that. I put the properties files in the src folder and then did the
rebuild project but the files did not copied into the classes folder. And
every time i do a rebuild project, the properties files get wiped out. is
there something that i have to set in the editor?
|
|
|
Re: creating a project in eclipse for an existing project [message #4635 is a reply to message #4566] |
Thu, 24 April 2003 17:39 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Did you tell the compiler (through the Java Build Path) that the classes
folder is to be the output folder and the src folder is the source
folder? If you did that, then properties files under the source folder
should of been copied to the output folder.
As for compiling one file, there is no need for this function. If it
hasn't changed, then with auto build on, you will have the correct class
file in the output folder already. Recompiling would be useless.
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03966 seconds