コード例 #1
0
 public static void Main(string[] args)
 {
     Log.Debug("version: " + GetVersion());
     System.Console.Out.WriteLine("Hadoop " + GetVersion());
     System.Console.Out.WriteLine("Subversion " + GetUrl() + " -r " + GetRevision());
     System.Console.Out.WriteLine("Compiled by " + GetUser() + " on " + GetDate());
     System.Console.Out.WriteLine("Compiled with protoc " + GetProtocVersion());
     System.Console.Out.WriteLine("From source with checksum " + GetSrcChecksum());
     System.Console.Out.WriteLine("This command was run using " + ClassUtil.FindContainingJar
                                      (typeof(Org.Apache.Hadoop.Util.VersionInfo)));
 }
コード例 #2
0
ファイル: TestClassUtil.cs プロジェクト: orf53975/hadoop.net
        public virtual void TestFindContainingJar()
        {
            string containingJar = ClassUtil.FindContainingJar(typeof(Logger));

            NUnit.Framework.Assert.IsNotNull("Containing jar not found for Logger", containingJar
                                             );
            FilePath jarFile = new FilePath(containingJar);

            Assert.True("Containing jar does not exist on file system", jarFile
                        .Exists());
            Assert.True("Incorrect jar file" + containingJar, jarFile.GetName
                            ().Matches("log4j.+[.]jar"));
        }