Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit f0e29b7a authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

command line: accept xml files

parent 03048eb1
No related branches found
No related tags found
No related merge requests found
......@@ -144,6 +144,8 @@ Examples:
}
var fileList = args.Except(new[] { "-v", "-vv", "-vvv", "-vvvv", "-V", "-mod", "-eng", "-t" }).ToArray();
var jobFiles = fileList.Where(f => Path.GetExtension(f) == Constants.FileExtensions.VectoJobFile).ToList();
var xmlFiles = fileList.Where(f => Path.GetExtension(f) == Constants.FileExtensions.VectoXMLDeclarationFile);
// if no other arguments given: display usage and terminate
if (!args.Any()) {
......@@ -151,6 +153,7 @@ Examples:
return 1;
}
var stopWatch = new Stopwatch();
var timings = new Dictionary<string, double>();
......@@ -169,8 +172,7 @@ Examples:
stopWatch.Start();
var jobFiles = fileList.Where(f => Path.GetExtension(f) == Constants.FileExtensions.VectoJobFile).ToList();
if (!jobFiles.Any()) {
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(@"No Job files found. Please restart the application with a valid '.vecto' file.");
......
......@@ -70,6 +70,8 @@ namespace TUGraz.VectoCore.Configuration
public const string VectoJobFile = ".vecto";
public const string VectoXMLDeclarationFile = ".xml";
public const string EngineDataFile = ".veng";
public const string CycleFile = ".vdri";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment