mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
use our namespace
This commit is contained in:
parent
fe7aa5ea56
commit
a8fae67dc0
@ -9,6 +9,8 @@ using RusticiSoftware.Translator;
|
|||||||
using OldT = RusticiSoftware.Translator.TypeRepTemplate;
|
using OldT = RusticiSoftware.Translator.TypeRepTemplate;
|
||||||
using NewT = RusticiSoftware.Translator.CLR.TypeRepTemplate;
|
using NewT = RusticiSoftware.Translator.CLR.TypeRepTemplate;
|
||||||
|
|
||||||
|
using CS2JConstants = RusticiSoftware.Translator.Utils.Constants;
|
||||||
|
|
||||||
namespace UpdateTxFiles
|
namespace UpdateTxFiles
|
||||||
{
|
{
|
||||||
class MainClass
|
class MainClass
|
||||||
@ -79,7 +81,7 @@ namespace UpdateTxFiles
|
|||||||
{
|
{
|
||||||
Directory.CreateDirectory(xmlFDir);
|
Directory.CreateDirectory(xmlFDir);
|
||||||
}
|
}
|
||||||
XmlSerializer s = new XmlSerializer(txTemplate.GetType());
|
XmlSerializer s = new XmlSerializer(txTemplate.GetType(), CS2JConstants.TranslationTemplateNamespace);
|
||||||
TextWriter w = new StreamWriter(xmlFName);
|
TextWriter w = new StreamWriter(xmlFName);
|
||||||
s.Serialize(w, txTemplate);
|
s.Serialize(w, txTemplate);
|
||||||
w.Close();
|
w.Close();
|
||||||
|
@ -15,11 +15,13 @@ using RusticiSoftware.Translator.Utils;
|
|||||||
using RusticiSoftware.Translator.AntlrUtils;
|
using RusticiSoftware.Translator.AntlrUtils;
|
||||||
using RusticiSoftware.Translator.CLR;
|
using RusticiSoftware.Translator.CLR;
|
||||||
|
|
||||||
|
using CS2JConstants = RusticiSoftware.Translator.Utils.Constants;
|
||||||
|
|
||||||
namespace RusticiSoftware.Translator.CSharp
|
namespace RusticiSoftware.Translator.CSharp
|
||||||
{
|
{
|
||||||
class CS2J
|
class CS2J
|
||||||
{
|
{
|
||||||
private const string VERSION = "2009.1.1.x";
|
private const string VERSION = "2011.1.1.x";
|
||||||
private static DirectoryHT<TypeRepTemplate> AppEnv { get; set; }
|
private static DirectoryHT<TypeRepTemplate> AppEnv { get; set; }
|
||||||
private static CS2JSettings cfg = new CS2JSettings();
|
private static CS2JSettings cfg = new CS2JSettings();
|
||||||
private static StringTemplateGroup templates = null;
|
private static StringTemplateGroup templates = null;
|
||||||
@ -56,7 +58,7 @@ namespace RusticiSoftware.Translator.CSharp
|
|||||||
private static void addDirectories(IList<string> strs, string rawStr) {
|
private static void addDirectories(IList<string> strs, string rawStr) {
|
||||||
string[] argDirs = rawStr.Split(';');
|
string[] argDirs = rawStr.Split(';');
|
||||||
for (int i = 0; i < argDirs.Length; i++)
|
for (int i = 0; i < argDirs.Length; i++)
|
||||||
strs.Add(Path.GetFullPath(argDirs[i]).ToLower());
|
strs.Add(Path.GetFullPath(argDirs[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void CS2JMain(string[] args)
|
public static void CS2JMain(string[] args)
|
||||||
@ -131,7 +133,7 @@ namespace RusticiSoftware.Translator.CSharp
|
|||||||
{
|
{
|
||||||
Directory.CreateDirectory(xmlFDir);
|
Directory.CreateDirectory(xmlFDir);
|
||||||
}
|
}
|
||||||
XmlSerializer s = new XmlSerializer(de.Value.GetType());
|
XmlSerializer s = new XmlSerializer(de.Value.GetType(), CS2JConstants.TranslationTemplateNamespace);
|
||||||
TextWriter w = new StreamWriter(xmlFName);
|
TextWriter w = new StreamWriter(xmlFName);
|
||||||
s.Serialize(w, de.Value);
|
s.Serialize(w, de.Value);
|
||||||
w.Close();
|
w.Close();
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<Commandlineparameters>-warnings -debug 10 -dumpxmls -xmldir=/tmp/xml/se -odir=/tmp/java/se /Users/keving/svnrepos/ScormEngineNet/src/app/ScormEngine.Core/DataHelp/Db2OleDataHelper.cs</Commandlineparameters>
|
<Commandlineparameters>-warnings -debug 10 -netdir=/Users/keving/gitrepos/cs2j/CS2JLibrary/NetFramework/ -dumpxmls -xmldir=/tmp/xml/se -odir=/tmp/java/se /Users/keving/svnrepos/ScormEngineNet/src/app/ScormEngine.Core/DataHelp/Db2OleDataHelper.cs</Commandlineparameters>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user