MCPcopy Index your code
hub / github.com/beanshell/beanshell / main

Method main

src/bsh/servlet/SimpleTemplate.java:223–235  ·  view source on GitHub ↗

usage: filename param value

( String	[] args	)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

getStringFromStreamMethod · 0.95
replaceMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected