Пример #1
0
        public static string java(string className, params string[] args)
        {
#if CF || SILVERLIGHT
            return(null);
#else
            return(IOServices.Exec(WorkspaceServices.JavaPath(),
                                   "-cp",
                                   IOServices.JoinQuotedArgs(
                                       Path.PathSeparator,
                                       JavaTempPath,
                                       Db4oCoreJarPath(),
                                       Db4oJarPath("-optional"),
                                       Db4oJarPath("-cs")),
                                   className,
                                   IOServices.JoinQuotedArgs(args)));
#endif
        }
Пример #2
0
        public static string javac(string srcFile)
        {
#if CF || SILVERLIGHT
            return(null);
#else
            Assert.IsTrue(File.Exists(JavaServices.Db4oCoreJarPath()), string.Format("'{0}' not found. Make sure the jar was built before running this test.", JavaServices.Db4oCoreJarPath()));
            Assert.IsTrue(File.Exists(JavaServices.Db4oJarPath("-optional")), string.Format("'{0}' not found. Make sure the jar was built before running this test.", JavaServices.Db4oJarPath("-optional")));
            Assert.IsTrue(File.Exists(JavaServices.Db4oJarPath("-cs")), string.Format("'{0}' not found. Make sure the jar was built before running this test.", JavaServices.Db4oJarPath("-cs")));
            return(IOServices.Exec(WorkspaceServices.JavacPath(),
                                   "-classpath",
                                   IOServices.JoinQuotedArgs(
                                       Path.PathSeparator,
                                       Db4oCoreJarPath(),
                                       Db4oJarPath("-optional"),
                                       Db4oJarPath("-cs")),
                                   srcFile));
#endif
        }