Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 161760

Summary: Need a way to make existing project PHP project
Product: z_Archived Reporter: Jeff Warnica <jeff.warnica>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: bask8625, eclipse-01, gavin.gilmour, james.deery, mikko.rantalainen, nboldt, vadim.p
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jeff Warnica CLA 2006-10-20 13:55:19 EDT
Say, a Subversion tree.

Editing the .project adding in buildspec and nature from a working php project got things up and running, so this seems to be just a UI problem.
Comment 1 Nick Boldt CLA 2007-07-23 22:44:56 EDT
Don't you also have to add the .projectOptions file too? 

+1 for having a context menu option for "Add PHP Nature" which would add the required code into an existing .project file and generate the .projectOptions file:

        <buildSpec>
                <buildCommand>
                        <name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
                <buildCommand>
                        <name>org.eclipse.wst.validation.validationbuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.php.core.PHPNature</nature>
        </natures>
Comment 2 Gavin Gilmour CLA 2008-07-20 15:07:52 EDT
+1
Comment 3 Silver Zachara CLA 2009-01-21 19:12:48 EST
+1
Comment 4 James Deery CLA 2009-01-25 06:51:13 EST
+1

I think we also need to add:

<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>

to .buildpath so that we get the "PHP Language Library" and completion for standard PHP functions etc.
Comment 5 Michael Spector CLA 2009-06-07 11:06:31 EDT
Fixed in CVS.
Comment 6 Vadim Punski CLA 2009-12-29 09:13:39 EST
closing