File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Classpath" Watch "Eclipse Classpath" New topic
Author

Eclipse Classpath

Guruprasad Kateel
Greenhorn

Joined: Jul 10, 2003
Posts: 16
Hi,
In eclipse, is there a facility to place the compiled classes outside the Project folder?
Thanks in advance,
Guru
Robert McGovern
Author
Greenhorn

Joined: Jul 08, 2003
Posts: 8
In eclipse, is there a facility to place the compiled classes outside the Project folder?
Guru

Yes but its a little awkward.
You need to add a new directory to your project, which is linked to your desired location. Then you edit the project properties and specify the source output location to be the directory created above.
Right Click On Project
Select New -> Folder
Type in a Folder name
Select the Advanced >> button
Check "Link to folder in file system"
Select Browse and navigate to desired location.
Select Finish.
Right Click on Project.
Select Properties.
Select Java Build Path from left hand pane
Select the Source tab
Check the "Allow output folders for source folder" field.
Select "Output Folder: "
Select Edit
Select "Specific output folder (path relative to <project name>)
Select Browse and choose your newly created directory
Select OK
Select OK
Select OK
Thats it.
****WORD OF WARNING****
Don't have anything else in that directory it will get deleted by default! (I got bitten by this the first time)
Your other option would be to use ANT and specify a task to copy it to your desired location.
HTHs
Rob


Co-author of <a href="http://www.manning.com/gallardo" target="_blank" rel="nofollow">Eclipse In Action</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse Classpath