You can continue the script. On most NAnt tasks there is a property called something like "failonerror", if set to false the script ignores the failure of the task and continues. Alternatively the NAntContrib has a trycatch block which lets you react to the failure. Regardless, with an error whatever your building simply wont build, so there will be no assembly or exe or whatever to show for that task (well if the tasks doing multiple assemblys there might be, but the ones with errors wont be created), failonerror simply lets the rest of the script execute.
On Wednesday 04 February 2009 20:17:47 gmoney wrote: > > Hi, > > I a new to nant so excuse the silly questions. I have a project in VSS that > I want to build with nant. The problem is that our project has a number of > errors that I need to ignore. I know that these errors should be fixed, but > for some silly political reason they need to be ignored and my Mgr is over > ruling me. > > The build error that I get from Visual studio is along the lines of > > "Error 4 The name 'Control_Name' does not exist in the current > context" > > and then the file and line number is provided. > > So what i want to be able to do is to ignore this error and there are a > number of these errors in different files. So the question I have is can > this be achieved and how? > > thanks in advance ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users