Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows jacoco作为surefire argLine-命令行太长_Windows_Maven_Jacoco_Surefire_Jacoco Maven Plugin - Fatal编程技术网

Windows jacoco作为surefire argLine-命令行太长

Windows jacoco作为surefire argLine-命令行太长,windows,maven,jacoco,surefire,jacoco-maven-plugin,Windows,Maven,Jacoco,Surefire,Jacoco Maven Plugin,我让Jacoco做surefire的特工 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.18.1</version> <configuration> <argLine>

我让Jacoco做surefire的特工

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-failsafe-plugin</artifactId>
    <version>2.18.1</version>
    <configuration>
        <argLine>${jacoco.agent.argLine}</argLine>
    </configuration>
</plugin>
除了命令行上的代理参数arglist之外,还有其他方法将排除列表传递给Jacoco吗?(看起来不像)


我的问题是:如何将排除列表传递给在surefire中运行而不是在命令行上运行的Jacoco代理?

到目前为止,Jacoco Java代理不允许从文件中读取选项

不过,您可以指定代理via,它应该比命令行具有更大的大小限制


另外(不带代理)允许通过文件
jacoco agent.properties

提供配置,请详细说明-为什么需要一个长的代理排除列表而不需要生成报告?如第页所述:“除了性能优化或技术角案例外,通常不需要此选项。”这是一个技术角案例。能否请您详细说明“角案例”?我这样问并不是出于好奇,而是作为JaCoC开发人员之一,为了了解我们可以做哪些改进。
<plugin>
    <groupId>org.jacoco</groupId>
    <artifactId>jacoco-maven-plugin</artifactId>
    <version>0.7.5.201505241946</version>
    <configuration>
        <excludes>
            <exclude>*/*Test</exclude>
            <exclude>*/*Constants*</exclude>
            <exclude>${jacoco.exclusions.list}</exclude>
        </excludes>
    </configuration>  
 T E S T S
-------------------------------------------------------
The command line is too long.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------