Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

How to create the plugin

Help
anders
2013-12-04
2013-12-10
  • anders
    anders
    2013-12-04

    Hey,
    I am developing one plugin for the projectforge , I follow the developer guide. But I find it is difficult for me to continue.
    I cannot find the “config.xml”, so I new one. I almost copy the code of the code of “memo plugin” ,just change the “memo” to a new name in every file.
    But it does not work, when I compile the project ,there are nothing changed.
    The submenu of miscellaneous is still only “todo” and “memo”.
    It make me very confused.

     
  • Kai Reinhard
    Kai Reinhard
    2013-12-09

    Hi,

    please create a config.xml file in the home directory of your ProjectForge installation with at least this content:

    <?xml version="1.0" encoding="UTF-8" ?>
    <config>
      <pluginMainClasses>
        org.projectforge.plugins.licensemanagement.LicenseManagementPlugin
      </pluginMainClasses>
    </config>
    

    Please replace the above entry of LicenseManagementPlugin by your main plugin class.

    Regards
    Kai

     
    Last edit: Kai Reinhard 2013-12-09
  • anders
    anders
    2013-12-10

    Thanks a lot, my first plugin can work well.
    My fault is put the config.xml file in a wrong directory.