Changeset 5036

Show
Ignore:
Timestamp:
01/20/08 13:42:31 (5 years ago)
Author:
nori090
Message:

lang/java/lib2chj: velocityの設定修正

Location:
lang/java/lib2chj/trunk/lib2chj/src/main
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/java/lib2chj/trunk/lib2chj/src/main/java/lib2chj/SimpleGUI.java

    r4917 r5036  
    2525import java.awt.event.MouseEvent; 
    2626import java.awt.event.MouseListener; 
    27 import java.io.File; 
    2827import java.io.IOException; 
    2928import java.io.StringWriter; 
     
    8180        try { 
    8281            Properties p = new Properties(); 
    83             p.load( this.getClass().getClassLoader().getResourceAsStream( "org/apache/velocity/runtime/defaults/velocity.properties" ) ); 
    84             p.setProperty( "file.resource.loader.path", "., " + 
    85                 new File(this.getClass().getClassLoader().getResource( "lib2chj/thread_layout.vm" ).getPath()).getParent() ); 
     82            p.load( this.getClass().getClassLoader().getResourceAsStream( "lib2chj/velocity.properties" ) ); 
    8683            Velocity.init( p ); 
    87             template = Velocity.getTemplate( "thread_layout.vm", "SJIS" ); 
     84            template = Velocity.getTemplate( "lib2chj/thread_layout.vm", "SJIS" ); 
    8885            context.put( "util", new ParseUtil() ); 
    8986        }