Commit 70a74bab authored by Талибов Сэрхан Махмад Оглы's avatar Талибов Сэрхан Махмад Оглы
Browse files

now renaming is more precise too

1 merge request!12 of 4 services are donwe
Showing with 18 additions and 1 deletion
+18 -1
......@@ -2,7 +2,7 @@
"profiles": {
"Broker": {
"commandName": "Project",
"commandLineArgs": "--project -l D:/kal -n kal -e"
"commandLineArgs": "--project -l D:/kal -n ultrakal -r superkal"
}
}
}
\ No newline at end of file
......@@ -57,8 +57,12 @@ namespace HDLNoCGen
string metadata_location = $"{location}/{name}_metadata.json";
string new_metadata_location = $"{location}/{new_name}_metadata.json";
string graph_location = $"{location}/{name}_graph_object_serialized.json";
string new_graph_location = $"{location}/{new_name}_graph_object_serialized.json";
string verilog_location = $"{location}/{name}_NoC_description";
string new_verilog_location = $"{location}/{new_name}_NoC_description";
switch (action)
{
......@@ -108,6 +112,19 @@ namespace HDLNoCGen
StreamWriter sw = new StreamWriter(new_metadata_location);
sw.Write(json);
sw.Close();
if (File.Exists(graph_location))
{
File.Move(graph_location, new_graph_location);
}
if (File.Exists(metadata_location))
{
File.Move(metadata_location, new_metadata_location);
}
if (Directory.Exists(verilog_location))
{
Directory.Move(verilog_location, new_verilog_location);
}
}
catch (Exception e)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment