This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes More on eclipse :) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "More on eclipse :)" Watch "More on eclipse :)" New topic
Author

More on eclipse :)

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Everytime I click on the save button after modifying a *single* file, eclipse saves the file *and* compiles the 2000+ java files remaining
I do not want that, I only want to save it and compile my code using one of my targets in build.xml later on.
One of my targets in build.xml creates an output directory, and all the class files are sent there when compiling. Therefore I do not need any output folder. But if I click on the Properties for my project, I have to have a "Default output folder" .
So, my questions are:
1o) how to let eclipse know that I only want to save my file, without compiling everything?
2o) how to let eclipse know that my ant tasks delete (when cleaning) and create (when compiling) an output folder where all the classes are placed? I do *not* need a "default output folder" !
hope I was clear..
[ October 26, 2003: Message edited by: Andres Gonzalez ]

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
1o) how to let eclipse know that I only want to save my file, without compiling everything?
window -> preferences.
still clueless about 2)
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Andres Gonzalez:
Everytime I click on the save button after modifying a *single* file, eclipse saves the file *and* compiles the 2000+ java files remaining

That's strange - typically the Eclipse compiler is quite good at finding out which files need to be recompiled. For me, I most often don't even notice the time used for compiling. You must have some nasty dependencies between your classes if saving results in a full build...

2o) how to let eclipse know that my ant tasks delete (when cleaning) and create (when compiling) an output folder where all the classes are placed? I do *not* need a "default output folder" !

I don't understand the purpose of this. If you don't use Eclipse for compilation, just ignore the output folder setting.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Ilja : I don't understand the purpose of this. If you don't use Eclipse for compilation, just ignore the output folder setting.
that's the problem. I can't "ignore it". The "default output folder" is mandatory, otherwise you cannot close the window.
My build scripts have the tasks of creating this output folder, placing all the class files there. I do not want eclipse to do it for me.
As far as question 1, the problem is solved. It saves the file without compiling the rest. Compilation is another story coming soon .
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Andres Gonzalez:
Ilja : I don't understand the purpose of this. If you don't use Eclipse for compilation, just ignore the output folder setting.
that's the problem. I can't "ignore it". The "default output folder" is mandatory, otherwise you cannot close the window.

Just put anything in there. If you don't compile, it won't get used.
 
 
subject: More on eclipse :)
 
Threads others viewed
Single jar deployment
Boggled by Eclipse - help!
Eclipse and ANT
How To Run build.xml?
How to get Eclipse working with my bunch of .java and .class files?
IntelliJ Java IDE