Strategy On Building Plugin Using Eclipse

Anyone who has experience in building wordpress plugin using eclipse PDT?

My situation is:

Read More
  • I need to build plugin that extend another plugin (look at it as premium version from another plugin)
  • I already created project plugin core(the original plugin) by importing from svn repository
  • I created eclipse library called wordpress and added it to plugin core project.
  • I created another project plugin extender which will host scripts I created.

The problem is, how to easily test it to wordpress, without having to manually copy-paste those project to wp-content/plugins? Is there anyway to automatically copy those files to wp-content/plugins? Or, do you guys have another solutions to this problem?

As a side note, I’m working on windows 7. I’m aware of windows’s mklink. However, my htdocs in on FAT32 partition and I’m in situation where I have to use Windows in the following months.

Related posts

Leave a Reply

2 comments

    1. Create WordPress as a project. I have several such projects, trunk, old versions … for the following, I just use a project named WP Latest Final.
      You can use the standard installation with /wp-content/plugins. I put my wp-content directory in a Dropbox and tell WP via wp-config.php where to search for it.

    2. Create a new PHP project for each of your plugins. Use Create project from existing source and point to the plugin directory in /wp-content/plugins.

      enter image description here

    3. Click Next in the project wizard, and go to the Projects tab. Choose Add … WP Latest Final.

      enter image description here

    4. Select Access Rules and exclude wp-admin/load-scripts.php and wp-admin/load-styles.php. Hat tip to @hakre.

      enter image description here

    5. Add more projects as you need, other plugins, theme projects etc.

    6. Click Finish. Done.

    If you have installed Egit, you probably want to create a new Git project now to get independent from Eclipse’s history tracking.

  1. Eclipse » Aptana

    Just a short addition for all those using Aptana.

    When you already got a project that is (physically/on disk) outside your WordPress development copy, then simply go to

    Project » Properties » PHP Buildpath » [♦ External Directories]

    enter image description here