tags:

views:

59

answers:

1

I simply want to copy all the files and folders from a network location to the build location (where the script is run). The following runs without error but no files are copied.

<PropertyGroup>

    <FileRepositry>\\network_machine\c$\some_folder</FileRepositry>

  </PropertyGroup>

</Target>

<Target Name="CopyFileRepository">
    <Message Text="Copying file repository from $(FileRepositry)"/>
    <CreateItem Include="$(FileRepositry)\**\*.*">
      <Output ItemName="FileRepo" TaskParameter="Include" />
    </CreateItem>
    <Copy SourceFiles="@(FileRepo)"
          DestinationFiles="@(FileRepo-&gt;'C:\\FileRepository\\%(RecursiveDir)%(Filename)%(Extension)')" ContinueOnError="false" />
    <Message Text="Done." />
  </Target>

The source directory has two folders in it: Media and Source. I have created the folders at my build location -> c:\filerepository\media , c:\filerepository\source

The build runs and completes but the files are never copied over.

Can someone tell me what's up?

A: 

It was a silly permissions issue. Simply trying to access/copy files to this network revealed the problem. Adjusting the permissions at the source machine fixed this issue. Sorry for the bunk question.

Nick