NAnt.DotNet.Tasks.LicenseTask.Initialize C# (CSharp) Method

Initialize() protected method

Initializes the LicenseTask class.
protected Initialize ( ) : void
return void
        protected override void Initialize()
        {
            // check if target was specified
            // TODO: remove this check after NAnt 0.85 as this should be handled
            //       by setting Required to "true"
            if (Target == null) {
                throw new BuildException(string.Format(CultureInfo.InvariantCulture,
                    ResourceUtils.GetString("NA2013"), Name), Location);
            }

            // check if input file exists
            if (!InputFile.Exists) {
                throw new BuildException(string.Format(CultureInfo.InvariantCulture,
                    ResourceUtils.GetString("NA2014"), InputFile.FullName),
                    Location);
            }
        }