BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

ReBlogger Contents

Previous posts in XML

 
 
Page 4563 of 17445

EditPlus: A Kinder, Gentler Way To Build Nant Scripts

Blogger : Geekswithblogs.net
All posts : All posts by Geekswithblogs.net
Category : XML
Blogged date : 2007 Nov 09

I've been working on Nant scripts this week and the experience has been much more enjoyable since a co-worker showed me how he used EditPlus (thanks Raoul). After a few quick customizations, I was able to not only get syntax highlighting for my build files but also execute Nant from within the tool and see the output from the bottom pane. Anything that decreases context switching when I have a gajillion windows open is pretty nifty in my book.

Here's a picture of a build file with my custom button circled at the top and the nant output in the bottom pane..



Here are a list of tweaks that I made:
  • For syntax highlighting:
    1. Under the Document menu, go to 'Change File Type' and select XML.
  • To create a custom button that will execute the build you are editing:
    1. Select 'UserToolbar' under the View menu to get the user configurable buttons to appear.
    2. Click on the first button (the hammer icon) of the user toolbar that appears and choose 'Configure User Tools'.
    3. On the dialog box that appears, click the 'Add Tool' button and select 'Program'.
    4. For the Command field, navigate to the location of your Nant executable.
    5. For Argument field, enter the buildfile argument (-f:) and then choose 'FileName' from the drop down so that the name of the current build file you are editing will dynamically be sent as a command line parameter.
    6. For the Initial Directory textbox, choose 'File Directory' so that the path of the current file will be dynamically sent as a command line parameter.
  • To view the output from Nant in the bottom pane:
    1. Click on the 'Capture Output' checkbox from the previous dialog box.
In order to execute your Nant script, simply click on the first button that becomes enabled on the user toolbar. This is what the dialog box looks like for the above steps:


Happy Nant scripting!


Read comments or post a reply to : EditPlus: A Kinder, Gentler Way To Build Nant Scripts
Page 4563 of 17445

Newest posts
 

    Email TopXML