How to programmatically copy a folder from a plugin to a new project in the work space?

后端 未结 2 1549
栀梦
栀梦 2021-01-13 09:15

I am developing an Eclipse Plugin creating a new Project Wizard. When creating such new project in the workspace I need it to copy a folder, and its descendent, from the plu

2条回答
  •  情深已故
    2021-01-13 09:51

    This is not possible without knowing exactly the files (you cannot iterate over the children). Instead of using a folder with files and subfolders, create a zip with that structure and unpack the zip in your workspace (this should preserve the desired structure).

提交回复
热议问题