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(); }
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)); }