diff --git a/CSharpTranslator/antlr3/CSharpTranslator.sln b/CSharpTranslator/antlr3/CSharpTranslator.sln index 0a48a44..bd167b3 100644 --- a/CSharpTranslator/antlr3/CSharpTranslator.sln +++ b/CSharpTranslator/antlr3/CSharpTranslator.sln @@ -1,16 +1,31 @@  Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual C# Express 2010 +# Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cs2j", "src\cs2j\cs2j.csproj", "{CE961AC5-C8D4-41B3-AAF3-23FA8FAEE8AD}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Antlr3.Runtime", "src\Antlr.Runtime\Antlr3.Runtime.csproj", "{CF15D0D5-BE72-4F98-B70F-229ABA1DF0E8}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{79994BC6-E233-4F7F-B9E1-A137B34B3F99}" + ProjectSection(SolutionItems) = preProject + build.properties = build.properties + build.xml = build.xml + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cs2jTest", "cs2jTest\cs2jTest.csproj", "{28A229C9-2F22-4384-B224-61A5C67638CE}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU + Default|Any CPU = Default|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {28A229C9-2F22-4384-B224-61A5C67638CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28A229C9-2F22-4384-B224-61A5C67638CE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28A229C9-2F22-4384-B224-61A5C67638CE}.Default|Any CPU.ActiveCfg = Debug|Any CPU + {28A229C9-2F22-4384-B224-61A5C67638CE}.Default|Any CPU.Build.0 = Debug|Any CPU + {28A229C9-2F22-4384-B224-61A5C67638CE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28A229C9-2F22-4384-B224-61A5C67638CE}.Release|Any CPU.Build.0 = Release|Any CPU {CE961AC5-C8D4-41B3-AAF3-23FA8FAEE8AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CE961AC5-C8D4-41B3-AAF3-23FA8FAEE8AD}.Debug|Any CPU.Build.0 = Debug|Any CPU {CE961AC5-C8D4-41B3-AAF3-23FA8FAEE8AD}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -20,6 +35,11 @@ Global {CF15D0D5-BE72-4F98-B70F-229ABA1DF0E8}.Release|Any CPU.ActiveCfg = Release|Any CPU {CF15D0D5-BE72-4F98-B70F-229ABA1DF0E8}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection + GlobalSection(NestedProjects) = preSolution + EndGlobalSection + GlobalSection(MonoDevelopProperties) = preSolution + StartupItem = src\cs2j\cs2j.csproj + EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection diff --git a/CSharpTranslator/antlr3/CSharpTranslator.userprefs b/CSharpTranslator/antlr3/CSharpTranslator.userprefs index 7ed2ec8..db22c79 100644 --- a/CSharpTranslator/antlr3/CSharpTranslator.userprefs +++ b/CSharpTranslator/antlr3/CSharpTranslator.userprefs @@ -1,27 +1,84 @@  - + - + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CSharpTranslator/antlr3/build.properties b/CSharpTranslator/antlr3/build.properties index 184b7e6..1815b76 100644 --- a/CSharpTranslator/antlr3/build.properties +++ b/CSharpTranslator/antlr3/build.properties @@ -1,51 +1,45 @@ -build.dir=${basedir}/build -svntx.build.dir=${build.dir}/svntx -cs2jtx.build.dir=${build.dir}/cs2jtx -cs2jtx.bin.dir=${cs2jtx.build.dir}/Translator/bin/Debug -svntxexe.svnwc.dir=${basedir}/ +## build.properties for Production -## WARNING: If these boolean properties are shown through the launch dialog then -## we must deal with value == false -is.rebuild.cs2j=false -is.cs2j.svnwc=false -is.commit.javacode=false +build.dir=${basedir}/../build -svn.commit.msg.java=Auto-committed following cs2j translation -svn.commit.removed.msg.java=Auto-committed removed files following cs2j translation - -svn.repo=https://svn.rusticisoftware.com/svn/projects -csharp.project=Products/ScormEngineNet -csharp.project.branch=trunk -csharp.tx.sub.dir=src/app/ScormEngine.Core -csharp.project.full=${csharp.project}/${csharp.project.branch} -csharpcode.branch.url=${svn.repo}/${csharp.project.full}/${csharp.tx.sub.dir} - -csharptx.dir=ScormEngine.Core -csharpcode.dir=${svntx.build.dir}/${csharptx.dir} - -csharpcode.tx.dir=${svntx.build.dir}/${csharptx.dir}/Logic - -java.project=Products/ScormEngineJava -java.project.branch=${csharp.project.branch} -java.tx.sub.dir=RusticiSoftware.ScormContentPlayer.Logic/src -java.project.full=${java.project}/${java.project.branch} -javacode.branch.url=${svn.repo}/${java.project.full}/${java.tx.sub.dir} - -javatx.dir=${java.tx.sub.dir} -javacode.svnwc.dir=${svntx.build.dir}/${javatx.dir} -javacode.old.svnwc.dir=${svntx.build.dir}/OldJava/${javatx.dir} - -cs2j.project=Products/CS2JLibrary -#cs2j.project.branch=${csharp.project.branch} -cs2j.project.branch=trunk -cs2j.branch.url=${svn.repo}/${cs2j.project}/${cs2j.project.branch}/ - -cs2j.dir=${svntx.build.dir}/CS2JLibrary - -cheats.dir=${svntx.build.dir}/Cheats - -svn.exe=svn - - -builder.ant.lib=${basedir}/jar +builder.ant.lib=${basedir}/lib builder.ant.dll=${basedir}/dll + + +## For Building cs2j + +# Location of .Net on this machine (this is standard .Net 2.0 location) +windows.dotnet.release=v2.0.50727 +windows.dotnet.dir=C:/WINDOWS/Microsoft.NET/Framework/${windows.dotnet.release} + +# Location of antlr dlls on this machine +antlr.dll.dir=${builder.ant.dll} + +cs2jtx.src.dir=${basedir}/src/cs2j +cs2jtx.bin.dir=${cs2jtx.src.dir}/bin/Debug + +cs2jtx.build.dir=${build.dir}/cs2jtx + + + +## For running cs2j + +cs2jtx.exe= ${cs2jtx.bin.dir}/cs2j.exe +#cs2jtx.exe= ${basedir}/../bin/Translator.exe + +# by default, sibling directory to Translator +cs2j.proj.dir=${basedir}/../../CS2JLibrary +cs2j.dir=${basedir}/../../CS2JLibrary/NetTranslations +cheats.dir=${basedir}/../../Cheats + +# Directories to build into, against + +# If no cs.app.dir set make it equal to cs.tx.dir +cs.app.dir=${cs.tx.dir} + +# Object of the translation, by default in the build area +java.output.dir=${build.dir}/javaproject/src + +cs2j.dist.dir=${build.dir}/cs2j/zip + + diff --git a/CSharpTranslator/antlr3/build.xml b/CSharpTranslator/antlr3/build.xml index 3badacb..aafdd3f 100644 --- a/CSharpTranslator/antlr3/build.xml +++ b/CSharpTranslator/antlr3/build.xml @@ -1,15 +1,11 @@ - + - This script automates translation of a C# svn branch to a Java branch - - - - - - + This script builds the cs2j translator and translates C# code + + @@ -17,193 +13,254 @@ - - - - - - + + + + + + + + + + + +