Examples of PhysicalPath


Examples of org.springframework.roo.project.PhysicalPath

        final Path[] expectedPaths = { ROOT };

        // Invoke and check
        assertEquals(expectedPaths.length, pom.getPhysicalPaths().size());
        for (final Path path : expectedPaths) {
            final PhysicalPath modulePath = pom.getPhysicalPath(path);
            assertEquals(new File(PROJECT_ROOT, path.getDefaultLocation()),
                    modulePath.getLocation());
            assertEquals(path.isJavaSource(), modulePath.isSource());
            final LogicalPath moduelPathId = modulePath.getLogicalPath();
            assertEquals(path, moduelPathId.getPath());
            assertEquals(ROOT_MODULE, moduelPathId.getModule());
        }
    }
View Full Code Here

Examples of org.springframework.roo.project.PhysicalPath

     *
     * @param path the path for which to get the canonical location (required)
     * @return <code>null</code> if this module has no such path
     */
    public String getPathLocation(final Path path) {
        final PhysicalPath modulePath = getPhysicalPath(path);
        if (modulePath == null) {
            return null;
        }
        return FileUtils.ensureTrailingSeparator(modulePath.getLocationPath());
    }
View Full Code Here

Examples of org.springframework.roo.project.PhysicalPath

        }
        return canonicalFilePath;
    }

    public String getPhysicalTypeIdentifier(final JavaType type) {
        final PhysicalPath containingPhysicalPath = getPhysicalPath(type);
        if (containingPhysicalPath == null) {
            return null;
        }
        final LogicalPath logicalPath = containingPhysicalPath.getLogicalPath();
        return PhysicalTypeIdentifier.createIdentifier(type, logicalPath);
    }
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.