Provided the website is already established, you can delete and recreate
the virtual folders.  However, if you need to delete the website and
recreate it, you will have to resort to a script task, VBScript etc.
Unless the NantContrib has been updated with a mkiiswebsite (or some
such) task that I am not aware of.

Here is part of one I use

        <target name="iis.verifyvirtual">
                <echo message="Folder location:
${cvs.destination}\${cvs.overridedir}"/>
                <deliisdir 
                        iisserver="localhost"
                        website="${website}"
                        vdirname="${virtualfolder}"
                        verbose="false"
                        failonerror="false"/>
                <mkiisdir
                        iisserver="localhost"
                        website="${website}""
                        vdirname="${virtualfolder}"
                        dirpath="${cvs.destination}\${cvs.overridedir}"
                        appfriendlyname="${friendlyname}"
                        apppoolid="${poolname}"
                        appcreate="None"
                        accessexecute="false"
                        accessscript="true"
                        verbose="true"
                        failonerror="false"
                        aspallowsessionstate="true"/>
        </target>

Christopher B. Snider
Technical Development Manager, Reg.Net
719.302.0200 x403
chris_snider (Yahoo! messenger ID)
-----------------------------------------------------------
"When all men think alike, no one thinks very much"
Walter Lippmann


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Frederick
Sent: Wednesday, August 13, 2008 3:40 PM
To: Bob Archer
Cc: [EMAIL PROTECTED]; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Web deployment questions

Yes, I am talking about a total tear-down/build-up of the IIS virtual 
directories and their settings.


Bob Archer wrote:
> Sure, anything is possible with enough time and [swear words] money. 
>
> Are you talking about re-doing the virtual and such too? 
>
> We do a simple version of what you are saying. Basically stopping IIS,
> deleting all the files in the VD then copying them all out there
again.
> But, we are going to move to having the script run the installer to be
> 100% sure we are also testing the installer that will go out to
clients.
>
> BOb
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Mike
> Frederick
> Sent: Wednesday, August 13, 2008 5:09 PM
> To: nant-users@lists.sourceforge.net
> Subject: [NAnt-users] Web deployment questions
>
> All,
>
> I am in charge of the build/deployment of a web-based product and I
have
>
> scripted the builds and deployments in NAnt.  Now I am being asked to 
> also script the complete tear-down/build-up of the underlying IIS web 
> sites.  This is to be done in order to guarantee that the final 
> deployment web sites are built exactly the same (same properties, same

> files) as the gold copy we hand build/test in-house.
>
> I am wondering how those of you on this list accomplish this task.  I 
> have seen the Microsoft TechNet article on this subject 
> (http://technet.microsoft.com/en-us/magazine/cc160773.aspx), but I
also 
> notice that there are a few tasks in the NAntContrib distribution that

> deal in some ways with IIS web deployments.  Can the NAntContrib tasks

> be used to completely tear-down (I'm fairly certain they can do this) 
> and "xerox" an established web site (or virtual directory) onto
another 
> server?
>
> Any help/tips appreciated.
>
>
------------------------------------------------------------------------
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
>   


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to