Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Generate class files into another directory
Generate class files into another directory [message #150171] Fri, 28 April 2006 15:38 Go to next message
Eclipse UserFriend
Originally posted by: lochuanjiang.gmail.com

Hi all,

How can i ask eclipse to generate the class files into another directory?
Say build/classes/....

Another question: How can i make all *.xml files open by the Ant Editor.
I've tried drop down menu, windows -> peferences -> general -> editors ->
file association

i've added in the *.xml and there are 2 entries
Text Editor (default)..
Ant Editor (locked by..)

Appreciate any help.
Re: Generate class files into another directory [message #150176 is a reply to message #150171] Fri, 28 April 2006 15:46 Go to previous messageGo to next message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
See the project properties dialog Java Build Path > Source > 'Default output
folder:' field for the first one.

> Hi all,
>
> How can i ask eclipse to generate the class files into another
> directory? Say build/classes/....
>
> Another question: How can i make all *.xml files open by the Ant
> Editor. I've tried drop down menu, windows -> peferences -> general ->
> editors -> file association
>
> i've added in the *.xml and there are 2 entries
> Text Editor (default)..
> Ant Editor (locked by..)
> Appreciate any help.
>
Re: Generate class files into another directory [message #150196 is a reply to message #150171] Fri, 28 April 2006 16:03 Go to previous messageGo to next message
Guillermo Federico is currently offline Guillermo FedericoFriend
Messages: 21
Registered: July 2009
Junior Member
1) Changing the default output folder location is very straight forward.
Go to Window->Preferences... In the Preferences page Go to
Java->BuildPath. In the Build Path page check the Folders radio button
and then simply set the Output folder name to the new location (e.g.
build/classes).

2) Changing the editor a file is associated with is also straight forward.
Go to Window->Preferences... In the Preferences page Go to
General->Editors->File Associations. Then in the File Types area Add...
*.xml. The list of Associated editors list you should see Ant Editor set
this as the Default.
Note: This should answer your question. However, unless all of your XML
files are actually ant build files or fragments then you might want to
install an XML editor plugin such as XML Spy.
Re: Generate class files into another directory [message #150262 is a reply to message #150196] Sat, 29 April 2006 05:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lochuanjiang.gmail.com

Im still can't get Ant Editor to open all *.xml files.

This is the window I'm currently facing.

http://img53.imageshack.us/img53/1768/clipboard7vv.jpg

Thanks for any help
Re: Generate class files into another directory [message #150296 is a reply to message #150262] Sat, 29 April 2006 13:40 Go to previous message
Guillermo Federico is currently offline Guillermo FedericoFriend
Messages: 21
Registered: July 2009
Junior Member
It looks like you did not set the Ant Editor as your default. In the File
Associations page select the Ant Editor and use the "Default" button to
set it as the default editor.
Previous Topic:Could not launch the configuration. why?
Next Topic:Report Object Model
Goto Forum:
  


Current Time: Thu Apr 25 10:35:07 GMT 2024

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

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

Back to the top