1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

write output files, don't miss out typereptemplate upgrade for interfaces and children

This commit is contained in:
Kevin Glynn 2011-01-04 14:18:51 +01:00
parent 186cc6aaf8
commit 564e09ff14
2 changed files with 9 additions and 9 deletions

View File

@ -75,14 +75,14 @@ namespace UpdateTxFiles
String xmlFDir = Path.GetDirectoryName(xmlFName); String xmlFDir = Path.GetDirectoryName(xmlFName);
Console.WriteLine (xmlFName + ": " + de.Value.Java); Console.WriteLine (xmlFName + ": " + de.Value.Java);
// if (!Directory.Exists(xmlFDir)) if (!Directory.Exists(xmlFDir))
// { {
// Directory.CreateDirectory(xmlFDir); Directory.CreateDirectory(xmlFDir);
// } }
// XmlSerializer s = new XmlSerializer(txTemplate.GetType()); XmlSerializer s = new XmlSerializer(txTemplate.GetType());
// TextWriter w = new StreamWriter(xmlFName); TextWriter w = new StreamWriter(xmlFName);
// s.Serialize(w, txTemplate); s.Serialize(w, txTemplate);
// w.Close(); w.Close();
} }
} }
else else

View File

@ -106,7 +106,7 @@ namespace UpdateTxFiles
public void upgrade(OldTSpace.TypeRepTemplate inV, NewTSpace.InterfaceRepTemplate outV) { public void upgrade(OldTSpace.TypeRepTemplate inV, NewTSpace.InterfaceRepTemplate outV) {
upgrade(inV as OldTSpace.TranslationBase, outV as NewTSpace.TranslationBase); upgrade(inV as OldTSpace.TypeRepTemplate, outV as NewTSpace.TypeRepTemplate);
outV.Inherits = inV.Inherits; outV.Inherits = inV.Inherits;
if (!String.IsNullOrEmpty(inV.Java)) if (!String.IsNullOrEmpty(inV.Java))