anchor.diff:  include::../demo/buildnsf/build.xml[tag=build]
   ----
   
  -You can see that this target depends on *init*. *init* depends on clean, so when we execute this *build* target what will really happen is the following order of execution:
  +You can see that the *build* target depends on *init*. *init* depends on clean, so when we execute this *build* target what will really happen is the following order of execution:
   
       clean -> init -> build
   
   ==== To run the Build
  +
  +Before running the build, we make sure Domino Designer will be able to listen for the instructions to build something.
  +
  +If Domino Designer is running, make sure the Headless designer PLugin server is started.
  +If Domino Designer is not running, make sure the Headless designer plugin is configured to auto-start when Domino Designer starts.
   
   1. Open your command line
   2. Change directory to the the *demo/buildnsf* folder
  
positive.code: The files for this Demonstration are in the *demo/buildnsf* folder of the Build4XPages distribution files. The sample On-Disk Project is located within the tutorial folder as *sampleodp*. 
  The Application has a Custom Control and an XPage which uses that custom control.
  
  === build.xml
  
  Our 'recipe' for the build is contained in the *build.xml* file located in the *demo/buildnsf* directory. *build.xml* is the default name for an Ant build file, you can call it another filename but if so you would need to specify extra command line argument `-b myfile.xml`
  
  Within the build.xml file are things called _targets_. A target is a bit like a code block.
  Targets can be configured to depend on another target, so that means executing a _target_ will cause the other targets that it depends on to be executed first.
  
  Within this build.xml file are 2 _targets_ that are used to setup the demo *clean* and *init*
  
  *clean* is used to clean up any previous attempt at this tutorial, and *init* is used to initialise a new attempt.
  
  
negative.code: If you were to look in Designer you would see the problem there too.
  
  image::NSFDemoError.JPG[]
  
  === Conclusion
  
  In this demonstration tutorial we have shown how the *buildnsf* task from the BuildXPages Ant Library works together with the headless designer plugin. 
  We have demonstrated how to successfully build an NSF and also what it looks like when an NSF does not successfully build.