- when browsing through files in poky repository, files that contain '<', '>', 
':','"', '/', '\', '|', '?', '*' will not be displayed on a Windows environment 
and will through a ResourceException
- since these files are needed for the internal cooking files should not be 
deleted, but the user does not need to see or modify them -> just ignore these 
exception, causing the files to be skipped when browsing the repo

Signed-off-by: Ioana Grigoropol <ioanax.grigoro...@intel.com>
---
 .../newproject/CreateBBCProjectOperation.java      |    4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/newproject/CreateBBCProjectOperation.java
 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/newproject/CreateBBCProjectOperation.java
index 1a19479..ae1e093 100644
--- 
a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/newproject/CreateBBCProjectOperation.java
+++ 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/newproject/CreateBBCProjectOperation.java
@@ -82,6 +82,10 @@ public class CreateBBCProjectOperation extends 
WorkspaceModifyOperation {
                        proj.open(monitor);
                } catch (IOException e) {
                        throw new InvocationTargetException(e);
+               } catch (ResourceException e){
+                       // ignore this exception since it only occurs for 
special internal files from the repository on Windows platform
+                       // the resource names on Windows must not contain '<', 
'>', ':','"', '/', '\', '|', '?', '*'
+                       // the ignored files must not be removed since they are 
internal cooking files, but the user does not need to see/modify them
                } catch (Exception e) {
                        e.printStackTrace();
                }
-- 
1.7.9.5

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to