| Line 10... |
Line 10... |
| 10 |
import java.io.FileOutputStream;
|
10 |
import java.io.FileOutputStream;
|
| 11 |
import java.io.OutputStreamWriter;
|
11 |
import java.io.OutputStreamWriter;
|
| 12 |
import java.util.HashMap;
|
12 |
import java.util.HashMap;
|
| 13 |
import java.util.LinkedHashMap;
|
13 |
import java.util.LinkedHashMap;
|
| 14 |
import java.util.Map;
|
14 |
import java.util.Map;
|
| - |
|
15 |
import java.util.TreeMap;
|
| 15 |
|
16 |
|
| 16 |
import org.apache.velocity.Template;
|
17 |
import org.apache.velocity.Template;
|
| 17 |
import org.apache.velocity.VelocityContext;
|
18 |
import org.apache.velocity.VelocityContext;
|
| 18 |
import org.apache.velocity.app.Velocity;
|
19 |
import org.apache.velocity.app.Velocity;
|
| 19 |
|
20 |
|
| Line 35... |
Line 36... |
| 35 |
try {
|
36 |
try {
|
| 36 |
Map<Long, Helpdoc> helpdocs = CreationUtils.getHelpdocs();
|
37 |
Map<Long, Helpdoc> helpdocs = CreationUtils.getHelpdocs();
|
| 37 |
VelocityContext context = new VelocityContext();
|
38 |
VelocityContext context = new VelocityContext();
|
| 38 |
String templateFile = Utils.VTL_SRC_PATH + "glossary.vm";
|
39 |
String templateFile = Utils.VTL_SRC_PATH + "glossary.vm";
|
| 39 |
Map<String, Map<String, String>> params = new LinkedHashMap<String, Map<String,String>>();
|
40 |
Map<String, Map<String, String>> params = new LinkedHashMap<String, Map<String,String>>();
|
| 40 |
Map<String, String> section1 = new HashMap<String, String>();
|
41 |
Map<String, String> section1 = new TreeMap<String, String>();
|
| 41 |
Map<String, String> section2 = new HashMap<String, String>();
|
42 |
Map<String, String> section2 = new TreeMap<String, String>();
|
| 42 |
Map<String, String> section3 = new HashMap<String, String>();
|
43 |
Map<String, String> section3 = new TreeMap<String, String>();
|
| 43 |
Map<String, String> section4 = new HashMap<String, String>();
|
44 |
Map<String, String> section4 = new TreeMap<String, String>();
|
| 44 |
params.put("0 - 9", section1);
|
45 |
params.put("0 - 9", section1);
|
| 45 |
params.put("A - H", section2);
|
46 |
params.put("A - H", section2);
|
| 46 |
params.put("I - P", section3);
|
47 |
params.put("I - P", section3);
|
| 47 |
params.put("Q - Z", section4);
|
48 |
params.put("Q - Z", section4);
|
| 48 |
for(Helpdoc helpdoc: helpdocs.values()){
|
49 |
for(Helpdoc helpdoc: helpdocs.values()){
|