public static void DefineEntryPoint(IEntryPoint e)
        {
            Console.WriteLine("DefineEntryPoint");

            var Target = typeof(Cafebabe);


            var aid = new AIDAttribute.Info(Target);

            var settings = new XSettings
            {
                AppletAID = aid.AppletAID,
                PackageAID = aid.PackageAID,
                ProjectName = typeof(Cafebabe).Name,
                CompilandNamespace0 = typeof(Cafebabe).Namespace.Replace(".", "/"),
                CompilandNamespace1 = typeof(Cafebabe).Namespace,
                CompilandType = typeof(Cafebabe).Name,
                CompilandFullName = typeof(Cafebabe).Namespace + "." + typeof(Cafebabe).Name,
            };

            using (var w = new StringWriter())
            {
                w.WriteLine(":: settings for current project modified at " + DateTime.Now);

                WriteSettings(w, settings);

                e["web/" + SettingsFileName] = w.ToString();
            }


            // C:\util\java_card_kit-2_2_1\doc\en\guides
            // cJDC_Users_Guide.pdf


            //e["release/META-INF/MANIFEST.MF"] =
            //    "Main-Class: " + settings.CompilandFullName + Environment.NewLine +
            //    "Created-By: jsc.sf.net";
        }
Beispiel #2
0
        public static void DefineEntryPoint(IEntryPoint e)
        {
            Console.WriteLine("DefineEntryPoint");

            var Target = typeof(Cafebabe2);


            var aid = new AIDAttribute.Info(Target);

            var settings = new XSettings
            {
                AppletAID           = aid.AppletAID,
                PackageAID          = aid.PackageAID,
                ProjectName         = typeof(Cafebabe2).Name,
                CompilandNamespace0 = typeof(Cafebabe2).Namespace.Replace(".", "/"),
                CompilandNamespace1 = typeof(Cafebabe2).Namespace,
                CompilandType       = typeof(Cafebabe2).Name,
                CompilandFullName   = typeof(Cafebabe2).Namespace + "." + typeof(Cafebabe2).Name,
            };

            using (var w = new StringWriter())
            {
                w.WriteLine(":: settings for current project modified at " + DateTime.Now);

                WriteSettings(w, settings);

                e["web/" + SettingsFileName] = w.ToString();
            }


            // C:\util\java_card_kit-2_2_1\doc\en\guides
            // cJDC_Users_Guide.pdf


            //e["release/META-INF/MANIFEST.MF"] =
            //    "Main-Class: " + settings.CompilandFullName + Environment.NewLine +
            //    "Created-By: jsc.sf.net";
        }