§开源许可 License
Copyright 2010-2014 Guoqiang Chen. All rights reserved.
Email: subchen@gmail.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
§第三方依赖包 Dependences
- JDK 1.6+
- ANTLR runtime 4.x
- Slf4j 1.7.x
- Eclipse Java Compiler 4.3.x (可选, Tomcat 等服务器已自带)
- > 注意: > > 从 1.2.6 开始,默认使用 JDT Compiler 进行编译,如果没有遭到对应的 JDT 运行库,那么将切换到 JDK Compiler。 (如果是 JDK 编译,那么请确保是 tools.jar 存在。)
§Maven 依赖 POM.xml
已发布到 Maven 中央库: http://central.maven.org/maven2/com/github/subchen/
<dependency>
<groupId>com.github.subchen</groupId>
<artifactId>jetbrick-template</artifactId>
<version>1.2.12</version>
</dependency>
Eclipse Java Compiler.
<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<version>4.3.1</version>
</dependency>
§从源码安装 Sources
github: https://github.com/subchen/jetbrick-template
编译方法:
先安装 maven
wget http://mirror.esocc.com/apache/maven/maven-3/3.2.1/binaries/apache-maven-3.2.1-bin.zip
设置好 JDK, Maven 环境变量
set JAVA_HOME=c:/jdk_1.6.x set MVN_HOME=c:/apache-maven-3.2.1 set PATH=%JAVA_HOME%/bin;%MVN_HOME%/bin;%PATH%
编译
git clone https://github.com/subchen/jetbrick-template-1x.git cd jetbrick-template-1x mvn install
编译后的文件存放在 target 目录中
jetbrick-template-x.x.x.jar
§范例下载 Samples
官方范例可以前往: https://github.com/subchen/jetbrick-template-1x-samples/
§0.1 自定义标签 Tags/Methods/Functions:
更多信息,前往: https://github.com/yingzhuo/jetbrick-template-extend
感谢网友 应卓 提供相关的实现。
§最新版本 Latest Version
- jetbrick-template-1.2.12.jar
- jetbrick-template-1.2.12-sources.jar
- jetbrick-template-1.2.12-javadoc.jar
第三方依赖 jar 下载