<html><head></head><body>Hi<br>
<br>
Perhaps the easiest even if duplicates code would be to have the code in every plugin? <br>
<br>
This way the plugin are self contained and do not depend on anything else,  if I have understood correctly that is. <br>
<br>
Marco<br><br><div class="gmail_quote">On 8 December 2016 09:14:01 GMT+00:00, Jelle van der Waa <j.vanderwaa@zarafa.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi all,<br /><br />Just got back from vacation and should really subscribe my kopano email to the list so I don't miss<br />these discussions :)<br /><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> From the main webapp directory. <br /> This way it found the tools directory otherwise not. <br /> I do not think you can build the plug in without webapp or at least I have not been successful. <br /> Did you try running ant tools from the main webapp directory as opposed  as from the plug in directory? <br /> Indeed I tried with centos as I could not get Debian to work. <br /></blockquote><br />Yup, it's sort of the right way. The WebApp has 'build tools' in the tools directory (for concatenating css. JavaScript) and server/manifest.dtd  <br />to verfiy the manifest.xml file<br /><br />Since we didn't want to copy these files to every plugin, we internally have created a simple
"kopano-webapp-buildtools" package.<br />Which in reality should be a split package from kopano-webapp. <br /><br />To be honest it's a bit ugly, looking at our debian.rules file:<br /><br />override_dh_auto_install:<br /> install -d -m 755 $(INSTDIR)$(TOOLSDIR)<br /> cd tools && ant && cd ../<br /> cp -rf server tools plugins/ $(INSTDIR)$(TOOLSDIR)/<br /><br />And in our plugin we build it as following, (and make depend on buildtools)<br /><br />ant -Dtools-folder=/usr/share/kopano-webapp-buildtools/tools/  \<br />       -Dserver-folder=/usr/share/kopano-webapp-buildtools/server/ <br />       -Dtarget-folder=deploy -Dplugin-folder=files -Dplugin=files deploy;<br /><br /><br />I hope that helps, otherwise I can probably share the kopano-webapp-buildtools package.<br />I think copying the whole plugins directory is a bug.. :) I think it really needs plugins/build.xml to be<br />copied for the plugin to build.<br /><br /><hr /><br />Pkg-giraffe-discuss mailing list<br
/>Pkg-giraffe-discuss@lists.alioth.debian.org<br /><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-giraffe-discuss">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-giraffe-discuss</a><br /><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>