Subversion Repositories SmartDukaan

Rev

Rev 49 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 49 Rev 59
Line 26... Line 26...
26
 * @author naveen
26
 * @author naveen
27
 *
27
 *
28
 */
28
 */
29
public class VUI {
29
public class VUI {
30
	public static String VTL_SRC_PATH = 
30
	public static String VTL_SRC_PATH = 
31
		"src/in/shop2020/ui/velocity/";
31
		"src/velocity/";
32
	
32
	
33
	public static String EXPORT_ENTITIES_PATH = 
33
	public static String EXPORT_ENTITIES_PATH = 
34
		"/home/naveen/workspace/eclipse/export/html/entities/";
34
		"/home/naveen/workspace/eclipse/export/html/entities/";
35
	
35
	
36
	public static String EXPORT_DEFINITIONS_PATH = 
36
	public static String EXPORT_DEFINITIONS_PATH = 
Line 64... Line 64...
64
			System.out.println("Invalid ID - " + inputID);
64
			System.out.println("Invalid ID - " + inputID);
65
			System.exit(-1);
65
			System.exit(-1);
66
		}
66
		}
67
		
67
		
68
		// Setup
68
		// Setup
69
		Velocity.init(VTL_SRC_PATH + "velocity.properties");
69
		Velocity.init("src/in/shop2020/ui/util/velocity.properties");
70
		VelocityContext context = new VelocityContext();
70
		VelocityContext context = new VelocityContext();
71
 
71
 
72
		String templateFile = VTL_SRC_PATH + templateFilename + ".vm";
72
		String templateFile = VTL_SRC_PATH + templateFilename + ".vm";
73
		
73
		
74
		Template template = null;
74
		Template template = null;