Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
阿啄debugIT
transmittable-thread-local
提交
04bb5df3
T
transmittable-thread-local
项目概览
阿啄debugIT
/
transmittable-thread-local
与 Fork 源项目一致
从无法访问的项目Fork
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
transmittable-thread-local
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
04bb5df3
编写于
4月 21, 2014
作者:
oldratlee
🔥
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add shard plugin config
上级
c88c5c3e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
29 addition
and
66 deletion
+29
-66
.travis.yml
.travis.yml
+0
-1
common.sh
common.sh
+0
-1
mtc-repackage-javassist.sh
mtc-repackage-javassist.sh
+0
-29
pom.xml
pom.xml
+29
-5
run-repackaged-agent-test.sh
run-repackaged-agent-test.sh
+0
-30
未找到文件。
.travis.yml
浏览文件 @
04bb5df3
...
...
@@ -6,4 +6,3 @@ jdk:
-
oraclejdk8
after_script
:
-
./run-agent-test.sh skip
-
./run-repackaged-agent-test.sh skip
common.sh
浏览文件 @
04bb5df3
...
...
@@ -24,7 +24,6 @@ cleanInstall() {
copyDeps
()
{
[
"
$1
"
=
'skip'
]
||
{
mvn dependency:copy-dependencies
-DincludeScope
=
provided
&&
mvn dependency:copy-dependencies
-DincludeScope
=
test
}
}
...
...
mtc-repackage-javassist.sh
已删除
100755 → 0
浏览文件 @
c88c5c3e
#!/bin/bash
uuid
=
`
date
+%s
`
_
${
RANDOM
}
_
$$
tmpDir
=
/tmp/
${
uuid
}
mkdir
-p
$tmpDir
jarjarFile
=
/tmp/jarjar-1.4.jar
cleanupWhenExit
()
{
rm
-rf
$tmpDir
&> /dev/null
}
trap
"cleanupWhenExit"
EXIT
[
!
-e
$jarjarFile
]
&&
{
wget https://jarjar.googlecode.com/files/jarjar-1.4.jar
-O
$jarjarFile
||
{
echo
"Fail to download jarjar!"
exit
1
}
}
for
file
;
do
echo
"repackaging
$file
..."
bname
=
$(
basename
$file
)
&&
java
-jar
$jarjarFile
process <
(
echo
'rule javassist.** com.alibaba.mtc.javassist.@1'
)
$file
$tmpDir
/
$bname
&&
mv
$tmpDir
/
$bname
$file
||
{
echo
"Fail to repackage
$file
!"
exit
2
}
done
\ No newline at end of file
pom.xml
浏览文件 @
04bb5df3
...
...
@@ -74,7 +74,7 @@
<groupId>
org.javassist
</groupId>
<artifactId>
javassist
</artifactId>
<version>
3.18.1-GA
</version>
<
scope>
provided
</scope
>
<
optional>
true
</optional
>
</dependency>
<!-- Testing frameworks and related dependencies -->
<dependency>
...
...
@@ -88,8 +88,8 @@
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.1
</version>
<configuration>
<source>
1.6
</source>
<target>
1.6
</target>
...
...
@@ -98,6 +98,7 @@
</plugin>
<plugin>
<artifactId>
maven-jar-plugin
</artifactId>
<version>
2.4
</version>
<configuration>
<archive>
<manifestEntries>
...
...
@@ -110,12 +111,34 @@
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.17
</version>
<configuration>
<forkMode>
always
</forkMode>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-shade-plugin
</artifactId>
<version>
2.2
</version>
<executions>
<execution>
<phase>
package
</phase>
<goals>
<goal>
shade
</goal>
</goals>
<configuration>
<createSourcesJar>
true
</createSourcesJar>
<relocations>
<relocation>
<pattern>
javassist
</pattern>
<shadedPattern>
com.alibaba.mtc.javassist
</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
...
...
@@ -130,8 +153,8 @@
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-source-plugin
</artifactId>
<version>
2.2.1
</version>
<executions>
<execution>
<id>
attach-sources
</id>
...
...
@@ -143,6 +166,7 @@
</plugin>
<plugin>
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
2.9.1
</version>
<executions>
<execution>
<id>
attach-javadoc
</id>
...
...
@@ -162,8 +186,8 @@
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-gpg-plugin
</artifactId>
<version>
1.5
</version>
<executions>
<execution>
<id>
sign-artifacts
</id>
...
...
run-repackaged-agent-test.sh
已删除
100755 → 0
浏览文件 @
c88c5c3e
#!/bin/bash
cd
$(
dirname
$(
readlink
-f
$0
))
BASE
=
`
pwd
`
.
./common.sh
# -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 \
cleanInstall
$1
&&
copyDeps
$1
&&
{
classpath
=
`
echo
target/dependency/
*
.jar |
tr
' '
:
`
&&
./mtc-repackage-javassist.sh target/dependency/javassist
*
target/
$aid
-
$version
.jar
&&
# check whether repackage operation result is expected.
{
!
jar
-tf
target/dependency/javassist
*
|
grep
'^javassist/'
||
{
redEcho
"Fail to repackage javassist jar!"
exit
2
}
}
&&
runCmd java
\
-Xmx128m
-Xms128m
\
-Xbootclasspath
/a:target/
$aid
-
$version
.jar:
`
ls
target/dependency/javassist
*
`
\
-javaagent
:target/
$aid
-
$version
.jar
\
-cp
target/test-classes:
$classpath
\
-ea
\
com.alibaba.mtc.threadpool.agent.AgentCheck
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录