将片段添加到tycho-surefire-plugin

时间:2017-07-19 12:06:25

标签: tycho tycho-surefire-plugin

我想用SELECT * FROM my_tables WHERE LEN(@list) > 0 and column_one IN (@list) UNION SELECT * FROM my_tables WHERE LEN(@list) = 0 and column_one IN (SELECT column_one FROM my_table) 开始一个片段。简单吧?

tycho-surefire-plugin

但是,由于缺少文档(或者可能隐藏),我无法弄清楚要输入的内容:

<plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-surefire-plugin</artifactId>
    <version>${tycho-version}</version>
    <configuration>
        <providerHint>junit4</providerHint>
        <dependencies>
            <!-- I want to add my fragment here -->
        </dependencies>
    </configuration>
</plugin>

如何将片段添加到Tycho Surefire插件?

1 个答案:

答案 0 :(得分:1)

当然,片段是在完全不同的Tycho插件中解决的:

<plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>target-platform-configuration</artifactId>
    <configuration>
        <dependency-resolution>
            <extraRequirements>
                <requirement>
                    <type>eclipse-plugin</type>
                    <id>org.acme.module.fragment</id>
                    <versionRange>0.0.0</versionRange>
                </requirement>
            </extraRequirements>
        </dependency-resolution>
    </configuration>
</plugin>