-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1821 Separate optional modules by jdk versions
Splits into 3 modules - jdk6, 7, and 8 so that each module is compiled against their specific jdk versions. Also moves test codes in the java8-test module into their respective optional packages.
- Loading branch information
Showing
31 changed files
with
291 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,14 @@ | ||
# pinpoint-profiler-optional | ||
|
||
**pinpoint-profiler-optional** is an optional package for pinpoint-profiler, adding features that are implemented using APIs available in JDK 7 or later. | ||
Modules under **pinpoint-profiler-optional** contain optional packages for pinpoint-profiler, containing features and codes that must be compiled against specific versions of JDK. | ||
|
||
Additionally, these optional modules may contain vendor-specific stub classes compile against. | ||
These classes are not included in in the final jar packaging, and the vendor-specific implementations that are compiled against these stubs must be loaded with vendor-supplied implementations. | ||
|
||
## Requirements | ||
In order to build pinpoint-profiler-optional, the following requirements must be met: | ||
In order to build pinpoint-profiler-optional and it's child modules, the following requirements must be met: | ||
|
||
* JDK 7+ installed | ||
* JDK 7 installed | ||
* `JAVA_7_HOME` environment variable set to JDK 7 home directory | ||
|
||
Once the `JAVA_7_HOME` environment is set, the *maven-compiler-plugin* invokes the JDK 7 compiler to compile the optional package: | ||
|
||
```xml | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.5.1</version> | ||
<inherited>true</inherited> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
<debug>${compiler-debug}</debug> | ||
<optimize>true</optimize> | ||
<fork>true</fork> | ||
<verbose>true</verbose> | ||
<compilerVersion>1.7</compilerVersion> | ||
<executable>${JAVA_7_HOME}/bin/javac</executable> | ||
<encoding>UTF-8</encoding> | ||
</configuration> | ||
</plugin> | ||
``` | ||
* JDK 8 installed | ||
* `JAVA_8_HOME` environment variable set to JDK 8 home directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"> | ||
|
||
<id>optional-projects</id> | ||
<formats> | ||
<format>zip</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
<dependencySets> | ||
<dependencySet> | ||
<includes> | ||
<include>${project.groupId}:pinpoint-profiler-optional-jdk6</include> | ||
<include>${project.groupId}:pinpoint-profiler-optional-jdk7</include> | ||
<!-- Not necessary yet --> | ||
<!--<include>${project.groupId}:pinpoint-profiler-optional-jdk8</include>--> | ||
</includes> | ||
<outputDirectory>/</outputDirectory> | ||
<useProjectArtifact>false</useProjectArtifact> | ||
<useTransitiveDependencies>false</useTransitiveDependencies> | ||
<scope>runtime</scope> | ||
</dependencySet> | ||
</dependencySets> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
java8-test/.gitignore → ...ptional/profiler-optional-jdk6/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/.settings/ | ||
/*.iml | ||
/.project | ||
/target/ | ||
/.classpath | ||
/.project |
8 changes: 4 additions & 4 deletions
8
java8-test/clover.license → ...nal/profiler-optional-jdk6/clover.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
RMRqrdbgbKFhbaVnDxHUdDQvrOQXxIBklnvcmahheubVC | ||
mh2KM35CLkwUHS4DH7QVhxy52J5hnWbyEm6Cyd3KkF<mV | ||
RmmnSVOqOMnOnMMrmMqwXomoroNrqPNRrPSsWwtUxXuUU | ||
sRONqpnmqmUUnqonmstsmmmmmUUnqonmstsmmmmmUUGfk | ||
RMRqrdbgbKFhbaVnDxHUdDQvrOQXxIBklnvcmahheubVC | ||
mh2KM35CLkwUHS4DH7QVhxy52J5hnWbyEm6Cyd3KkF<mV | ||
RmmnSVOqOMnOnMMrmMqwXomoroNrqPNRrPSsWwtUxXuUU | ||
sRONqpnmqmUUnqonmstsmmmmmUUnqonmstsmmmmmUUGfk | ||
mlfkqUUnmmmm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?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> | ||
<parent> | ||
<groupId>com.navercorp.pinpoint</groupId> | ||
<artifactId>pinpoint-profiler-optional-parent</artifactId> | ||
<relativePath>../profiler-optional-parent</relativePath> | ||
<version>1.6.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>pinpoint-profiler-optional-jdk6</artifactId> | ||
<name>pinpoint-profiler-optional-jdk6</name> | ||
<packaging>jar</packaging> | ||
<description>pinpoint profiler optional package for jdk 6</description> | ||
|
||
<properties> | ||
<jdk.version>1.6</jdk.version> | ||
<jdk.home>${env.JAVA_6_HOME}</jdk.home> | ||
</properties> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/.settings/ | ||
/*.iml | ||
/.project | ||
/target/ | ||
/.classpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
RMRqrdbgbKFhbaVnDxHUdDQvrOQXxIBklnvcmahheubVC | ||
mh2KM35CLkwUHS4DH7QVhxy52J5hnWbyEm6Cyd3KkF<mV | ||
RmmnSVOqOMnOnMMrmMqwXomoroNrqPNRrPSsWwtUxXuUU | ||
sRONqpnmqmUUnqonmstsmmmmmUUnqonmstsmmmmmUUGfk | ||
mlfkqUUnmmmm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?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> | ||
<parent> | ||
<groupId>com.navercorp.pinpoint</groupId> | ||
<artifactId>pinpoint-profiler-optional-parent</artifactId> | ||
<relativePath>../profiler-optional-parent</relativePath> | ||
<version>1.6.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>pinpoint-profiler-optional-jdk7</artifactId> | ||
<name>pinpoint-profiler-optional-jdk7</name> | ||
<packaging>jar</packaging> | ||
<description>pinpoint profiler optional package for jdk 7</description> | ||
|
||
<properties> | ||
<jdk.version>1.7</jdk.version> | ||
<jdk.home>${env.JAVA_7_HOME}</jdk.home> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.javassist</groupId> | ||
<artifactId>javassist</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.ow2.asm</groupId> | ||
<artifactId>asm-debug-all</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,4 @@ public String toString() { | |
return "CpuLoadMetricSet for Java 1.7+"; | ||
} | ||
|
||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.