1 24 25 package org.objectweb.cjdbc.scenario.templates; 26 27 import java.io.File ; 28 29 import junit.framework.TestCase; 30 31 import org.objectweb.cjdbc.common.log.Trace; 32 33 40 public class NoTemplate extends TestCase 41 { 42 45 public static Trace logger = Trace.getLogger("org.objectweb.cjdbc.scenario"); 46 47 50 public static final String TEXT_DIR = "/text"; 51 52 57 public static final String getUserDir() 58 { 59 String userDir = System.getProperty("cjdbc.dir"); 60 return userDir; 61 } 62 63 69 public static final String getTextPath(String textFile) 70 { 71 File file = new File ((new String ("")).getClass().getResource( 72 TEXT_DIR + File.separator + textFile).getFile()); 73 return file.getAbsolutePath(); 74 } 75 } | Popular Tags |