Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364523

Summary: [Generation] Issues creating target folder for a File Copy Rule
Product: [Technology] Tigerstripe Reporter: Navid Mehregani <nmehrega>
Component: PluginAssignee: Project Inbox <tigerstripe.plugin-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: skanton
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Navid Mehregani CLA 2011-11-22 17:07:01 EST
Build Identifier: 

A File/Directory copy rule is used to essentially copy a set of files from one directory to another.  This rule seems to have issues creating the target folder. 

Reproducible: Always

Steps to Reproduce:
Follow instructions below to reproduce problem

1. Create a Tigerstripe Generator Project
2. Open ts-plugin.xml > Switch to Rules > create a new File/Directory Copy Rule > Under Source, specify 'MySource' > Under Target, specify 'MyTarget' > Save all changes and deploy generator.
3. Create a model project > Inside your model project, create a folder called 'MySource' > Create a couple of files in the folder
4. Enable your generator for the model project and hit Generate button.  Notice the following error:

Error while copying directory /Users/nmehrega/Workspaces/XMP_SDK_TimeTurner_Staging_sanity_tests/com.cisco.xmp.m1/MySource: toDir /Users/nmehrega/Workspaces/XMP_SDK_TimeTurner_Staging_sanity_tests/com.cisco.xmp.m1/target/tigerstripe.gen/MyTarget/MySource must be a valid writteable directory.. Generation may be incomplete.
Comment 1 Navid Mehregani CLA 2011-11-22 17:11:39 EST
The files should be copied under target/tigerstripe.gen/MyTarget  NOT under target/tigerstripe.gen/MyTarget/MySource.
Comment 2 Anton Salnik CLA 2011-11-23 06:28:14 EST
Issue fixed.
Comment 3 Navid Mehregani CLA 2011-12-01 14:45:50 EST
Verified. Thank you!!!