File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 22
22
import java .io .OutputStreamWriter ;
23
23
import java .net .URI ;
24
24
import java .net .URISyntaxException ;
25
- import java .text .SimpleDateFormat ;
26
- import java .util .Date ;
27
25
import java .util .HashMap ;
28
26
import java .util .Iterator ;
29
27
@@ -90,10 +88,8 @@ public static synchronized void generatesIndex(boolean servlet) {
90
88
*/
91
89
Velocity .setProperty (Velocity .FILE_RESOURCE_LOADER_PATH , path );
92
90
Velocity .addProperty (Velocity .FILE_RESOURCE_LOADER_PATH , path + "../../../../" );
93
- Velocity .setProperty (Velocity .RUNTIME_LOG ,
94
- "velocity-" + new SimpleDateFormat ("yyyy-MM-dd_HHmm" ).format (new Date ()) + ".log" );
95
-
96
- Velocity .setProperty (Velocity .RUNTIME_LOG_LOGSYSTEM_CLASS , "org.apache.velocity.runtime.log.AvalonLogChute" );
91
+ // Velocity.setProperty(Velocity.RUNTIME_LOG_NAME,
92
+ // "velocity-" + new SimpleDateFormat("yyyy-MM-dd_HHmm").format(new Date()) + ".log");
97
93
Velocity .init ();
98
94
if (!new File (path + template_name ).exists ()) {
99
95
template_name = template_name ;
Original file line number Diff line number Diff line change 22
22
import java .io .OutputStreamWriter ;
23
23
import java .net .URI ;
24
24
import java .net .URISyntaxException ;
25
- import java .text .SimpleDateFormat ;
26
25
import java .util .ArrayList ;
27
26
import java .util .Collections ;
28
27
import java .util .Comparator ;
29
- import java .util .Date ;
30
28
import java .util .HashMap ;
31
29
import java .util .Iterator ;
32
30
import java .util .Locale ;
@@ -79,10 +77,10 @@ public static synchronized void generateTable() {
79
77
path = new URI (path ).getPath ();
80
78
Velocity .setProperty (Velocity .FILE_RESOURCE_LOADER_PATH , path );
81
79
Velocity .addProperty (Velocity .FILE_RESOURCE_LOADER_PATH , path + "../css/" );
82
- Velocity .setProperty (Velocity .RUNTIME_LOG ,
83
- "velocity-" + new SimpleDateFormat ("yyyy-MM-dd_HHmm" ).format (new Date ()) + ".log" );
84
-
85
- Velocity .setProperty (Velocity .RUNTIME_LOG_LOGSYSTEM_CLASS , "org.apache.velocity.runtime.log.AvalonLogChute" );
80
+ // Velocity.setProperty(Velocity.RUNTIME_LOG,
81
+ // "velocity-" + new SimpleDateFormat("yyyy-MM-dd_HHmm").format(new Date()) + ".log");
82
+ //
83
+ // Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM_CLASS, "org.apache.velocity.runtime.log.AvalonLogChute");
86
84
Velocity .init ();
87
85
88
86
Template tpl = Velocity .getTemplate (template_name , "UTF-8" );
You can’t perform that action at this time.
0 commit comments