Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2343 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
6 changed files with 96 additions and 17 deletions
@ -0,0 +1,39 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
|
||||||
|
using System; |
||||||
|
using ICSharpCode.Core; |
||||||
|
using ICSharpCode.NAntAddIn.Gui; |
||||||
|
|
||||||
|
namespace ICSharpCode.NAntAddIn.Commands |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Runs the NAnt clean target for the file selected in the NAnt Pad view.
|
||||||
|
/// </summary>
|
||||||
|
public class RunSelectedNAntCleanTargetCommand : AbstractRunNAntCommand |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Runs the <see cref="RunSelectedNAntCleanTargetCommand"/>.
|
||||||
|
/// </summary>
|
||||||
|
public override void Run() |
||||||
|
{ |
||||||
|
try { |
||||||
|
NAntBuildFile buildFile = NAntPadContent.Instance.SelectedBuildFile; |
||||||
|
if (buildFile != null) { |
||||||
|
RunPreBuildSteps(); |
||||||
|
RunBuild(buildFile.FileName, |
||||||
|
buildFile.Directory, |
||||||
|
IsActiveConfigurationDebug, |
||||||
|
"clean", |
||||||
|
GetPadTextBoxArguments()); |
||||||
|
} |
||||||
|
} catch (Exception ex) { |
||||||
|
MessageService.ShowMessage(ex.Message); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue