Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

msdeploy skip for exact-name folders

Tags:

skip

msdeploy

. .

Here's the deal: I'm trying to use msdeploy to upload files. I have a folder in my root called Search that I want it to skip.

So, I wrote a skip directive like this:

-skip:objectName=dirPath,absolutePath="Search"

The good news: it skips the Search folder like I want it to.

The bad news: it also skips any folder with "Search" in the name (example: "Research"), which I don't want it to do. (Also, the "Research" folder being skipped is not off the web root, which raises a concern about controlling what folder locations are skipped.)

I tried a couple of variations, including these:

-skip:objectName=dirPath,absolutePath="\Search"
-skip:Directory="Search"
-skip:Directory="\Search"

No dice. It's still skipping anything named "Research."

I tried looking up msdeploy syntax, and couldn't find anything that helps me.

Any thoughts from the peanut gallery?

Thanks!

like image 572
Ray K. Avatar asked Feb 16 '12 19:02

Ray K.


1 Answers

Got it figured out. For the benefit for anyone else who might be looking for an answer to this . . .

I didn't realize that I was dealing with regular expressions. I rewrote "Search" as "\\Search$"

like image 90
Ray K. Avatar answered Sep 22 '22 02:09

Ray K.