Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/arranger/jarl/test/JarlSPTest.java


1   package com.arranger.jarl.test;
2   
3   import junit.framework.TestCase;
4   
5   import java.io.File;
6   
7   import com.arranger.jarl.script.jarlsp.JarlSPCompiler;
8   import com.arranger.jarl.base.Context;
9   import com.arranger.jarl.base.IContext;
10  
11  /**
12   * JarlSPTest created on Mar 5, 2003
13   */
14  public class JarlSPTest extends TestCase {
15  
16      public void testISP() throws Exception {
17          IContext context = new Context();
18          String file = "src/com/arranger/jarl/test/script.jarlml";
19          JarlSPCompiler compiler = new JarlSPCompiler();
20          compiler.setClassOutput("C:/source/jarl/build/classes");
21          String parsedFile = compiler.parse(new File(file), context);
22          compiler.compile(new File(parsedFile));
23          compiler.execute(parsedFile, context);
24      }
25  }
26  
27  
28  
29