Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skip directory in msdeploy

I have a msdeploy in my nant script(Team City) that is working except it is copying some folders that I do not want to copy. What command will skip these directories? I tried:

<arg value="-skip:objectName=dirPath,absolutePath=C:\Websites\slingshotportal\Build scripts"' />
and
<arg value='-skip:objectName=contentPath,absolutePath="C:\\Websites\\slingshotportal\\Build scripts"' />

None of these commands seem to work and the Build scripts directory is still copied fromm source directory to destination directory? The msbuild does a sync and I specify both -source and -dest as contentPath.

like image 435
Jack Smit Avatar asked Jul 08 '10 17:07

Jack Smit


2 Answers

I have a TeamCity nant build script and the one that worked for me in the end was:

<arg value='-skip:objectName=dirPath,absolutePath="\\published"' />

The directory to skip was \published so notice that I had to escape the \ I also found that a directory like webroot\app.domain.feature had to be escaped like: webroot\\app\.domain\.feature

like image 87
Jack Smit Avatar answered Oct 18 '22 09:10

Jack Smit


You need to look at the "skip" parameter.

Documentation is available here: http://technet.microsoft.com/en-us/library/dd569089(WS.10).aspx

like image 5
Daniel Crowe Avatar answered Oct 18 '22 09:10

Daniel Crowe