Skip to main content

Wrong template for folder type plugins

Comments

2 comments

  • Stephan Janosch

    I found the problem, the zip statement does not do the right thing in the template:

     <zip zipfile="${build}/${short-plugin-name}.gplugin">
    <!--works-->
    <fileset dir="${build}">
    <include name="${plugin-name}/**/*"/>
    </fileset>

    <!--from hello world, does not work-->
    <!--<fileset dir="${build}/${plugin-name}"/>-->
    </zip>

    So the template is definitely wrong for the folder type plugins. Took me half a day to figure out. 

    And yes, I am an ant newbie. 

    A simple listing like this in the doc would have made this clear:

    tag-mac-11:examples janosch$ unzip -l  GsonTestPlugin/build/GsonTestPlugin.gplugin 

    Archive:  GsonTestPlugin/build/GsonTestPlugin.gplugin

      Length     Date   Time    Name

     --------    ----   ----    ----

            0  09-28-17 15:08   de.mpicbg.gef.gsontest.GsonTestPlugin/

         3100  09-28-17 15:08   de.mpicbg.gef.gsontest.GsonTestPlugin/de.mpicbg.gef.gsontest.GsonTestPlugin.jar

       232620  09-28-17 15:08   de.mpicbg.gef.gsontest.GsonTestPlugin/gson-2.8.1.jar

     --------                   -------

       235720                   3 files

     Cheers!

    Stephan

     

    0
  • Matthew Cheung

    Hi Stephan,

    Glad you got it sorted out in the end.  We'll update our documentation and devkit template.

    Cheers,
    Matthew

    0

Please sign in to leave a comment.