Skip to main content



      Home
Home » Newcomers » Newcomers » How to have a project with multiple source file types?
How to have a project with multiple source file types? [message #118502] Fri, 18 November 2005 18:26 Go to next message
Eclipse UserFriend
I created a new project from an existing Ant build file. This works fine
for the Java source files, but my project has other source files of other
types, like XML or properties files. I don't see how I can specify those
other files to be in my project, and how I can view and edit them.
Re: How to have a project with multiple source file types? [message #118689 is a reply to message #118502] Mon, 21 November 2005 13:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

David Karr wrote:
> I created a new project from an existing Ant build file. This works
> fine for the Java source files, but my project has other source files of
> other types, like XML or properties files. I don't see how I can
> specify those other files to be in my project, and how I can view and
> edit them.
>

The files live somewhere in your project directory structure, right? As
long as you have a plugin that can handle them, you should be able to
just open them and Eclipse will pick the right editor (you can go to
Preferences > General > Editors > File Associations to configure the
editors and file extensions).
Eclipse comes with, obviously, plugins that handle "standard" file types
like Java source, Ant scripts, and others. You'll want to get the Web
Tools plugins (http://www.eclipse.org/webtools) to handle more files
like XML, JSP, etc.

HTH,
Eric
Re: How to have a project with multiple source file types? [message #118713 is a reply to message #118689] Mon, 21 November 2005 14:14 Go to previous messageGo to next message
Eclipse UserFriend
Eric Rizzo wrote:

> David Karr wrote:
>> I created a new project from an existing Ant build file. This works
>> fine for the Java source files, but my project has other source files of
>> other types, like XML or properties files. I don't see how I can
>> specify those other files to be in my project, and how I can view and
>> edit them.
>>
> The files live somewhere in your project directory structure, right? As
> long as you have a plugin that can handle them, you should be able to
> just open them and Eclipse will pick the right editor (you can go to
> Preferences > General > Editors > File Associations to configure the
> editors and file extensions).
> Eclipse comes with, obviously, plugins that handle "standard" file types
> like Java source, Ant scripts, and others. You'll want to get the Web
> Tools plugins (http://www.eclipse.org/webtools) to handle more files
> like XML, JSP, etc.

This gets to the root of the other problem I'm having. I started with an
existing application directory tree. When I started Eclipse, it asked me
to specify the root of my workspaces tree. I then created a project "from
an existing build.xml". As a result, my project directory tree is not my
application directory tree.

How am I supposed to deal with applications that I want to be buildable
and usable from outside of Eclipse?
Re: How to have a project with multiple source file types? [message #118856 is a reply to message #118713] Mon, 21 November 2005 18:34 Go to previous message
Eclipse UserFriend
I've pretty much resolved this particular problem. I tried just creating
a "Java Project" instead of a "Java Project from Existing Ant BuildFile".
I set the root directory to the root directory of my application
directory. This includes all the files in the application tree.

Now I just have to figure out how to deal with Ant under Eclipse not
seeing the "build.properties" file in my application directory.
Previous Topic:Eclipse Freezes
Next Topic:Can't create new Configuration for debug PHPEclipse
Goto Forum:
  


Current Time: Fri May 09 14:33:19 EDT 2025

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

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

Back to the top