Skip to content

Commit

Permalink
extract tools module #1774
Browse files Browse the repository at this point in the history
extract tools mudule.
  • Loading branch information
koo-taejin committed May 17, 2016
1 parent 58f3f83 commit f58f92e
Show file tree
Hide file tree
Showing 11 changed files with 62 additions and 6 deletions.
6 changes: 6 additions & 0 deletions agent/pom.xml
Expand Up @@ -33,6 +33,12 @@
<scope>runtime</scope>
</dependency>

<!-- tools -->
<dependency>
<groupId>com.navercorp.pinpoint</groupId>
<artifactId>pinpoint-tools</artifactId>
<scope>runtime</scope>
</dependency>

<!-- for tests -->
<dependency>
Expand Down
6 changes: 6 additions & 0 deletions agent/src/assembly/distribution.xml
Expand Up @@ -50,5 +50,11 @@
<outputDirectory>plugin</outputDirectory>
<unpack>true</unpack>
</dependencySet>
<dependencySet>
<includes>
<include>com.navercorp.pinpoint:pinpoint-tools</include>
</includes>
<outputDirectory>tools</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
4 changes: 0 additions & 4 deletions agent/src/main/script/networktest.sh

This file was deleted.

6 changes: 6 additions & 0 deletions pom.xml
Expand Up @@ -49,6 +49,7 @@
<module>commons</module>
<module>commons-hbase</module>
<module>commons-server</module>
<module>tools</module>
<module>plugins</module>
<module>profiler</module>
<module>profiler-optional</module>
Expand Down Expand Up @@ -180,6 +181,11 @@
<type>zip</type>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.navercorp.pinpoint</groupId>
<artifactId>pinpoint-tools</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.navercorp.pinpoint</groupId>
<artifactId>pinpoint-test</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions tools/.gitignore
@@ -0,0 +1,5 @@
/target/
/*.iml
/.settings/
/.classpath
/.project
1 change: 1 addition & 0 deletions tools/README.md
@@ -0,0 +1 @@
# pinpoint-tools
5 changes: 5 additions & 0 deletions tools/clover.license
@@ -0,0 +1,5 @@
RMRqrdbgbKFhbaVnDxHUdDQvrOQXxIBklnvcmahheubVC
mh2KM35CLkwUHS4DH7QVhxy52J5hnWbyEm6Cyd3KkF<mV
RmmnSVOqOMnOnMMrmMqwXomoroNrqPNRrPSsWwtUxXuUU
sRONqpnmqmUUnqonmstsmmmmmUUnqonmstsmmmmmUUGfk
mlfkqUUnmmmm
27 changes: 27 additions & 0 deletions tools/pom.xml
@@ -0,0 +1,27 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.navercorp.pinpoint</groupId>
<artifactId>pom</artifactId>
<version>1.6.0-SNAPSHOT</version>
</parent>

<artifactId>pinpoint-tools</artifactId>
<name>pinpoint-tools</name>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.navercorp.pinpoint</groupId>
<artifactId>pinpoint-commons</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.navercorp.pinpoint</groupId>
<artifactId>pinpoint-profiler</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

</project>
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.navercorp.pinpoint.profiler.tools;
package com.navercorp.pinpoint.tools;

import com.navercorp.pinpoint.bootstrap.config.DefaultProfilerConfig;
import com.navercorp.pinpoint.bootstrap.config.ProfilerConfig;
Expand Down
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.navercorp.pinpoint.profiler.tools;
package com.navercorp.pinpoint.tools;

/**
* Marker interface to prevent obfuscation
Expand Down
4 changes: 4 additions & 0 deletions tools/src/main/script/networktest.sh
@@ -0,0 +1,4 @@
#! /bin/bash
CL_PATH=`find ../ -name '*.jar' | tr "\n" :`
echo "CLASSPATH=$CL_PATH"
java -classpath $CL_PATH com.navercorp.pinpoint.tools.NetworkAvailabilityChecker ../pinpoint.config

0 comments on commit f58f92e

Please sign in to comment.