Package hudson.plugins.analysis.util.model

Examples of hudson.plugins.analysis.util.model.JavaProject


     * Test whether a serialized project is the same object after
     * deserialization of the file format of release 2.2.
     */
    @Test
    public void ensureSameSerialization() {
        JavaProject project = deserialize("project.ser");

        verifyProject(project);
    }
View Full Code Here


     * Test whether a serialized project is the same object after
     * deserialization of the file format of release 2.2.
     */
    @Test
    public void ensureSameSerialization() {
        JavaProject project = deserialize("project.ser");

        verifyProject(project);
    }
View Full Code Here

        highWarnings = result.getNumberOfAnnotations(Priority.HIGH);
        normalWarnings = result.getNumberOfAnnotations(Priority.NORMAL);
        lowWarnings = result.getNumberOfAnnotations(Priority.LOW);

        JavaProject container = new JavaProject();
        container.addAnnotations(result.getAnnotations());

        project = new WeakReference<JavaProject>(container);

        computeZeroWarningsHighScore(build, result);
View Full Code Here

    public JavaProject getProject() {
        synchronized (projectLock) {
            if (project == null) {
                return loadResult();
            }
            JavaProject result = project.get();
            if (result == null) {
                return loadResult();
            }
            return result;
        }
View Full Code Here

     * removed by the garbage collector.
     *
     * @return the loaded result
     */
    private JavaProject loadResult() {
        JavaProject result;
        try {
            JavaProject newProject = new JavaProject();
            FileAnnotation[] annotations = (FileAnnotation[])getDataFile().read();
            newProject.addAnnotations(annotations);

            LOGGER.log(Level.FINE, "Loaded data file " + getDataFile() + " for build " + getOwner().getNumber());
            result = newProject;
        }
        catch (IOException exception) {
            LOGGER.log(Level.WARNING, "Failed to load " + getDataFile(), exception);
            result = new JavaProject();
        }
        project = new WeakReference<JavaProject>(result);

        return result;
    }
View Full Code Here

TOP

Related Classes of hudson.plugins.analysis.util.model.JavaProject

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.