Setting write permissions for folders while creating a package with MSDeploy

Posted by bala_88 on Server Fault See other posts from Server Fault or by bala_88
Published on 2012-08-21T12:37:58Z Indexed on 2012/10/07 3:41 UTC
Read the original article Hit count: 625

Filed under:
|

I'm using MSDeploy to create an artefact as a build step in NAnt. This particular build step is called on successful compilation. The artefact is then used to for deployment.

Here is the step specified in my build file.

  <target name="BuildMsDeployPackage" depends="StageForMsDeployPackaging">
    <exec program="${msdeploy.exe}"
          workingdir="${buildDirectory}"
          verbose="true"
          commandline="-verb:sync 
                      -source:iisapp=${packagingDirectory} 
                      -dest:package=${publishDirectory}\${webapp.artifact.zip}"/>

The source here is my my web project.

I want to be able to set specify write access to a couple of folders in the package that is created. Is this possible? I know that there is a setAcl provider for this specific purpose, but can this be used while creating a package?

© Server Fault or respective owner

Related posts about msdeploy

Related posts about nant