Package net.sourceforge.cruisecontrol

Examples of net.sourceforge.cruisecontrol.Modification$ModifiedFile


                int idxSeparator = line.lastIndexOf(File.separator);
                String folderName = line.substring(0, idxSeparator);
                String fileName = line.substring(idxSeparator + 1,
                        idxCheckedOutRevision);
                Modification modification = new Modification();
                Modification.ModifiedFile modFile = modification
                        .createModifiedFile(fileName, folderName);
                modification.modifiedTime = new Date(new File(folderName,
                        fileName).lastModified());
                modFile.revision = line.substring(idxCheckedOutRevision + 23);
                modification.revision = modFile.revision;
View Full Code Here


     *
     * @param lastBuild date of last build
     * @param now       IGNORED
     */
    public List getModifications(Date lastBuild, Date now) {
        Modification mod = new Modification("always");
        Modification.ModifiedFile modfile = mod.createModifiedFile("force build", "force build");
        modfile.action = "change";

        mod.userName = getUserName();
        //Oldest modification possible, sort of, 1 second past the last build.
        mod.modifiedTime = new Date(lastBuild.getTime() + 100);
View Full Code Here

    /**
     * Add a Modification to the list of modifications. All modifications are
     * listed as "change" and all have the same comment.
     */
    private void addRevision(File dependency) {
        Modification mod = new Modification("maven");
        Modification.ModifiedFile modfile = mod.createModifiedFile(dependency.getName(), dependency.getParent());
        modfile.action = "change";

        mod.userName = user;
        mod.modifiedTime = new Date(dependency.lastModified());
        mod.comment = "Maven project dependency: timestamp change detected.";
View Full Code Here

        }
        /*********************************************/
       Iterator itr = mods.iterator();

        while (itr.hasNext()) {
            Modification mod = (Modification) itr.next();
            System.out.println(
                " File Modified :"
                    + mod.fileName
                    + "Time Modified :"
                    + mod.modifiedTime.toString());
View Full Code Here

                //Go to the next line.
                nextLine = reader.readLine();
            }

            Modification nextModification = new Modification();
            nextModification.fileName = workingFilename;
            //MKS doesn't provide specific project or "folder" information.
            nextModification.folderName = "";

View Full Code Here

                //Go to the next line.
                nextLine = reader.readLine();
            }

            Modification nextModification = new Modification();

            nextModification.revision = revision;

            int lastSlashIndex = workingFileName.lastIndexOf("/");
            nextModification.fileName = workingFileName.substring(lastSlashIndex + 1);
View Full Code Here

                    }
                    return false;
                }
            });

            Modification mostRecent = null;

            for (int i = 0; i < newLogs.length; i++) {
                Modification modification = new Modification();
                String name = newLogs[i].getName();

                modification.modifiedTime = Log.parseDateFromLogFileName(name);
                modification.userName = "CruiseControl";
                modification.comment = "New build";
View Full Code Here

                currLine = reader.readLine();
                while (currLine != null && !currLine.startsWith("*****")) {
                    vssEntry.add(currLine);
                    currLine = reader.readLine();
                }
                Modification mod = handleEntry(vssEntry);
                if (mod != null) {
                    modifications.add(mod);
                }
            } else {
                currLine = reader.readLine();
View Full Code Here

                nameAndDateIndex++;
                nameAndDateLine = (String) entry.get(nameAndDateIndex);
                LOG.debug("adjusting for the line that starts with Label");
            }

            Modification modification = new Modification();
            modification.userName = parseUser(nameAndDateLine);
            modification.modifiedTime = parseDate(nameAndDateLine);

            String folderLine = (String) entry.get(0);
            int fileIndex = nameAndDateIndex + 1;
View Full Code Here

        entry.add("Label: \"Completely new version!\"");
        entry.add("User: Arass        Date: 10/21/02   Time: 12:48p");
        entry.add("Checked in $/code/development/src/org/ets/cbtidg/common/gui");
        entry.add("Comment: This is where I add a completely new, but alot nicer version of the date chooser.");

        Modification modification = vss.handleEntry(entry);
        assertEquals("DateChooser.java", modification.getFileName());

        assertEquals("/code/development/src/org/ets/cbtidg/common/gui", modification.getFolderName());
        assertEquals(
            "Comment: This is where I add a completely new, but alot nicer version of the date chooser.",
            modification.comment);
        assertEquals("Arass", modification.userName);
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.Modification$ModifiedFile

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.