private void execute0() throws IOException, MojoExecutionException { velocity = new RuntimeInstance(); final ExtProperties p = new ExtProperties(); velocity.setConfiguration(p);
/** * Directly set the ExtProperties configuration object * * @see RuntimeInstance#setConfiguration(ExtProperties) */ public static void setConfiguration(ExtProperties configuration) { ri.setConfiguration(configuration); }
/** * Set an entire configuration at once. This is * useful in cases where the parent application uses * the ExtendedProperties class and the velocity configuration * is a subset of the parent application's configuration. * * @param ExtendedProperties configuration * */ public void setExtendedProperties( ExtendedProperties configuration) { ri.setConfiguration( configuration ); }
/** * Set an entire configuration at once. This is * useful in cases where the parent application uses * the ExtendedProperties class and the velocity configuration * is a subset of the parent application's configuration. * * @param configuration * */ public void setExtendedProperties( ExtendedProperties configuration) { ri.setConfiguration( configuration ); }
/** * Set an entire configuration at once. This is * useful in cases where the parent application uses * the ExtendedProperties class and the velocity configuration * is a subset of the parent application's configuration. * * @param configuration * */ public void setExtendedProperties( ExtendedProperties configuration) { ri.setConfiguration( configuration ); }
/** * Allow an external system to set an ExtendedProperties * object to use. This is useful where the external * system also uses the ExtendedProperties class and * the velocity configuration is a subset of * parent application's configuration. This is * the case with Turbine. * * @param ExtendedProperties configuration */ public static void setConfiguration( ExtendedProperties configuration) { ri.setConfiguration( configuration ); }
/** * Allow an external system to set an ExtendedProperties * object to use. This is useful where the external * system also uses the ExtendedProperties class and * the velocity configuration is a subset of * parent application's configuration. This is * the case with Turbine. * * @param configuration * @see RuntimeInstance#setConfiguration(ExtendedProperties) */ public static void setConfiguration( ExtendedProperties configuration) { ri.setConfiguration( configuration ); }
/** * Allow an external system to set an ExtendedProperties * object to use. This is useful where the external * system also uses the ExtendedProperties class and * the velocity configuration is a subset of * parent application's configuration. This is * the case with Turbine. * * @param configuration * @see RuntimeInstance#setConfiguration(ExtendedProperties) */ public static void setConfiguration( ExtendedProperties configuration) { ri.setConfiguration( configuration ); }
/** * Set an entire configuration at once. This is * useful in cases where the parent application uses * the Configuration class and the velocity configuration * is a subset of the parent application's configuration. * * @param Configuration configuration * * @deprecated Use * {@link #setExtendedProperties( ExtendedProperties ) } */ public void setConfiguration(Configuration configuration) { /* * Yuk. We added a little helper to Configuration to * help with deprecation. The Configuration class * contains a 'shadow' ExtendedProperties */ ExtendedProperties ep = configuration.getExtendedProperties(); ri.setConfiguration( ep ); }
/** * Initialize the Velocity Runtime with a Properties * object. * * @param p Velocity properties for initialization */ public void init(Properties p) { setConfiguration(ExtProperties.convertProperties(p)); init(); }
private void execute0() throws IOException, MojoExecutionException { velocity = new RuntimeInstance(); final ExtProperties p = new ExtProperties(); velocity.setConfiguration(p);
/** * Initialize the Velocity Runtime with a * properties file path. * * @param configurationFile */ public void init(String configurationFile) { try { setConfiguration(new ExtProperties(configurationFile)); } catch (IOException e) { throw new VelocityException("Error reading properties from '" + configurationFile + "'", e); } init(); }