Package org.apache.torque.generator.file

Examples of org.apache.torque.generator.file.Fileset


        }

        FileSourceProvider fileSourceProvider = null;
        if (sourceIncludes != null || sourceExcludes != null)
        {
            Fileset sourceFileset
                    = new Fileset(
                            projectPaths.getDefaultSourcePath(),
                            sourceIncludes,
                            sourceExcludes);
            log("Setting source includes to " + sourceIncludes,
                    Project.MSG_DEBUG);
View Full Code Here


                        throw new SAXException("Unknown source format : "
                                + format
                                + " Known types are: " + sourceFormats);
                    }
                }
                Fileset sourceFileset = new Fileset(
                        getProjectPaths().getDefaultSourcePath(),
                        includes,
                        excludes);

                sourceProvider = new FileSourceProvider(
View Full Code Here

        }

        FileSourceProvider fileSourceProvider = null;
        if (sourceIncludes != null || sourceExcludes != null)
        {
            Fileset sourceFileset
                    = new Fileset(
                            projectPaths.getDefaultSourcePath(),
                            sourceIncludes,
                            sourceExcludes);
            getLog().debug("Setting source includes to "
                    + sourceIncludes);
View Full Code Here

    }

    @Test
    public void testFilelistFixedNameBasedir() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("1.properties"),
                null);
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistFixedNameSubdir() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("subfolder/2.properties"),
                null);
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistMixedSlashBackslash() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("subfolder/subsubfolder\\3.properties"),
                null);
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistWildcardDir() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("*//2.properties"),
                null);
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistQuestionmarkFilename() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("?.properties"),
                null);
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistWildcardFilename() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("*.properties"),
                null);
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistDoubleDotsStayingInBaseDir() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("subfolder/../1.properties"),
                null);
        assertFileListEquals(
                fileset,
View Full Code Here

TOP

Related Classes of org.apache.torque.generator.file.Fileset

Copyright © 2018 www.massapicom. 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.