Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364523 - [Generation] Issues creating target folder for a File Copy Rule
Summary: [Generation] Issues creating target folder for a File Copy Rule
Status: CLOSED FIXED
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Plugin (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 17:07 EST by Navid Mehregani CLA
Modified: 2011-12-01 14:45 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!!!