Skip to content

Commit

Permalink
upgrade to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed May 5, 2016
1 parent 444ba43 commit 3acb1d4
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 32 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>

Expand Down
2 changes: 1 addition & 1 deletion sharding-jdbc-config-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-config-parent</artifactId>
<packaging>pom</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sharding-jdbc-config-parent</artifactId>
<groupId>com.dangdang</groupId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-config-common</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sharding-jdbc-config-parent</artifactId>
<groupId>com.dangdang</groupId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-config-spring</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sharding-jdbc-config-parent</artifactId>
<groupId>com.dangdang</groupId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-config-yaml</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion sharding-jdbc-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-core</artifactId>
<name>${project.artifactId}</name>
Expand Down
4 changes: 2 additions & 2 deletions sharding-jdbc-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-example</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
<packaging>pom</packaging>

<modules>
Expand All @@ -20,7 +20,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.locale>zh_CN</project.build.locale>

<sharding-jdbc.version>1.1.1-SNAPSHOT</sharding-jdbc.version>
<sharding-jdbc.version>1.2.0</sharding-jdbc.version>

<commons-dbcp.version>1.4</commons-dbcp.version>
<mysql-connector-java.version>5.1.30</mysql-connector-java.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-example</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-example-config-spring</artifactId>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-example</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-example-config-yaml</artifactId>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-example</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-example-jdbc-transaction</artifactId>
</project>
2 changes: 1 addition & 1 deletion sharding-jdbc-example/sharding-jdbc-example-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-example</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-example-jdbc</artifactId>
</project>
2 changes: 1 addition & 1 deletion sharding-jdbc-example/sharding-jdbc-example-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-example</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-example-jpa</artifactId>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-example</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-example-mybatis</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion sharding-jdbc-transaction-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-transaction-parent</artifactId>
<packaging>pom</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-transaction-parent</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-transaction-async-job</artifactId>
<name>${project.artifactId}</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,28 @@ BIN_DIR=`pwd`
cd ..
DEPLOY_DIR=`pwd`

SERVER_NAME=dd-frame-container
SERVER_NAME=sharding-jdbc-transaction-async-job

PIDS=`ps -ef | grep java | grep "$DEPLOY_DIR" |awk '{print $2}'`
if [ -z "$PIDS" ]; then
PID=`ps -ef | grep java | grep "$DEPLOY_DIR" |awk '{print $2}'`
if [ -z "$PID" ]; then
echo "ERROR: The $SERVER_NAME does not started!"
exit 1
fi

echo -e "Stopping the $SERVER_NAME ...\c"
for PID in $PIDS ; do
kill $PID > /dev/null 2>&1
done
kill $PID > /dev/null 2>&1

COUNT=0
while [ $COUNT -lt 1 ]; do
echo -e ".\c"
sleep 1
COUNT=1
for PID in $PIDS ; do
PID_EXIST=`ps -f -p $PID | grep java`
if [ -n "$PID_EXIST" ]; then
COUNT=0
break
fi
done
PID_EXIST=`ps -f -p $PID | grep java`
if [ -n "$PID_EXIST" ]; then
COUNT=0
break
fi
done

echo "OK!"
echo "PID: $PIDS"
echo "PID: $PID"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-transaction-parent</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-transaction-storage</artifactId>
<name>${project.artifactId}</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-transaction-parent</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<artifactId>sharding-jdbc-transaction</artifactId>
<name>${project.artifactId}</name>
Expand Down

0 comments on commit 3acb1d4

Please sign in to comment.