Skip to content

Commit

Permalink
编译打包脚本和文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
aofeng committed Nov 30, 2016
1 parent bd8b3fc commit 257b06a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<project name="threadpool4j" basedir="." default="all">
<property name="project_name" value="threadpool4j"></property>
<property name="project_version" value="2.1.0"></property>
<property name="project_version" value="2.5.0"></property>
<property name="package_name" value="${project_name}-${project_version}"></property>
<property name="author" value="NieYong"></property>
<property name="organization" value="cn.aofeng"></property>
Expand Down
27 changes: 19 additions & 8 deletions doc/guide/01-compile.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
1、获取threadpool4j源码
```shell
# 1、获取源码
```bash
git clone https://github.com/aofeng/threadpool4j
```

2、编译源码生成jar。

# 2、编译源码并生成jar
## 方式一:Ant
进入项目根目录,执行ant脚本:
```shell
```bash
ant
````
会生成一个dist目录,下面有两个文件。如:
会生成一个`dist`目录,下面有两个文件。如:
<pre>
threadpool4j-2.5.0-src.jar 源码jar
threadpool4j-2.5.0.jar 用于发布的二进制jar
</pre>

## 方式二:Maven
进入项目根目录,执行maven脚本:
```bash
mvn package
```
会生成一个`target`目录,下面有两个文件。如:
<pre>
threadpool4j-2.1.0-src.jar 源码jar
threadpool4j-2.1.0.jar 用于发布的二进制jar
threadpool4j-2.5.0-src.jar 源码jar
threadpool4j-2.5.0.jar 用于发布的二进制jar
</pre>
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>cn.aofeng</groupId>
<artifactId>threadpool4j</artifactId>
<version>2.1.0</version>
<version>2.5.0</version>
<name>threadpool4j</name>
<url>https://github.com/aofeng/threadpool4j</url>

Expand Down Expand Up @@ -45,7 +45,7 @@
<dependency>
<groupId>cn.aofeng</groupId>
<artifactId>common4j</artifactId>
<version>0.1.0</version>
<version>0.2.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 257b06a

Please sign in to comment.