Skip to content

Commit fa71d24

Browse files
committed
Merge branch 'prepare-v0.2' into 'master'
Prepare v0.2 See merge request TurpIF/lambda-string!9
2 parents a17e6b6 + 5557271 commit fa71d24

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ build-benchmark:
3535
- target/*.jar
3636
expire_in: 20 minutes
3737

38-
package:jdk8:
38+
package-jdk8:
3939
<<: *build
4040
script: "mvn verify `eval $MAVEN_CLI_OPTS`"
4141
artifacts:
@@ -53,7 +53,7 @@ package:jdk8:
5353
-Dassembly.skipAssembly=true \
5454
-Djacoco.skip=true"
5555
dependencies:
56-
- package:jdk8
56+
- package-jdk8
5757

5858
test-jre8:
5959
<<: *test
@@ -120,7 +120,7 @@ coverage-rate:
120120
image: alpine:3.7
121121
stage: package
122122
dependencies:
123-
- package:jdk8
123+
- package-jdk8
124124
script:
125125
- awk -F"," \
126126
'{
@@ -158,7 +158,7 @@ pages:
158158
image: alpine:3.7
159159
stage: deploy
160160
dependencies:
161-
- package:jdk8
161+
- package-jdk8
162162
- benchmark-report
163163
script:
164164
- mkdir -p public/coverage

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
# lambda-string [![build status](https://gitlab.com/TurpIF/lambda-to-string/badges/master/build.svg)](https://gitlab.com/TurpIF/lambda-to-string/commits/master) [![coverage report](https://gitlab.com/TurpIF/lambda-to-string/badges/master/coverage.svg)](https://turpif.gitlab.io/lambda-to-string/coverage)
1+
# lambda-string [![build status](https://gitlab.com/TurpIF/lambda-string/badges/master/build.svg)](https://gitlab.com/TurpIF/lambda-string/commits/master) [![coverage report](https://gitlab.com/TurpIF/lambda-string/badges/master/coverage.svg)](https://turpif.gitlab.io/lambda-string/coverage)
22

33
Lambda-string (LS) is a helping java agent that inject configurable toString method into lambdas with some useful meta-information.
44

55
LS comes with a default toString strategy that print the origin of the lambdas. This feature let you easily track their origin while debugging as shown below :
66

7-
![With and without the agent](https://gitlab.com/TurpIF/lambda-to-string/raw/master/doc/with-without.gif)
7+
![With and without the agent](https://gitlab.com/TurpIF/lambda-string/raw/master/doc/with-without.gif)
88

99
## Usage
1010

11-
The most recent release is [LS 0.1](https://gitlab.com/TurpIF/lambda-to-string/tags/v0.1).
11+
The most recent release is [LS 0.2](https://gitlab.com/TurpIF/lambda-string/tags/v0.2).
1212

1313
To activate the LS agent in general, please use the following:
14-
- Download the [lambdaString-0.1.jar](https://gitlab.com/TurpIF/lambda-to-string/-/jobs/artifacts/v0.1/raw/target/lambdaString-0.1.jar?job=package%3Ajdk8)
15-
- Add `-javaagent:/path/to/lambdaString-0.1.jar` in your java options
14+
- Download the [lambda-string-0.2.jar](https://gitlab.com/TurpIF/lambda-string/-/jobs/artifacts/v0.2/raw/target/lambda-string-0.2.jar?job=package-jdk8)
15+
- Add `-javaagent:/path/to/lambda-string-0.2.jar` in your java options
1616

1717

1818
To activate the LS agent using remote debugger, please use the following:
1919
```bash
2020
# Download JAR
21-
wget -O /tmp/lambdaString-0.1.jar "https://gitlab.com/TurpIF/lambda-to-string/-/jobs/artifacts/v0.1/raw/target/lambdaString-0.1.jar?job=package%3Ajdk8"
21+
wget -O /tmp/lambda-string-0.2.jar "https://gitlab.com/TurpIF/lambda-string/-/jobs/artifacts/v0.2/raw/target/lambda-string-0.2.jar?job=package-jdk8"
2222

2323
# Start debug server
2424
cd /your/project
25-
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -javaagent:/tmp/lambdaString-0.1.jar my.dummy.Main
25+
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -javaagent:/tmp/lambda-string-0.2.jar my.dummy.Main
2626

2727
# Attach a debugger client with JDB or your preferred IDE
2828
```
2929

3030

3131
To activate the LS agent using IntelliJ, please use the following:
32-
- Download the [lambdaString-0.1.jar](https://gitlab.com/TurpIF/lambda-to-string/-/jobs/artifacts/v0.1/raw/target/lambdaString-0.1.jar?job=package%3Ajdk8)
33-
- Add `-javaagent:/path/to/lambdaString-0.1.jar` in the "VM options" of your debugging configuration
32+
- Download the [lambda-string-0.2.jar](https://gitlab.com/TurpIF/lambda-string/-/jobs/artifacts/v0.2/raw/target/lambda-string-0.2.jar?job=package-jdk8)
33+
- Add `-javaagent:/path/to/lambda-string-0.2.jar` in the "VM options" of your debugging configuration
3434

35-
![Intellij hint](https://gitlab.com/TurpIF/lambda-to-string/raw/master/doc/intellij-usage.png)
35+
![Intellij hint](https://gitlab.com/TurpIF/lambda-string/raw/master/doc/intellij-usage.png)
3636

3737

3838
To activate the LS agent with custom toString strategy, please use the following:
39-
- Download the [lambdaString-0.1.jar](https://gitlab.com/TurpIF/lambda-to-string/-/jobs/artifacts/v0.1/raw/target/lambdaString-0.1.jar?job=package%3Ajdk8)
40-
- Add `-javaagent:/path/to/lambdaString-0.1.jar=my.custom.ToStringStrategy` in your java options
39+
- Download the [lambda-string-0.2.jar](https://gitlab.com/TurpIF/lambda-string/-/jobs/artifacts/v0.2/raw/target/lambda-string-0.2.jar?job=package-jdk8)
40+
- Add `-javaagent:/path/to/lambda-string-0.2.jar=my.custom.ToStringStrategy` in your java options
4141

4242

4343
## Why
@@ -89,10 +89,10 @@ This agent should be used during a debugging session with human interaction,
8989
so a little performance overhead is still acceptable as long as it is not perceptible by a human.
9090
Although, here is some benchmarks to give you some ideas of the potential impacts :
9191

92-
- [HotSpot JVM 8](https://turpif.gitlab.io/lambda-to-string/benchmark/jre8/)
93-
- [HotSpot JVM 9](https://turpif.gitlab.io/lambda-to-string/benchmark/jre9/)
94-
- [HotSpot JVM 10](https://turpif.gitlab.io/lambda-to-string/benchmark/jre10/)
95-
- [IBM J9 VM (JRE 8)](https://turpif.gitlab.io/lambda-to-string/benchmark/jre8-ibm/)
92+
- [HotSpot JVM 8](https://turpif.gitlab.io/lambda-string/benchmark/jre8/)
93+
- [HotSpot JVM 9](https://turpif.gitlab.io/lambda-string/benchmark/jre9/)
94+
- [HotSpot JVM 10](https://turpif.gitlab.io/lambda-string/benchmark/jre10/)
95+
- [IBM J9 VM (JRE 8)](https://turpif.gitlab.io/lambda-string/benchmark/jre8-ibm/)
9696

9797
To reduce the impacts, a particular attention is done when transforming the lambda runtime representations.
9898
Also, the majority of the computation is done when `toString` is effectively called.
@@ -132,7 +132,7 @@ a new implementation of the `LambdaToStringStrategy` interface.
132132
Then the agent setup should give the custom strategy class as below :
133133

134134
```bash
135-
java -javaagent:./lambdaString-0.1.jar=my.dummy.MyToStringStrategy my.dummy.Main
135+
java -javaagent:./lambda-string-0.2.jar=my.dummy.MyToStringStrategy my.dummy.Main
136136
```
137137

138138
Here is a sample of custom strategy returning a constant toString :
@@ -163,8 +163,8 @@ Installing a development environment needs few requirements:
163163
### Installation
164164

165165
```bash
166-
git clone https://gitlab.com/TurpIF/lambda-to-string lambda-to-string
167-
cd lambda-to-string
166+
git clone https://gitlab.com/TurpIF/lambda-string lambda-string
167+
cd lambda-string
168168
mvn verify
169169
```
170170

@@ -173,8 +173,8 @@ Also, few scripts are available to simulate the gitlab CI pipeline through a sha
173173
Available testing JRE tasks are those matching the `test-jre*` pattern in the GitLab CI file.
174174

175175
```bash
176-
git clone https://gitlab.com/TurpIF/lambda-to-string lambda-to-string
177-
cd lambda-to-string
176+
git clone https://gitlab.com/TurpIF/lambda-string lambda-string
177+
cd lambda-string
178178

179179
# GitLab Runner does not allow running pipeline with shared artifact, so the build-jre8 task should be called
180180
# once before running any testing task.
@@ -199,8 +199,8 @@ Running the benchmarks locally is equivalent to execute the tests.
199199
Available benchmarking JRE tasks are those matching the `benchmark-jre*` pattern in the GitLab CI file.
200200

201201
```bash
202-
git clone https://gitlab.com/TurpIF/lambda-to-string lambda-to-string
203-
cd lambda-to-string
202+
git clone https://gitlab.com/TurpIF/lambda-string lambda-string
203+
cd lambda-string
204204

205205
# Build the agent and the benchmark JAR
206206
./src/test/shell/build-jdk8.sh

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<name>lambda-string</name>
1111
<description>Lambda-string (LS) is a helping java agent that inject configurable toString method into lambdas with some useful meta-information</description>
12-
<url>https://gitlab.com/TurpIF/lambda-to-string</url>
12+
<url>https://gitlab.com/TurpIF/lambda-string</url>
1313

1414
<properties>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -43,9 +43,9 @@
4343
</developers>
4444

4545
<scm>
46-
<connection>scm:git:https://gitlab.com/TurpIF/lambda-to-string.git</connection>
47-
<developerConnection>ssh://[email protected]:TurpIF/lambda-to-string.git</developerConnection>
48-
<url>https://gitlab.com/TurpIF/lambda-to-string</url>
46+
<connection>scm:git:https://gitlab.com/TurpIF/lambda-string.git</connection>
47+
<developerConnection>ssh://[email protected]:TurpIF/lambda-string.git</developerConnection>
48+
<url>https://gitlab.com/TurpIF/lambda-string</url>
4949
</scm>
5050

5151
<dependencies>

src/test/shell/build-jdk8.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ rm -rf /tmp/output/*
88
gitlab-runner exec docker \
99
--pre-build-script "ln -s /cache/ ./target" \
1010
--docker-volumes /tmp/output:/cache \
11-
package:jdk8
11+
package-jdk8

0 commit comments

Comments
 (0)