Examples of exclude()


Examples of org.gradle.api.tasks.Copy.exclude()

        try
        {
            Copy copyTask = makeTask("extractNatives", Copy.class);
            {
                copyTask.exclude("META-INF", "META-INF/**", "META-INF/*");
                copyTask.into(delayedString(DevConstants.ECLIPSE_NATIVES).call());
                copyTask.dependsOn("extractWorkspace");
            }

            DelayedFile devJson = getDevJson();
View Full Code Here

Examples of org.gradle.api.tasks.bundling.Jar.exclude()

        Jar repackageTask = makeTask("repackMinecraft", Jar.class);
        {
            repackageTask.from(recompSrc);
            repackageTask.from(recompCls);
            repackageTask.exclude("*.java", "**/*.java", "**.java");
            repackageTask.dependsOn(recompTask);
           
            // file output configuration done in the delayed configuration.

            repackageTask.onlyIf(onlyIfCheck);
View Full Code Here

Examples of org.gradle.api.tasks.util.PatternSet.exclude()

        if (!isScanForTestClasses()) {
            if (patterns.getIncludes().isEmpty()) {
                patterns.include("**/*Tests.class", "**/*Test.class");
            }
            if (patterns.getExcludes().isEmpty()) {
                patterns.exclude("**/Abstract*.class");
            }
        }
        return getProject().fileTree(getTestClassesDir()).matching(patterns);
    }
}
View Full Code Here

Examples of org.gradle.api.tasks.util.PatternSet.exclude()

    public PatternSet getPatternSet() {
        PatternSet patterns = new PatternSet();
        patterns.setCaseSensitive(isCaseSensitive());
        patterns.include(getAllIncludes());
        patterns.includeSpecs(getAllIncludeSpecs());
        patterns.exclude(getAllExcludes());
        patterns.excludeSpecs(getAllExcludeSpecs());
        return patterns;
    }

    public boolean isCaseSensitive() {
View Full Code Here

Examples of org.hibernate.cfg.reveng.TableFilter.exclude()

 
  public void testTableExclude() {
    TableFilter tf = new TableFilter();
    tf.setMatchName("max");
    tf.setExclude(Boolean.TRUE);
    assertTrue(tf.exclude(new TableIdentifier("max") ).booleanValue() );
    assertNull(tf.exclude(new TableIdentifier("maxnotexact") ) );
    tf.setMatchName(".*max");
    assertTrue(tf.exclude(new TableIdentifier("max") ).booleanValue() );
    assertNull(tf.exclude(new TableIdentifier("maxnotending") ) );
    assertTrue(tf.exclude(new TableIdentifier("endingWithmax") ).booleanValue() );
View Full Code Here

Examples of org.jbehave.core.embedder.MetaFilter.DefaultMetaMatcher.exclude()

        assertThat(filter.asString(), equalTo(filterAsString));
        MetaMatcher metaMatcher = filter.metaMatcher();
        assertThat(metaMatcher, Matchers.instanceOf(DefaultMetaMatcher.class));
        DefaultMetaMatcher defaultMetaMatcher = (DefaultMetaMatcher)metaMatcher;
        assertThat(defaultMetaMatcher.include().toString(), equalTo("{author=Mauro, map=*API}"));
        assertThat(defaultMetaMatcher.exclude().toString(), equalTo("{skip=, theme=smoke testing}"));
    }

    @Test
    public void shouldFilterByNameAndValue() {
        assertFilterAllowsProperty("+theme smoke testing", "theme smoke testing", true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.