Skip to content

Commit

Permalink
Merge pull request tywo45#19 from weifuchuan/to-add-websocket-client
Browse files Browse the repository at this point in the history
To add websocket client
  • Loading branch information
tywo45 authored May 17, 2019
2 parents 0011864 + 0292d03 commit 550dd76
Show file tree
Hide file tree
Showing 39 changed files with 2,925 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/zoo/websocket/client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
38 changes: 38 additions & 0 deletions src/zoo/websocket/client/_cmd.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
echo off
echo -
echo #下载源代码
echo mvn dependency:sources
echo -

echo #下载源代码jar。 -DdownloadJavadocs=true 下载javadoc包
echo -DdownloadSources=true
echo -
echo -



echo #将jar解压出来
echo mvn dependency:unpack-dependencies
echo -

echo #将jar拷贝到某一目录中(所有jar在同一目录中)
echo mvn dependency:copy-dependencies -Dmdep.useRepositoryLayout=false
echo -

echo #将jar按仓库目录拷贝出来()
echo mvn dependency:copy-dependencies -Dmdep.useRepositoryLayout=true -Dmdep.copyPom=true
echo -
echo -



echo #检查版本更新
echo mvn versions:display-dependency-updates
echo -

echo #版本变更
echo mvn versions:set -DnewVersion=4.0.0-talent-999
echo -


call cmd
39 changes: 39 additions & 0 deletions src/zoo/websocket/client/check-update.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
echo off
echo -
echo #下载源代码
echo mvn dependency:sources
echo -

echo #下载源代码jar。 -DdownloadJavadocs=true 下载javadoc包
echo -DdownloadSources=true
echo -
echo -



echo #将jar解压出来
echo mvn dependency:unpack-dependencies
echo -

echo #将jar拷贝到某一目录中(所有jar在同一目录中)
echo mvn dependency:copy-dependencies -Dmdep.useRepositoryLayout=false
echo -

echo #将jar按仓库目录拷贝出来()
echo mvn dependency:copy-dependencies -Dmdep.useRepositoryLayout=true -Dmdep.copyPom=true
echo -
echo -



echo #检查版本更新
echo mvn versions:display-dependency-updates
echo -

echo #版本变更
echo mvn versions:set -DnewVersion=4.0.0-talent-999
echo -


call mvn versions:display-dependency-updates
pause
4 changes: 4 additions & 0 deletions src/zoo/websocket/client/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call mvn -Dmaven.test.skip=true clean install


pause
5 changes: 5 additions & 0 deletions src/zoo/websocket/client/installAndCopy.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
call mvn -Dmaven.test.skip=true clean install

rem call rd ..\..\..\..\dist\examples\im\server /s /q
rem call xcopy target\dist\tio-core-showcase-im-server-3.3.0.v20190512-RELEASE ..\..\..\..\dist\examples\im\server\ /s /e /q /y

4 changes: 4 additions & 0 deletions src/zoo/websocket/client/package.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call mvn -Dmaven.test.skip=true clean package


pause
69 changes: 69 additions & 0 deletions src/zoo/websocket/client/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.t-io</groupId>
<artifactId>tio-websocket-client</artifactId>
<version>3.3.0.v20190512-BETA</version>

<parent>
<groupId>org.t-io</groupId>
<artifactId>tio-websocket-parent</artifactId>
<version>3.3.0.v20190512-RELEASE</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>

<dependencies>
<dependency>
<groupId>org.t-io</groupId>
<artifactId>tio-websocket-common</artifactId>
</dependency>

<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxjava</artifactId>
<version>2.2.8</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<addMavenDescriptor>false</addMavenDescriptor><!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
</archive>

<excludes>
<exclude>**/config/**/*</exclude>

<exclude>app.conf</exclude>
<exclude>logback.properties</exclude>
<exclude>logback.xml</exclude>
</excludes>
</configuration>
</plugin>

</plugins>
</build>

</project>
37 changes: 37 additions & 0 deletions src/zoo/websocket/client/script/pkg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<assembly>
<!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html -->
<id>dist</id>
<formats>
<!-- zip,tar.gz,tar.bz2,jar,dir,war -->
<format>dir</format>
</formats>

<includeBaseDirectory>false</includeBaseDirectory>

<fileSets>

<!-- 把项目的配置文件放config目录 -->
<fileSet>
<directory>${project.basedir}/src/main/resources</directory>
<outputDirectory>config</outputDirectory>
</fileSet>

<fileSet>
<directory>${project.basedir}</directory>
<outputDirectory></outputDirectory>
<includes>
<include>startup.*</include>
<include>debug.*</include>
<include>_cmd.*</include>
</includes>
</fileSet>
</fileSets>



<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
Loading

0 comments on commit 550dd76

Please sign in to comment.