<div dir="ltr">Hi James,<div> Thanks, yes now I can manage with the dump plugin.</div><div>Jenny</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 December 2016 at 10:50, James Tait <span dir="ltr"><<a href="mailto:james.tait@canonical.com" target="_blank">james.tait@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_-5171687565932118191markdown-here-wrapper"><p style="margin:1.2em 0px!important">Hi Jenny,</p><span class="">
<p style="margin:1.2em 0px!important">On 8 December 2016 at 10:14, Jenny Murphy <<a href="mailto:jenny.murphy@episensor.com" target="_blank">jenny.murphy@episensor.com</a>> wrote:</p>
<p style="margin:1.2em 0px!important"></p><div class="m_-5171687565932118191markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>I have been trying to upgrade a snapcraft file I had which used the copy plugin with snapcraft 1.1.0. My newer version of snapcraft 2.22.1.</div><div>I am aware that the copy plugin is now deprecated and I should use the dump plugin.</div><div>I could actually like to copy the contents of a directory :</div><div>So previously I had :</div><div> move-webapp:</div><div> plugin: copy</div><div> files:</div><div> webapp: webapp # Moved everything in ./webapp to stage/webapp</div><div><br></div><div><br></div><div>I haven't found too many examples of using the dump plugin to do the same job.</div><div>The Examples link is broken here. <a href="http://snapcraft.io/docs/reference/plugins/dump" target="_blank">http://snapcraft.io/docs<wbr>/reference/plugins/dump</a></div><div><br></div><br></div></blockquote><p></p></div><p style="margin:1.2em 0px!important"></p>
</span><p style="margin:1.2em 0px!important">I also found it difficult to locate any documentation on the plugin, but with some reading of the code and some experimentation I got something that seems to work. <a href="https://github.com/jamestait/snappy-playpen/blob/cuberite/cuberite/snapcraft.yaml" target="_blank">This</a> is my <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">snapcraft.yaml</code> using the <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">copy</code> plugin, and I updated to to <a href="https://github.com/jamestait/cuberite/blob/master/snapcraft.yaml" target="_blank">this</a> using the <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">dump</code> plugin. In one instance I simply replaced <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">files</code> with <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">filesets</code>; in the other I replaced it with <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">organize</code> and added a clause to only include the <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">bin</code> directory in the snap. I don’t recall why the two approaches were required.</p>
<p style="margin:1.2em 0px!important">Hope that helps!</p>
<div title="MDH:PGRpdiBjbGFzcz0iZ21haWxfZGVmYXVsdCIgc3R5bGU9ImZvbnQtZmFtaWx5OiBtb25vc3BhY2Us
bW9ub3NwYWNlOyI+SGkgSmVubnksPGJyPjwvZ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msuIFtUaGlzXShodHRwczovL2dpdGh1
Yi5jb20vamFtZXN0YWl0L3NuYXBweS1wbGF5cGVuL2Jsb2IvY3ViZXJpdGUvY3ViZXJpdGUvc25h
cGNyYWZ0LnlhbWwpIGlzIG15IGBzbmFwY3JhZnQueWFtbGAgdXNpbmcgdGhlIGBjb3B5YCBwbHVn
aW4sIGFuZCBJIHVwZGF0ZWQgdG8gdG8gW3RoaXNdKGh0dHBzOi8vZ2l0aHViLmNvbS9qYW1lc3Rh
aXQvY3ViZXJpdGUvYmxvYi9tYXN0ZXIvc25hcGNyYWZ0LnlhbWwpIHVzaW5nIHRoZSBgZHVtcGAg
cGx1Z2luLiBJbiBvbmUgaW5zdGFuY2UgSSBzaW1wbHkgcmVwbGFjZWQgYGZpbGVzYCB3aXRoIGBm
aWxlc2V0c2A7IGluIHRoZSBvdGhlciBJIHJlcGxhY2VkIGl0IHdpdGggYG9yZ2FuaXplYCBhbmQg
YWRkZWQgYSBjbGF1c2UgdG8gb25seSBpbmNsdWRlIHRoZSBgYmluYCBkaXJlY3RvcnkgaW4gdGhl
IHNuYXAuIEkgZG9uJ3QgcmVjYWxsIHdoeSB0aGUgdHdvIGFwcHJvYWNoZXMgd2VyZSByZXF1aXJl
ZC48YnI+PGJyPjwvZGl2PjxkaXYgc3R5bGU9ImZvbnQtZmFtaWx5OiBtb25vc3BhY2UsbW9ub3Nw
YWNlOyIgY2xhc3M9ImdtYWlsX2RlZmF1bHQiPkhvcGUgdGhhdCBoZWxwcyE8YnIgY2xlYXI9ImFs
bCI+PC9kaXY+PGJyPjwvZGl2Pg==" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">-- <br><div class="m_-5171687565932118191gmail_signature">James Tait, BSc. | <a href="https://launchpad.net/%7Ejamestait/" target="_blank">https://launchpad.net/~<wbr>jamestait/</a><br>Software Engineer, Canonical Online Services<br>Ubuntu - Linux for human beings | <a href="http://www.ubuntu.com" target="_blank">www.ubuntu.com</a></div>
</div></font></span></div>
<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><strong>Jenny Murphy</strong></div>
<div><strong>EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland</strong></div>
<div>jenny.murphy<a href="mailto:jenny.murphy@episensor.com" target="_blank">@episensor.com</a> t | +353 (0) 61 512 511 w | <a href="http://www.episensor.com/" target="_blank">http://www.episensor.com</a></div></div>
</div>