Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用发现content empty #3

Open
ghost opened this issue Sep 18, 2016 · 1 comment
Open

使用发现content empty #3

ghost opened this issue Sep 18, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 18, 2016

安装作者的最新版,发现执行生成命令的时候“content empty”,通过下载源码,创建的时候发现少了FreeMarker包,加载之后运行的插件是能够正常使用的。那么应该是打包plugin的时候没有把freemaker打包进去!

@ghost
Copy link
Author

ghost commented Sep 18, 2016

经过反复测试,是Velocity的日志文件不可达造成的,
可能windows系统权限不够,总之就是velocity.log找不到,
通过修改如下测试有效:
try { Properties properties = new Properties(); properties.load(TemplateUtil.class.getResourceAsStream("/velocity.properties")); velocityEngine.init(properties); } catch (IOException e) { e.printStackTrace(); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants