Package com.netthreads.mavenize.model

Examples of com.netthreads.mavenize.model.ProjectFiles


         */
        @Override
        protected void handleFile(File file, int depth, Collection results) throws IOException
        {
            // Look for existing entry
            ProjectFiles projectFiles = (ProjectFiles) CollectionUtils.find(results, new FilePredicate(file));

            if (projectFiles != null)
            {
                logger.debug(projectFiles.getSourceSrc().getAbsolutePath() + ", " + file.getAbsolutePath());

                projectFiles.getFiles().add(file);
            }

        }
View Full Code Here


            if (directory.getName().equals(match))
            {
                String name = directory.getParent();

                // Look for existing entry
                ProjectFiles projectFiles = (ProjectFiles) CollectionUtils.find(results, new NamePredicate(name));

                if (projectFiles == null)
                {
                    logger.debug(directory.getAbsolutePath());

                    // Build target src dir to match source project
                    String partial = directory.getAbsolutePath().substring(sourcePath.length());
                    String targetSrc = targetPath + partial;
                    File target = new File(targetSrc);

                    projectFiles = new ProjectFiles(directory, target);
                    results.add(projectFiles);
                }
            }

            return true;
View Full Code Here

        }

        @Override
        public boolean evaluate(Object object)
        {
            ProjectFiles projectFiles = (ProjectFiles) object;

            boolean status = projectFiles.getSourceSrc().getParent().equals(name);

            return status;
        }
View Full Code Here

        @Override
        public boolean evaluate(Object object)
        {
            boolean status = false;

            ProjectFiles projectFiles = (ProjectFiles) object;

            String projectSourceSrc = projectFiles.getSourceSrc().getAbsolutePath();
            String fileSourceSrc = file.getAbsolutePath();
            int projectSourceSrcLen = projectSourceSrc.length();
            int fileSourceSrcLen = fileSourceSrc.length();

            if (fileSourceSrcLen > projectSourceSrcLen)
View Full Code Here

TOP

Related Classes of com.netthreads.mavenize.model.ProjectFiles

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.