Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (18 sloc) 0.684 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
让Play!自动加载自己自定义的目录做为java的类加载路径,如:src目录等,目前支持play 1.2版 本。

使用方法:
一:修改java源代码路径
1)cd <your dir>
2)play new <your project>
3)mkdir src (假设拿src目录来存放java源文件)
3)mkdir modules
4)cd modules
5)git clone https://arden@github.com/arden/play-loader.git
6)修改conf/application.conf
   增加:javasource.path=src
7)启动项目 play run

二:修改视图模版路径
1)cd <your project>
2)cd app
3)mv views templates (假设把模版路径改为templates)
4)修改conf/application.conf,增加template.path=app/templates
5)启动项目,play run
Something went wrong with that request. Please try again.