1 package org.apache.torque.task; 2 3 18 19 import org.apache.velocity.context.Context; 20 21 27 public class TorqueDocumentationTask extends TorqueDataModelTask 28 { 29 30 private String outputFormat; 31 32 37 public String getOutputFormat() 38 { 39 return outputFormat; 40 } 41 42 47 public void setOutputFormat(String v) 48 { 49 outputFormat = v; 50 } 51 52 58 public Context initControlContext() throws Exception  59 { 60 super.initControlContext(); 61 context.put("outputFormat", outputFormat); 62 context.put("escape", new org.apache.velocity.anakia.Escape()); 63 return context; 64 } 65 } 66 | Popular Tags |