de.dokutransdata.nsd2ltx
Class Nsd2LtxProcess

java.lang.Object
  extended by de.dokutransdata.nsd2ltx.Nsd2LtxProcess

public class Nsd2LtxProcess
extends java.lang.Object

This class is responsible for forking nsd2ltx process. And capturing output from the same.

Since:
Ant-Nsd2Ltx 1.3.1
Version:
$Revision: 1.1.2.3 $

Field Summary
static java.lang.String NSD_TEMP
          Name of the temporary file to get the version of nsd2ltx installed on system.
 
Constructor Summary
Nsd2LtxProcess()
           
 
Method Summary
 void checkVersion(java.lang.String versionCompatible)
          This method ensures that we have a supported version of Nsd2Ltx in the environment.
 void executeNsd2Ltx(java.util.List args)
           
 void setNsd2LtxPath(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NSD_TEMP

public static final java.lang.String NSD_TEMP
Name of the temporary file to get the version of nsd2ltx installed on system. ${user.home} used as temporary file.

Constructor Detail

Nsd2LtxProcess

public Nsd2LtxProcess()
Method Detail

setNsd2LtxPath

public void setNsd2LtxPath(java.lang.String path)

checkVersion

public final void checkVersion(java.lang.String versionCompatible)
This method ensures that we have a supported version of Nsd2Ltx in the environment. This Ant task knows many of the attributes in the minimum version. Attempts to specify items that the current Nsd2Ltx does not understand will be mysteriously ignored (Ant user perspective). Therefore, a check is made to highlight any potential version incompatibilities.
Ideally, each Ant task attribute would be version aware and collectively indicate which attributes are not supported by the underlying Nsd2Ltx executable. (But the code is not there yet.)
\test the Ant task should fail if the detected Nsd2Ltx version is too old.
\test the Ant task should whine, but not fail if the user claims ignoreVersion="true" and the detected Nsd2Ltx version is too old.
\test the Ant task should not fail if the detected Nsd2Ltx version is minimally supported.


executeNsd2Ltx

public void executeNsd2Ltx(java.util.List args)