This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 53539
Collapse All | Expand All

(-)apichanges.xml (+22 lines)
Lines 81-86 Link Here
81
81
82
    <changes>
82
    <changes>
83
    
83
    
84
        <change id="Add-ModuleChangeDescriptor-getChangedFiles">
85
            <api name="plugins"/>
86
            <summary>Method getChangedFiles allows plugin code to access all
87
            the changes in current deployment.</summary>
88
            <version major="1" minor="6"/>
89
            <date day="18" month="1" year="2005"/>
90
            <author login="nnguyen"/>
91
            <compatibility binary="compatible" source="compatible" semantic="compatible" addition="yes"/>
92
            <description>
93
                <p>
94
                    The summary of changes provided by current
95
		    ModuleChangeDescriptor is not sufficient in many cases for
96
		    plugin code to ensure the incrementally deployed
97
		    application available.  This new method getChangedFiles
98
		    would serve as a 'catch-all' for plugin code to examine
99
		    details of the changes.
100
                </p>
101
            </description>
102
            <class package="org.netbeans.modules.j2ee.deployment.plugins.api" name="ModuleChangeDescriptor"/>
103
            <issue number="53539"/>
104
        </change>
105
84
        <change id="StartServer-Services-for-Target">
106
        <change id="StartServer-Services-for-Target">
85
            <api name="plugins"/>
107
            <api name="plugins"/>
86
            <summary>StartServer methods call to manage states for target server instances</summary>
108
            <summary>StartServer methods call to manage states for target server instances</summary>
(-)src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java (-1 / +7 lines)
Lines 320-326 Link Here
320
        boolean ejbsChanged = false;
320
        boolean ejbsChanged = false;
321
        List changedEjbs = Collections.EMPTY_LIST;
321
        List changedEjbs = Collections.EMPTY_LIST;
322
        ModuleType moduleType = null;
322
        ModuleType moduleType = null;
323
        
323
        List changedFiles = new ArrayList();
324
        List descriptorRelativePaths;
324
        List descriptorRelativePaths;
325
        List serverDescriptorRelativePaths;
325
        List serverDescriptorRelativePaths;
326
        AppChanges() {
326
        AppChanges() {
Lines 339-344 Link Here
339
            List ejbs = Arrays.asList(changes.getChangedEjbs());
339
            List ejbs = Arrays.asList(changes.getChangedEjbs());
340
            if (ejbs.size() > 0)
340
            if (ejbs.size() > 0)
341
                changedEjbs.addAll(ejbs);
341
                changedEjbs.addAll(ejbs);
342
            changedFiles.addAll(changes.changedFiles);
342
        }
343
        }
343
        
344
        
344
        private void record(String relativePath) {
345
        private void record(String relativePath) {
Lines 362-368 Link Here
362
                serverDescriptorChanged = true;
363
                serverDescriptorChanged = true;
363
                return;
364
                return;
364
            }
365
            }
366
            changedFiles.add(new File(relativePath));
365
        }
367
        }
368
        
366
        private void record(ModuleChangeReporter mcr, long since) {
369
        private void record(ModuleChangeReporter mcr, long since) {
367
            EjbChangeDescriptor ecd = mcr.getEjbChanges(since);
370
            EjbChangeDescriptor ecd = mcr.getEjbChanges(since);
368
            ejbsChanged = ecd.ejbsChanged();
371
            ejbsChanged = ecd.ejbsChanged();
Lines 380-385 Link Here
380
        public boolean ejbsChanged() { return ejbsChanged; }
383
        public boolean ejbsChanged() { return ejbsChanged; }
381
        public String[] getChangedEjbs() {
384
        public String[] getChangedEjbs() {
382
            return (String[]) changedEjbs.toArray(new String[]{});
385
            return (String[]) changedEjbs.toArray(new String[]{});
386
        }
387
        public File[] getChangedFiles() {
388
            return (File[]) changedFiles.toArray(new File[changedFiles.size()]);
383
        }
389
        }
384
    }
390
    }
385
}
391
}
(-)src/org/netbeans/modules/j2ee/deployment/plugins/api/ModuleChangeDescriptor.java (+6 lines)
Lines 13-18 Link Here
13
13
14
package org.netbeans.modules.j2ee.deployment.plugins.api;
14
package org.netbeans.modules.j2ee.deployment.plugins.api;
15
15
16
import java.io.File;
17
16
/** 
18
/** 
17
 * This interface allows a plugin to find out what about a module
19
 * This interface allows a plugin to find out what about a module
18
 * or application has changed since the last deployment. 
20
 * or application has changed since the last deployment. 
Lines 39-42 Link Here
39
     */
41
     */
40
    public boolean manifestChanged();
42
    public boolean manifestChanged();
41
43
44
    /**
45
     * Returns distribution relative paths of changed files.
46
     */
47
    public File[] getChangedFiles();
42
}
48
}

Return to bug 53539