nisp-build - Using the nisp tools to build the NISP documents
build [OPTIONS] [TARGET [TARGET2 [TARGET3] ...]]
By default this command uses build.xml as its default build file.
Since the build script is just a wrapper around Ant, it takes the same options, but only the options below are relevant.
The NISP tools uses the make-like tool Ant to build HTML and PDF versions of the NISP. NISP wraps ant in a shell file build.bat for use in Windows and build.sh for use in Linux/Unix.
Running the command
build
will build all HTML and PDF files
The syntax for using the build script is
build [-f buildfile] [target*]
The XML based buildfile consist of a project definition defining one or more targets. A target is a set of tasks which should be executed. When the buildfile is not specified Ant will by default use the file build.xml, and if a target is not defined, Ant will build the default target as specified in the project element.
A target A may depend on other targets B and C, which have to be build before target A can be build. The build process therefore identifies the dependency between targets and build only the necessary targets depending on if anything have changed since the last build was executed.
The NISP build file contain more than 100 different targets. Some targets exists only for technical reasons and will not be described here. The rest of the target can shown by issuing the command
build -projecthelp
The targets can be separated into dynamic and static targets.
The dynamic targets are located in the file build.target, which is automatically imported by the file build.xml and the targets made availible to the user.
Historically, NISP have changed a lot, we have added and removed multiple volumes, and every time the dynamic target had to be recreated, which is quite complicated. As a consequence the creation of dynamic is done semiautomatic. Whenever the src/documents used to specify the volumes in NISP are changed, the build process will refuse to run until a new build.targets have been created. This is done by executing the command
build -f newbuild.xml
The dynamic targets are targets created for each volume of the NISP. E.g. for volume 1 the following targets exists.
Similar instructions exists for the other volumes.
Additionaly the targets html, pdf, rtf and all are created used to specify that HTML5, PDF, RTF and all (HTML5 and PDF) versions of all the volumes should be created.
The static targets are used to create the directory structure, creating archives of the sources and the tools, debugging etc.
Clean-up targets
These target are usefull to debug aspects of NISP especially to catch semanticl errors in the standards database.
Create documentation pages
Note, The documentation pages are written in Markdown and requires the tool Pandoc, which is not included in the tools package.
These two targets are used to create ofline versions of the NISP
Additional archiving targets are
NISP are released according to the IP CaT Standard Operation Procedures (SOP). The NISP tools implements these procedures in three different build files.
Note that there is actually an addional stage in the publication process, but since the board normaly send out NISP to Nato and nations under silence procedure, which skips this step, otherwise NISP will be published with a draft label.
Last updated on January 17, 2012