Hi Team I am new to NANT. I have some files which is not included in a project, It builds fine in IDE. The same project I am building through NANT (Pointing to the Source Directory), it takes all files which is not included in the project and throws up the error. I just excluded the files in my NANT script (Hard coded - <exclude name="somefile.cs" />).
Is there any way to make NANT to consider only the included files in the project? Pradeep -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 10:04 PM To: [EMAIL PROTECTED] Subject: Nant-users digest, Vol 1 #524 - 4 msgs Send Nant-users mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/nant-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Nant-users digest..." Today's Topics: 1. docs bug (Jean Rajotte) 2. Re: docs bug (Gert Driesen) 3. Solution Task Bug (Lehnert, Marc [LBRT/LNA]) 4. bin/nant fails when runing test "NAnt.VisualCpp ([EMAIL PROTECTED]) --__--__-- Message: 1 Reply-To: <[EMAIL PROTECTED]> From: "Jean Rajotte" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Thu, 4 Dec 2003 15:39:14 -0500 Subject: [Nant-users] docs bug allooo, the fileset docs describe "includes" and "excludes" as "comma-separated list of patterns of files..." so you'd expect that you could do this: <fileset basedir="d:\utils\" > <includes name="*.bat, *.exe" /> </items> but you can't. the above returns an empty list. you need to do this to get results: <fileset basedir="d:\utils\" > <includes name="*.bat" /> <includes name="*.exe" /> </items> it looks like the docs come from Ant and the feature wasn't implemented in NAnt... ____________ Jean Rajotte +1 416-574-1767 --__--__-- Message: 2 From: "Gert Driesen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: Re: [Nant-users] docs bug Date: Thu, 4 Dec 2003 21:56:22 +0100 The docs have been fixed since, but thanks for the report anyway .. Gert ----- Original Message ----- From: "Jean Rajotte" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 04, 2003 9:39 PM Subject: [Nant-users] docs bug > allooo, > > the fileset docs describe "includes" and "excludes" as > "comma-separated list of patterns of files..." > > so you'd expect that you could do this: > > <fileset basedir="d:\utils\" > > <includes name="*.bat, *.exe" /> > </items> > > but you can't. the above returns an empty list. you need to do this > to get results: > > <fileset basedir="d:\utils\" > > <includes name="*.bat" /> > <includes name="*.exe" /> > </items> > > it looks like the docs come from Ant and the feature wasn't > implemented in NAnt... > > > ____________ > Jean Rajotte > +1 416-574-1767 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. Does > SourceForge.net help you be more productive? Does it help you create > better code? SHARE THE LOVE, and help us help YOU! Click Here: > http://sourceforge.net/donate/ > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > --__--__-- Message: 3 From: "Lehnert, Marc [LBRT/LNA]" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Date: Thu, 4 Dec 2003 16:42:16 -0500 Subject: [Nant-users] Solution Task Bug NAnt v0.8.3 .NET FW v1.1.4322 MS Win2k SP4 When building a project that contains embedded raw resources (such as images), the solution task copies these files to a temporary directory. When the build is complete, the temporary directory is removed. However, if any of the raw resource files were read-only, the directory removal fails: System.UnauthorizedAccessException: Access to the path "ReadOnlyFilename" is denied. at System.IO.Directory.Delete(String path, Boolean recursive) at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() I would suggest ensuring all files in the temporary directory are writable prior to deleting the directory. I would also suggest that any error/exception resulting from the deletion of the temporary directory be logged as a warning instead of failing the build. Thanks. Marc A. Lehnert Senior Design Engineer Liebert Monitoring Group [EMAIL PROTECTED] --__--__-- Message: 4 From: [EMAIL PROTECTED] Date: Thu, 4 Dec 2003 11:18:17 -0800 Subject: [Nant-users] bin/nant fails when runing test "NAnt.VisualCpp This is a multipart message in MIME format. --=_alternative 006A23C388256DF2_= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit If I remove that test, the build completes. The first failure is described as: " Failures: 1) Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloWorld.Test_HelloWorldC ompile : Error Executing Project at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in D:\ NANT\nant-0.8.3.50105\tests\NAnt.Core\BuildTestBase.cs:line 96 at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in D:\NANT\ nant-0.8.3.50105\tests\NAnt.Core\BuildTestBase.cs:line 80 at Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloWorld.Test_HelloWor ldCompile() in D:\NANT\nant-0.8.3.50105\tests\NAnt.VisualCpp\Tasks\ClTaskTest.cs :line 64 " Thanks for any help --=_alternative 006A23C388256DF2_= Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <br><font size=2 face="sans-serif">If I remove that test, the build completes.</font> <br> <br><font size=2 face="sans-serif">The first failure is described as:</font> <br> <br><font size=2 face="sans-serif">" Failures:</font> <br><font size=2 face="sans-serif"> 1) Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloWorld.Test_HelloWorldC</font> <br><font size=2 face="sans-serif">ompile : Error Executing Project</font> <br><font size=2 face="sans-serif"> at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in D:\</font> <br><font size=2 face="sans-serif">NANT\nant-0.8.3.50105\tests\NAnt.Core\BuildTestBase.cs :line 96</font> <br><font size=2 face="sans-serif"> at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in D:\NANT\</font> <br><font size=2 face="sans-serif">nant-0.8.3.50105\tests\NAnt.Core\BuildTestBase.cs:line 80</font> <br><font size=2 face="sans-serif"> at Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloWorld.Test_HelloWor</font> <br><font size=2 face="sans-serif">ldCompile() in D:\NANT\nant-0.8.3.50105\tests\NAnt.VisualCpp\Tasks\ClTaskTest.cs</font> <br><font size=2 face="sans-serif">:line 64</font> <br><font size=2 face="sans-serif">"</font> <br> <br><font size=2 face="sans-serif">Thanks for any help</font> <br> --=_alternative 006A23C388256DF2_=-- --__--__-- _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users End of Nant-users Digest ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
