can not import subfolder and files in it to repository

G

Guest

I create a component named xxx.sld, I also create a folder as my repository
in local disk. Because I want to add a folder and files in it to the
component, I put them(the folder and files in it) in the repository
folder.But when I try to import the component to the repository, I can not
find the corresponding folder and the files in repository. Please tell me
why?

Thanks very much
 
G

Gordon Smith \(eMVP\)

That's normal - the repository is a flat directory for collecting files. If
the import process were to navigate subdirectories from your source, you
could end up with filename conflicts when copying them into the flat
repository directory. That doesn't mean that the files need to be copied in
the same flat fashion into your image - your SLD file will describe the
destination location per file.

--Gordon Smith (eMVP)
 
G

Guest

But how can I solve that problem ? I need to add subfolder and files int it
to my component,and build it to destination directory.
 
S

Sean Liming \(MVP\)

When you manually create a file resources, there is a check box to make the
resources a folder.

Fo other files, you manualy change their destination paths forexample:
%24%\myfolder

--
Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
 
G

Guest

yes, I can add files and folders to my component, and the folder's check box
property is checked by default. But the problem is when I import the
component to repository, I can not find the folder and files in the folder.
The detail is:
I create a component named xxx.sld,save it to a folder named ABC,and I also
create a folder named BAC,which contain the files and folders I needed. I
also set folder BAC as my componet's repository. the folders in BAC also
contain files I want to import to repository. when I import component to
repository ,the files in BAC can be imported successfully but the subfolders
and subfolders' files can not ,am i describe my problem clear?
 
S

Sean Liming \(MVP\)

You cannot have files in folders in a repository. All the files need to be
under one repository folder -flat - no subdirectories. Target Designer will
place the files in the correct locations during build time.

For example: your xxx.sld file and then you have a folder named ABC. You SLD
file has the component and a repository resource. The two resources are
linked and the repository points to the folder ABC. In folder ABC --ALL
files are under the repository - no sub folders. Then import the SLD which
will then copy over the files to a repository folder.

Do you have the book Windows XP Embedded Advanced?

--
Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
 
G

Guest

Thanks very much to sean and Gordon. At first I don't known what "flat"
means,now I known that. I do not have the book sean mentioned, because I am
not a citizen of USA, and it is not convenient to buy a booK from America. I
will try to get one. Thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top