Emma修改默认控制端口

Emma修改默认控制端口

 

默认情况下,Emma会使用自身的配置信息,它们被存放在emma.jar包里面的emma_default.properties文件里。有时候我们可能需要对它默认的信息做修改。比如端口号(通常用默认的就行了,我现在是在同一台机器上有两个WebServer,里面都运行着Emma,所以端口会发生冲突。

 

一种方案是直接修改emma_default.properties。 但这个是不推荐的。

另一种是添加-D参数。如:-Demma.rt.control.port=57653

当然emma_default.properties里还说明了其它几种修改配置的方法,感兴趣的可以自己去实践一下,呵呵。

# -------------------------------------------------------------
# *************** DO NOT EDIT THIS FILE ***********************
#
# for user-editable property overrides use one of these options:
#
# (1) option-specific command line overrides, e.g.
#     -Dreport.txt.out.file=coverage.txt
#
# (2) '-p <options file>' command line option,
#
# (3) 'emma.properties' resource placed somewhere in the classpath
#     (e.g., in <jre dir>\classes directory -- note that it does
#     not exist by default),
#
# (4) '-Demma.*' JVM options, e.g.
#     -Demma.report.txt.out.file=coverage.txt
#
# (5) 'emma.properties' JVM option pointing to a properties file
#     -Demma.properties=./myproperties.txt
# -------------------------------------------------------------

# -------------------------------------------------------------
# logging properties:

verbosity.level:	info

# classloading properties:

#clsload.forced_delegation_filter:
#clsload.through_delegation_filter: -*

# -------------------------------------------------------------

# instrumentation properties:

instr.exclude_empty_classes:	true
instr.exclude_synthetic_methods:	true
instr.exclude_bridge_methods:		true
instr.do_suid_compensation:		true

# -------------------------------------------------------------

# runtime properties:

rt.control:			true
rt.control.host:	localhost
rt.control.port:	47653

rt.filelock:			true
rt.filelock.portbase:	59141
rt.filelock.maxtime:	120000
rt.filelock.retries:	11

# -------------------------------------------------------------

# apprunner session data output properties:

session.out.file:	coverage.es
session.out.merge:	true

# -------------------------------------------------------------

# runtime coverage data output properties:

coverage.out.file:	coverage.ec
coverage.out.merge:	true

# -------------------------------------------------------------

# instr metadata output properties:

metadata.out.file:	coverage.em
metadata.out.merge:	true

# -------------------------------------------------------------

# common report defaults:

report.units:		instr
report.depth:		method
report.columns:		name,class,method,block,line
report.sort:		+block,+name,+method,+class
report.metrics:		method:70,block:80,line:80,class:100

# -------------------------------------------------------------
# txt report properties:

report.txt.depth:	all
report.txt.columns:	class,method,block,line,name
report.txt.out.file:	coverage.txt

# -------------------------------------------------------------
# html report properties:

#report.html.out.dir:	coverage
report.html.out.file:	coverage/index.html
report.html.out.encoding: ISO-8859-1

# -------------------------------------------------------------
# xml report properties:

report.xml.out.file:	coverage.xml
report.xml.out.encoding: UTF-8
# -------------------------------------------------------------
# end of file

 

你可能感兴趣的:(端口)