? .nbintdb Index: apichanges.xml =================================================================== RCS file: /cvs/j2eeserver/apichanges.xml,v retrieving revision 1.7 diff -u -b -r1.7 apichanges.xml --- apichanges.xml 12 Jan 2005 19:26:00 -0000 1.7 +++ apichanges.xml 18 Jan 2005 17:30:19 -0000 @@ -81,6 +81,28 @@ + + + Method getChangedFiles allows plugin code to access all + the changes in current deployment. + + + + + +

+ The summary of changes provided by current + ModuleChangeDescriptor is not sufficient in many cases for + plugin code to ensure the incrementally deployed + application available. This new method getChangedFiles + would serve as a 'catch-all' for plugin code to examine + details of the changes. +

+
+ + +
+ StartServer methods call to manage states for target server instances Index: src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java =================================================================== RCS file: /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java,v retrieving revision 1.18 diff -u -b -r1.18 ServerFileDistributor.java --- src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java 15 Dec 2004 21:44:56 -0000 1.18 +++ src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java 18 Jan 2005 17:30:19 -0000 @@ -320,7 +320,7 @@ boolean ejbsChanged = false; List changedEjbs = Collections.EMPTY_LIST; ModuleType moduleType = null; - + List changedFiles = new ArrayList(); List descriptorRelativePaths; List serverDescriptorRelativePaths; AppChanges() { @@ -339,6 +339,7 @@ List ejbs = Arrays.asList(changes.getChangedEjbs()); if (ejbs.size() > 0) changedEjbs.addAll(ejbs); + changedFiles.addAll(changes.changedFiles); } private void record(String relativePath) { @@ -362,7 +363,9 @@ serverDescriptorChanged = true; return; } + changedFiles.add(new File(relativePath)); } + private void record(ModuleChangeReporter mcr, long since) { EjbChangeDescriptor ecd = mcr.getEjbChanges(since); ejbsChanged = ecd.ejbsChanged(); @@ -380,6 +383,9 @@ public boolean ejbsChanged() { return ejbsChanged; } public String[] getChangedEjbs() { return (String[]) changedEjbs.toArray(new String[]{}); + } + public File[] getChangedFiles() { + return (File[]) changedFiles.toArray(new File[changedFiles.size()]); } } } Index: src/org/netbeans/modules/j2ee/deployment/plugins/api/ModuleChangeDescriptor.java =================================================================== RCS file: /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/api/ModuleChangeDescriptor.java,v retrieving revision 1.3 diff -u -b -r1.3 ModuleChangeDescriptor.java --- src/org/netbeans/modules/j2ee/deployment/plugins/api/ModuleChangeDescriptor.java 25 Mar 2004 23:27:31 -0000 1.3 +++ src/org/netbeans/modules/j2ee/deployment/plugins/api/ModuleChangeDescriptor.java 18 Jan 2005 17:30:19 -0000 @@ -13,6 +13,8 @@ package org.netbeans.modules.j2ee.deployment.plugins.api; +import java.io.File; + /** * This interface allows a plugin to find out what about a module * or application has changed since the last deployment. @@ -39,4 +41,8 @@ */ public boolean manifestChanged(); + /** + * Returns distribution relative paths of changed files. + */ + public File[] getChangedFiles(); }