diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-19 10:25:40 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-19 10:25:40 +0200 |
| commit | afc7a07d285e08d905c58dd5978441c155b2f296 (patch) | |
| tree | a2f4f51ef2747ae3a2aded2637a352ce8ef85934 /Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI | |
| parent | ad35c9c2df0001157ea13312382f3cdfdad67f06 (diff) | |
| download | Tango-afc7a07d285e08d905c58dd5978441c155b2f296.tar.gz Tango-afc7a07d285e08d905c58dd5978441c155b2f296.zip | |
MERGE.
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/Program.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/Program.cs b/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/Program.cs index 742b1428d..1b9b4c96a 100644 --- a/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/Program.cs +++ b/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/Program.cs @@ -15,23 +15,26 @@ namespace Tango.DBObservablesGenerator.CLI { try { - if (args == null || args.Length == 0) + if (args == null || args.Length < 2) { ExitError("Invalid arguments!"); } String targetPath = args[0]; + String language = args[1]; ObservablesGenerator generator = new ObservablesGenerator(); - foreach (var file in Directory.GetFiles(targetPath)) - { - PathHelper.TryDeleteFile(file); - } - try { - generator.Generate(targetPath); + if (language.ToLower() == "-csharp") + { + generator.GenerateCSharp(targetPath); + } + else if (language.ToLower() == "-java") + { + generator.GenerateJava(targetPath); + } } catch (Exception ex) { |
