Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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: ...@@ -144,6 +144,8 @@ Examples:
} }
var fileList = args.Except(new[] { "-v", "-vv", "-vvv", "-vvvv", "-V", "-mod", "-eng", "-t" }).ToArray(); 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 no other arguments given: display usage and terminate
if (!args.Any()) { if (!args.Any()) {
...@@ -151,6 +153,7 @@ Examples: ...@@ -151,6 +153,7 @@ Examples:
return 1; return 1;
} }
var stopWatch = new Stopwatch(); var stopWatch = new Stopwatch();
var timings = new Dictionary<string, double>(); var timings = new Dictionary<string, double>();
...@@ -169,7 +172,6 @@ Examples: ...@@ -169,7 +172,6 @@ Examples:
stopWatch.Start(); stopWatch.Start();
var jobFiles = fileList.Where(f => Path.GetExtension(f) == Constants.FileExtensions.VectoJobFile).ToList();
if (!jobFiles.Any()) { if (!jobFiles.Any()) {
Console.ForegroundColor = ConsoleColor.Red; Console.ForegroundColor = ConsoleColor.Red;
......
...@@ -70,6 +70,8 @@ namespace TUGraz.VectoCore.Configuration ...@@ -70,6 +70,8 @@ namespace TUGraz.VectoCore.Configuration
public const string VectoJobFile = ".vecto"; public const string VectoJobFile = ".vecto";
public const string VectoXMLDeclarationFile = ".xml";
public const string EngineDataFile = ".veng"; public const string EngineDataFile = ".veng";
public const string CycleFile = ".vdri"; public const string CycleFile = ".vdri";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment