示例#1
0
        public ParentProject(string pomFilePath)
        {
            this._pomFilePath = pomFilePath;
            PomWrapper        = new PomWrapper(pomFilePath);

            var fileInfo = new FileInfo(pomFilePath);

            if (fileInfo.Directory != null)
            {
                _pomFolder = fileInfo.Directory.FullName;
            }

            InitModules();
        }
示例#2
0
文件: PomReader.cs 项目: asek-ll/tst
        public async Task <int> RunMavenWithArgs(PomWrapper pomWrapper, string args)
        {
            if (pomWrapper.PomFileInfo.Directory == null)
            {
                return(-1);
            }

            var proc = new Process
            {
                StartInfo = new ProcessStartInfo
                {
                    FileName  = _mavenExecutable,
                    Arguments = args,
                    //                    UseShellExecute = false,
                    //                    RedirectStandardOutput = true,
                    //                    CreateNoWindow = true,
                    WorkingDirectory = pomWrapper.PomFileInfo.Directory.FullName
                }
            };

            return(await RunProcessAsync(proc));
        }