示例#1
0
文件: Commands.cs 项目: alexf2/CQG
            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
文件: Commands.cs 项目: alexf2/CQG
            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);
            }