01: /*
02: * AbstractFileCompiler.java
03: *
04: * Copyright (c) 2000 Walt Disney Internet Group. All Rights Reserved.
05: *
06: * Original author: Brian S O'Neill
07: *
08: * $Workfile:: AbstractFileCompiler.java $
09: * $Author:: Briano $
10: * $Revision:: 2 $
11: * $Date:: 01/02/06 11:45a $
12: */
13:
14: package com.go.tea.util;
15:
16: import java.io.IOException;
17: import java.util.Collection;
18: import java.util.TreeSet;
19: import java.util.Map;
20: import com.go.tea.compiler.Compiler;
21:
22: /******************************************************************************
23: *
24: * @author Brian S O'Neill
25: * @version
26: * <!--$$Revision:--> 2 <!-- $-->, <!--$$JustDate:--> 01/02/06 <!-- $-->
27: */
28: public abstract class AbstractFileCompiler extends Compiler {
29: protected AbstractFileCompiler() {
30: super ();
31: }
32:
33: protected AbstractFileCompiler(Map parseTreeMap) {
34: super (parseTreeMap);
35: }
36:
37: /**
38: * Recursively compiles all files in the source directory.
39: *
40: * @return The names of all the compiled sources
41: */
42: public String[] compileAll() throws IOException {
43: return compile(getAllTemplateNames());
44: }
45:
46: /**
47: * Returns all sources (template names) available from the source
48: * directory and in all sub-directories.
49: */
50: public abstract String[] getAllTemplateNames() throws IOException;
51: }
|