Hm... good idea, Ray,

Currently, rather than copying files I want, I don't copy files I know I don't want - ie my NAnt task uses <exclude> file pattern to ignore things like .cs

However, given that the .csproj file is just XML, it should be pretty easy to loop over and copy the given files... I think you could very easily use <style> to transform a .csproj into a basic text document list (a line per file) and then use a <foreach item="File"...> to loop on the files in your project.

I think I'll try that myself!

Troy.


Selke, Anthony wrote:
I would second this request.

VS.NET has a "deploy website" (or some such) command that you give it
server and it will copy just the content files and dependencies from the
local machine to the server.

Granted, you don't want VS.NET on your build server, but if anyone knows
what this menu command actually does and how it does it, that may be
able to be replicated. 

Tony


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Ray Johnson
Sent: Friday, May 13, 2005 5:35 PM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Handling "content" in a web project
Importance: Low


Is there a facility to look at a web project and "copy" the files marked
as "Content" to a given location?  This is kind of a deployment of a web
project - but we need to deploy to an intermediate directory rather than
an IIS install.

We could, of course, copy file patterns.  However, one thing we love
about the <solution> tag is that we can manage what gets built via the
IDE.
Likewise, we would like to manage what gets deployed via the IDE.
Otherwise, we might add a new content type or something and someone will
forget to update the nant script and we will miss deploying something
with the developer going "uh - it worked on my machine!"  :)

Ray



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be
the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


  

Reply via email to