Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "PDT/Contributing"

< PDT
(New page: Category:PDT == Quick guide == Following is a two-step guide to get and build PDT: 1. Get PDT source code: cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/tools co org.eclipse.p...)
 
(Working with PDT source code in Eclipse)
Line 14: Line 14:
 
== Working with PDT source code in Eclipse ==
 
== Working with PDT source code in Eclipse ==
  
1. To comfortably edit PDT source code you will need Eclipse JDT and PDE. Ideally Eclipse Classic package from Eclipse downloads page is what you need.
+
# To comfortably edit PDT source code you will need Eclipse JDT and PDE. Ideally Eclipse Classic package from Eclipse downloads page is what you need.
2. Check out PDT plugins to Eclipse workspace. Select the XML text below and save it to file projectSet.psf
+
# Check out PDT plugins to Eclipse workspace. Select the XML text below and save it to file projectSet.psf
 +
# In Eclipse, choose File->Import, select Team->Team Project Set and choose projectSet.psf file created in step 2. After finishing the import wizard, you should see all PDT source code in your workspace. Source code might not be compiling yet
 +
# Find file org.eclipse.php.core/Resources/parserTools/build.xml and launch it as Ant Build. This will generate PHP language parser classes.
 +
# Install missing dependencies:
 +
# You can now run PDT in Eclipse self-hosting mode. Click on any of PDT projects and choose Run As->Eclipse Application
 +
# Three of the projects that you downloaded are PDT Unit tests: org.eclipse.php.core.performance.tests, org.eclipse.php.ui.tests and org.eclipse.php.core.tests. You can launch UnitTests by finding AllTests class in each of the projects (org.eclipse.php.core.tests.AllTests, org.eclipse.php.core.tests.performance.AllTests, org.eclipse.dltk.ui.tests.AllTests) and launch it as JUnit Plug-in test.
 +
 
 +
== PDT Team Project Set ==
  
 
   <?xml version="1.0" encoding="UTF-8"?>
 
   <?xml version="1.0" encoding="UTF-8"?>
Line 35: Line 42:
 
   </provider>
 
   </provider>
 
   </psf>
 
   </psf>
 
3. In Eclipse, choose File->Import, select Team->Team Project Set and choose projectSet.psf file created in step 2. After finishing the import wizard, you should see all PDT source code in your workspace. Source code might not be compiling yet
 
4. Find file org.eclipse.php.core/Resources/parserTools/build.xml and launch it as Ant Build. This will generate PHP language parser classes.
 
5. Install missing dependencies:
 
6. You can now run PDT in Eclipse self-hosting mode. Click on any of PDT projects and choose Run As->Eclipse Application
 
7. Three of the projects that you downloaded are PDT Unit tests: org.eclipse.php.core.performance.tests, org.eclipse.php.ui.tests and org.eclipse.php.core.tests. You can launch UnitTests by finding AllTests class in each of the projects (org.eclipse.php.core.tests.AllTests, org.eclipse.php.core.tests.performance.AllTests, org.eclipse.dltk.ui.tests.AllTests) and launch it as JUnit Plug-in test.
 

Revision as of 02:17, 24 July 2012

Quick guide

Following is a two-step guide to get and build PDT:

1. Get PDT source code:

 cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/tools co org.eclipse.pdt

2. Build PDT using Maven:

 cd org.eclipse.pdt/org.eclipse.pdt.releng
 mvn clean install

Working with PDT source code in Eclipse

  1. To comfortably edit PDT source code you will need Eclipse JDT and PDE. Ideally Eclipse Classic package from Eclipse downloads page is what you need.
  2. Check out PDT plugins to Eclipse workspace. Select the XML text below and save it to file projectSet.psf
  3. In Eclipse, choose File->Import, select Team->Team Project Set and choose projectSet.psf file created in step 2. After finishing the import wizard, you should see all PDT source code in your workspace. Source code might not be compiling yet
  4. Find file org.eclipse.php.core/Resources/parserTools/build.xml and launch it as Ant Build. This will generate PHP language parser classes.
  5. Install missing dependencies:
  6. You can now run PDT in Eclipse self-hosting mode. Click on any of PDT projects and choose Run As->Eclipse Application
  7. Three of the projects that you downloaded are PDT Unit tests: org.eclipse.php.core.performance.tests, org.eclipse.php.ui.tests and org.eclipse.php.core.tests. You can launch UnitTests by finding AllTests class in each of the projects (org.eclipse.php.core.tests.AllTests, org.eclipse.php.core.tests.performance.AllTests, org.eclipse.dltk.ui.tests.AllTests) and launch it as JUnit Plug-in test.

PDT Team Project Set

 <?xml version="1.0" encoding="UTF-8"?>
 <psf version="2.0">
 <provider id="org.eclipse.team.cvs.core.cvsnature">
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php,org.eclipse.php"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.core,org.eclipse.php.core"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.core.parser,org.eclipse.php.core.parser"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/tests/org.eclipse.php.core.performance.tests,org.eclipse.php.core.performance.tests"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/tests/org.eclipse.php.core.tests,org.eclipse.php.core.tests"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.debug.core,org.eclipse.php.debug.core"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.debug.daemon,org.eclipse.php.debug.daemon"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.debug.ui,org.eclipse.php.debug.ui"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.help,org.eclipse.php.help"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.server.core,org.eclipse.php.server.core"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.server.ui,org.eclipse.php.server.ui"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/plugins/org.eclipse.php.ui,org.eclipse.php.ui"/>
 <project reference="1.0,:pserver:dev.eclipse.org:/cvsroot/tools,org.eclipse.pdt/tests/org.eclipse.php.ui.tests,org.eclipse.php.ui.tests"/>
 </provider>
 </psf>

Back to the top