コード例 #1
0
        public void Create_DotNetDll_Using_IKVM()
        {
            "Creating Groovy .NET Dll using IKVM: {0}".info();
            Groovy_DotNet_Folder.createDir();
            var groovyJar = this.Install_Dir.pathCombine(@"groovy-{0}\embeddable\groovy-all-{0}.jar".format(Groovy_Version));
            //"Groovy Jar: {0} {1}".info(groovyJar, groovyJar.fileExists());

            var apiIKVM = new API_IKVM();

            var result = apiIKVM.convertJarFileIntoDotNetAssembly(groovyJar, Groovy_DotNet_Folder);

            "Result: {0}".info(result);
        }
コード例 #2
0
        public Groovy_Installer()
        {
            Groovy_Version = "2.1.6";
            config("Groovy",
                   "http://dist.groovy.codehaus.org/distributions/groovy-binary-{0}.zip".format(Groovy_Version).uri(),
                   @"groovy-{0}\bin\groovyConsole.bat".format(Groovy_Version));
            installFromZip_Web();

            Groovy_DotNet_Folder = this.Install_Dir.pathCombine("DotNet_IKVM");
            Groovy_DotNet_Dll    = Groovy_DotNet_Folder.pathCombine("groovy-all-{0}.dll".format(Groovy_Version));

            if (Groovy_DotNet_Folder.dirExists().isFalse() || Groovy_DotNet_Dll.fileExists().isFalse())
            {
                Create_DotNetDll_Using_IKVM();
            }
            if (Groovy_DotNet_Dll.fileExists())
            {
                "Groovy DLL is ready for use: {0}".debug(Groovy_DotNet_Dll);
            }
            else
            {
                "Could not find Groovy DLL: {0}".error(Groovy_DotNet_Dll);
            }
        }