aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2017-12-19 10:25:40 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2017-12-19 10:25:40 +0200
commitafc7a07d285e08d905c58dd5978441c155b2f296 (patch)
treea2f4f51ef2747ae3a2aded2637a352ce8ef85934 /Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI
parentad35c9c2df0001157ea13312382f3cdfdad67f06 (diff)
downloadTango-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.cs17
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)
{