usage: filename param value
( String [] args )
| 221 | usage: filename param value |
| 222 | */ |
| 223 | public static void main( String [] args ) throws IOException |
| 224 | { |
| 225 | String filename = args[0]; |
| 226 | String param = args[1]; |
| 227 | String value = args[2]; |
| 228 | |
| 229 | FileReader fr = new FileReader( filename ); |
| 230 | String templateText = SimpleTemplate.getStringFromStream( fr ); |
| 231 | SimpleTemplate template = new SimpleTemplate( templateText ); |
| 232 | |
| 233 | template.replace( param, value ); |
| 234 | template.write( System.out ); |
| 235 | } |
| 236 | |
| 237 | public static void setCacheTemplates( boolean b ) { |
| 238 | cacheTemplates = b; |
nothing calls this directly
no test coverage detected