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

Revert "Enable Trial"

This commit is contained in:
Kevin Glynn 2011-03-24 12:41:58 +01:00
parent a41b6ad0d8
commit 983f0623b1
2 changed files with 31 additions and 26 deletions

View File

@ -340,9 +340,12 @@ namespace Twiglet.CS2J.Translator
public static void addNetTranslation(string fullName)
{
// Suchk in translation file
// Suck in translation file
Stream txStream = new FileStream(fullName, FileMode.Open, FileAccess.Read);
if (numLines < numLines - 1)
{
// TRIAL ONLY
// Create a new XML document.
XmlDocument xmlDoc = new XmlDocument();
@ -366,6 +369,7 @@ namespace Twiglet.CS2J.Translator
}
txStream.Seek(0, SeekOrigin.Begin);
}
TypeRepTemplate t = TypeRepTemplate.newInstance(txStream);
// Fullname has form: <path>/<key>.xml
AppEnv[t.TypeName+(t.TypeParams != null && t.TypeParams.Length > 0 ? "'" + t.TypeParams.Length.ToString() : "")] = t;
@ -398,6 +402,9 @@ namespace Twiglet.CS2J.Translator
}
private static string limit(string inp) {
if (numLines > numLines - 1)
return inp;
// TRIAL ONLY
String[] lines = inp.Split(newLines, numLines+1, StringSplitOptions.None);
if (lines.Length <= numLines) {
return inp;

View File

@ -19,8 +19,6 @@ itsmine(now, includeDate) ::= <<
//
// This file was translated from C# to Java by CS2J (http://www.cs2j.com).
//
// This code is to be used for evaluation of the CS2J tool ONLY.
//
// For more information about CS2J please contact cs2jcontact@scorm.com
<if(includeDate)>
//