Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for myClean (0.34 sec)

  1. platforms/documentation/docs/src/snippets/files/misc/kotlin/build.gradle.kts

            ant.withGroovyBuilder {
                "move"("file" to "${dir}/reports", "todir" to "${dir}/toArchive")
            }
        }
    }
    // end::move-example[]
    
    // tag::delete-example[]
    tasks.register<Delete>("myClean") {
        delete(buildDir)
    }
    // end::delete-example[]
    
    // tag::delete-with-filter-example[]
    tasks.register<Delete>("cleanTempFiles") {
        delete(fileTree("src").matching {
            include("**/*.tmp")
        })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 971 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/files/misc/groovy/build.gradle

        def dir = buildDir
    
        doLast {
            ant.move file: "${dir}/reports",
                     todir: "${dir}/toArchive"
        }
    }
    // end::move-example[]
    
    // tag::delete-example[]
    tasks.register('myClean', Delete) {
        delete buildDir
    }
    // end::delete-example[]
    
    // tag::delete-with-filter-example[]
    tasks.register('cleanTempFiles', Delete) {
        delete fileTree("src").matching {
            include "**/*.tmp"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 932 bytes
    - Viewed (0)
  3. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesFilesMiscIntegrationTest.groovy

            given:
            def dslDir = sample.dir.file(dsl)
            executer.inDirectory(dslDir)
            dslDir.file("build").createDir().file("dummy.txt").touch()
    
            when:
            succeeds('myClean')
    
            then:
            dslDir.file('build').assertDoesNotExist()
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    
        @UsesSample("files/misc")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

        def "detects when a task removes the build directory #buildDir"() {
            buildFile << """
                apply plugin: 'base'
    
                project.buildDir = file("${buildDir}")
    
                task myClean(type: Delete) {
                    delete buildDir
                }
    
                task producer {
                    def outputFile = new File(buildDir, "some/file/in/buildDir/output.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/util/MyBean.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.beans.util;
    
    /**
     * @author higa
     */
    public class MyBean {
    
        /**
         *
         */
        public String aaa;
    
        /**
         *
         */
        public String bbb;
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 803 bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final MyBean myBean = new MyBean();
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final PropertyDesc propDesc = beanDesc.getPropertyDesc("aaa");
            propDesc.setValue(myBean, null);
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = IllegalPropertyRuntimeException.class)
        public void testSetValue_notWritableWithField() throws Exception {
            final MyBean myBean = new MyBean();
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

            assertThat(ctor.getParameterTypes().length, is(1));
            assertThat(ctor.isPublic(), is(true));
            final MyBean myBean = ctor.newInstance("hoge");
            assertThat(myBean, is(notNullValue()));
            assertThat(myBean.s, is("hoge"));
        }
    
        /**
         */
        public static class MyBean {
            /** */
            public String s;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java

        @Test
        public void testFoo() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final MethodDesc foo = beanDesc.getMethodDesc("foo");
            assertThat(foo, is(notNullValue()));
            assertThat(foo.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(foo.getMethod(), is(MyBean.class.getMethod("foo")));
            assertThat(foo.getMethodName(), is("foo"));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            assertThat(parameterizedClassDesc.isParameterizedClass(), is(true));
            assertThat(parameterizedClassDesc.getRawClass(), is(sameClass(Class.class)));
            final MyBean myBean = new MyBean();
            aaa.setFieldValue(myBean, String.class);
            assertThat(aaa.getFieldValue(myBean), is(sameClass(String.class)));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = FieldNotStaticRuntimeException.class)
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java

            assertNotNull(bean.myBean);
            assertNotSame(bean.myBean.getClass(), MySessionScopedBean.class);
    
            assertThrows(OutOfScopeException.class, () -> bean.myBean.getSession());
    
            sessionScope.enter();
            sessionScope.seed(Session.class, this.session);
            assertNotNull(bean.myBean.getSession());
            assertNotNull(bean.myBean.getAnotherBean());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Apr 23 12:52:20 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top