Skip to content

Commit ead4d5b

Browse files
committed
Update VelocityUtils.java
1 parent b28b1b9 commit ead4d5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/github/fvarrui/javapackager/utils/VelocityUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.apache.velocity.Template;
1111
import org.apache.velocity.VelocityContext;
1212
import org.apache.velocity.app.VelocityEngine;
13+
import org.apache.velocity.runtime.RuntimeConstants;
1314
import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
1415
import org.apache.velocity.runtime.resource.loader.FileResourceLoader;
1516
import org.apache.velocity.util.StringBuilderWriter;
@@ -49,7 +50,7 @@ private static String render(String templatePath, Object info) throws Exception
4950
VelocityContext context = new VelocityContext();
5051
context.put("features", new ArrayList<String>());
5152
context.put("GUID", UUID.class);
52-
context.put("StringUtils", StringUtils.class);
53+
context.put("StringUtils", org.apache.commons.lang3.StringUtils.class);
5354
context.put("info", info);
5455
Template template = getVelocityEngine().getTemplate(templatePath, "UTF-8");
5556
StringBuilderWriter writer = new StringBuilderWriter();

0 commit comments

Comments
 (0)