Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

absolutePath regular expression matching in skip parameter for msdeploy

$
0
0

Hello,

 I am having a hard time understanding how does the absolutePath matching works.

I have a .bat calling

msdeploy ^
-skip:skipAction='Delete',objectName='filePath',absolutePath='.*\\MobileForms\\.*' ^
-skip:skipAction='Delete',objectName='dirPath',absolutePath='.*\\MobileForms\\.*'

It does not prevent deleting the files, here's the output when running the .bat:

Info: Deleting filePath (MySite\MobileForms\Data\bd13954b-0cb3-41d8-ab8a-eb988ddb8ad1.xml).
Info: Deleting filePath (MySite\MobileForms\Data\c2966d9b-0212-46d5-b2cf-a855dfd076fd.xml).
Info: Deleting filePath (MySite\MobileForms\Data\ccb7c771-efce-4066-a329-b98804823d67.xml).
Info: Deleting filePath (MySite\MobileForms\Data\cf84d98a-51a7-4be3-a134-cdba00174b4d.xml).
Info: Deleting filePath (MySite\MobileForms\Data\d3954b7d-8401-4f9e-a2bf-625bec29bac4.xml).
Info: Deleting filePath (MySite\MobileForms\Data\d5039b7e-4e33-479f-a369-39784548babb.xml).
Info: Deleting filePath (MySite\MobileForms\Data\da1860c9-51bd-4f75-89db-75f2f60b8d34.xml).
Info: Deleting filePath (MySite\MobileForms\Data\dca942e1-9a4d-44ce-85fe-10f7f86d1a3c.xml).
Info: Deleting filePath (MySite\MobileForms\Data\e403ecc7-311a-421d-9fa3-e5fe1aef1e74.xml).
Info: Deleting filePath (MySite\MobileForms\Data\e8c4141a-430c-4b55-8232-6abd0fafb6b6.xml).
Info: Deleting filePath (MySite\MobileForms\Data\ea82749f-af9f-4d4c-acee-287ca1dd51d4.xml).
Info: Deleting filePath (MySite\MobileForms\Data\f8dfb3b5-08a3-4bfb-9a88-b02b1e39f63e.xml).
Info: Deleting filePath (MySite\MobileForms\Data\ffcff4f4-fc81-4e85-a100-a96d2ea85eca.xml).


I am pulling my hair trying to understand what's wrong.


I could spend time trying to understand what the hell is going on in msdeploy.exe using Reflector but that's just stupid. This was supposed to be something easy to do with msdeploy, why is it so complicated?


Can someone please say why is the regular expression not matching?


Thanks!

EDIT: See solution below!


Viewing all articles
Browse latest Browse all 663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>