Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.aop.annotation.compiler;
 /*    */ 
 /*    */ import java.io.PrintStream;
 /*    */ 
 /*    */ public class AnnotationCompiler
 /*    */ {
 /*    */   public static void main(String[] args)
 /*    */     throws Exception
 /*    */   {
/* 37 */     AnnotationCompiler c = new AnnotationCompiler();
/* 38 */     c.compile(args);
/*    */   }
/*    */ 
/*    */   public void usage()
/*    */   {
/* 43 */     System.err.println("Usage: annotationc [-bytecode] [-xml -o <output xml file> ] <files>+");
/*    */   }
/*    */ 
/*    */   public void compile(String[] argsthrows Exception
/*    */   {
/* 48 */     if (args.length == 0)
/*    */     {
/* 50 */       usage();
/* 51 */       System.exit(1);
/* 52 */       return;
/*    */     }
/* 54 */     for (int i = 0; i < args.length; i++)
/*    */     {
/* 56 */       if (args[i].equals("-bytecode"))
/*    */       {
/* 58 */         ByteCodeAnnotationCompiler compiler = new ByteCodeAnnotationCompiler();
/*    */         try
/*    */         {
/* 61 */           compiler.compile(args);
/*    */         }
/*    */         catch (Exception e)
/*    */         {
/* 65 */           e.printStackTrace(System.out);
/* 66 */           throw e;
/*    */         }
/* 68 */         return;
/*    */       }
/* 70 */       if (!args[i].equals("-xml"))
/*    */         continue;
/* 72 */       XmlAnnotationCompiler compiler = new XmlAnnotationCompiler();
/* 73 */       compiler.compile(args);
/* 74 */       return;
/*    */     }
/*    */ 
/* 77 */     usage();
/* 78 */     System.exit(1);
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.aop.annotation.compiler.AnnotationCompiler
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X