Пример #1
0
            protected override void Construct()
            {
                _targetDir = _arguments[0];
                if (_targetDir.Steps.Length == 0)
                {
                    throw new ApplicationException(String.Format("Can't create directory '{0}'. Name is missing.", _targetDir.Arg));
                }

                _targetDir.SeparateLastStep(out _newSubDir, ArgInfo.TargetType.Dir, ArgInfo.TargetType.Dir);
            }
Пример #2
0
            protected override void Construct()
            {
                _pathWhereToMake = _arguments[0];
                if (_pathWhereToMake.Steps.Length == 0)
                {
                    throw new ApplicationException(String.Format("Can't create a file '{0}'. Name is missing.", _pathWhereToMake.Arg));
                }

                _pathWhereToMake.SeparateLastStep(out _fileName, ArgInfo.TargetType.Dir, ArgInfo.TargetType.File);
            }