This is perhaps more a reference for me than for anyone else reading my blog

But I think it might come in quite useful someday.

Here’s a description of the project file of an eclipse project:

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/project_description_file.html

and here is my code on the php project:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>ProjectName</name>
	<comment></comment>
	<projects>
	</projects>
  <buildSpec>
    <buildCommand>
      <name>org.eclipse.wst.validation.validationbuilder</name>
      <arguments>
      </arguments>
    </buildCommand>
    <buildCommand>
      <name>org.eclipse.dltk.core.scriptbuilder</name>
      <arguments>
      </arguments>
    </buildCommand>
  </buildSpec>
  <natures>
    <nature>org.eclipse.php.core.PHPNature</nature>
  </natures>
</projectDescription>
Tagged with:
 

2 Responses to .Project File in Eclipse

  1. Since the latest eclipse versions you can simply click right on your project > Configure

    And choose one of the many configuration options:

    - Add Javascript Support
    - Add PHP Support

    This is also probably the safest way, because the syntax could change in the future.

    grtz

  2. THx for the reply!
    Cool, works like a charm, are there any other nice features that where added to the latest version that we should know of?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>