Example #1
0
        private void RunRestoreCommand(string packagePath, string workingDirectory)
        {
            string profilesToExclude = string.Join(",", MavenProfileToExclude);

            string commandLineArgs = string.Concat("/c mvn dependency:copy-dependencies -P ", profilesToExclude, " -DoutputDirectory=", packagePath);

            ConsoleLogger.WriteLine(new LogEntry
            {
                Phase   = StepName,
                Level   = LogLevel.Info,
                Message = $" Restoring dependency under directory '{workingDirectory}'..."
            });

            ProcessUtility.Execute("cmd.exe", commandLineArgs, workingDirectory);
        }
Example #2
0
        public Task RunAsync(ConfigModel config)
        {
            return(Task.Run(() =>
            {
                Guard.ArgumentNotNullOrEmpty(RepositoryPath, nameof(RepositoryPath));

                _config = config;

                GenerateFileList(RepositoryPath);

                var options = GenerateOptions(RepositoryPath, ExcludePackages);
                var commandLineArgs = $"{options} @{Constants.Files}";

                ConsoleLogger.WriteLine(new LogEntry
                {
                    Phase = StepName,
                    Level = LogLevel.Info,
                    Message = $" Invoking Javadoc '{RepositoryPath}'..."
                });

                ProcessUtility.Execute("javadoc.exe", commandLineArgs, RepositoryPath);
            }
                            ));
        }