Tuesday, September 30, 2008

Importing of existing symfony project created + Eclipse

    Normally projects created by other programs cannot be import by Eclipse. So that do the following prcedure to convert the Symfony project folder created manually to Eclipse acceptable one.


    Method 1: Copy and paste the file called .project from existing some other Eclipse project folders. Edit that file to change the project name and save it. From now it can be imported by Eclipse.

    Method 2. File content follows. 

        Create a file and paste this on to it.
        <?xml version="1.0" encoding="UTF-8"?>
        <projectDescription>
            <name>ostd</name>
            <comment></comment>
            <projects>
            </projects>
            <buildSpec>
                <buildCommand>
                    <name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>
                    <arguments>
                    </arguments>
                </buildCommand>
                <buildCommand>
                    <name>org.eclipse.php.core.ValidationManagerWrapper</name>
                    <arguments>
                    </arguments>
                </buildCommand>
            </buildSpec>
            <natures>
                <nature>org.eclipse.php.core.PHPNature</nature>
            </natures>
        </projectDescription>


    Method 3:
        1. Create a project in same name using eclipse.
        2. Copy and paste all the files into that from existing project folder.

No comments:

Post a Comment