# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /export/home/vbk/nbtrunkFoo/j2eeserver # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: nbproject/project.properties *** /export/home/vbk/nbtrunkFoo/j2eeserver/nbproject/project.properties Base (1.19) --- /export/home/vbk/nbtrunkFoo/j2eeserver/nbproject/project.properties Locally Modified (Based On 1.19) *************** *** 17,23 **** is.autoload=true javac.source=1.5 ! spec.version.base=1.26.0 javadoc.overview=${basedir}/api/doc/overview.html javadoc.arch=${basedir}/arch.xml --- 17,23 ---- is.autoload=true javac.source=1.5 ! spec.version.base=1.27.0 javadoc.overview=${basedir}/api/doc/overview.html javadoc.arch=${basedir}/arch.xml Index: apichanges.xml *** /export/home/vbk/nbtrunkFoo/j2eeserver/apichanges.xml Base (1.28) --- /export/home/vbk/nbtrunkFoo/j2eeserver/apichanges.xml Locally Modified (Based On 1.28) *************** *** 86,91 **** --- 86,112 ---- + + + + Add a method that will allow Java EE project to determine if + they are being targeted at a server which will support directory- + based deployment. + + + + + + +

+ Expose the directory deployment capabilities that a target server may + have which would allow the build script for a project to be + optimized to delay or eliminate unnecessary steps +

+
+ + +
*************** *** 110,116 **** Adding an API for working with data sources, message-driven beans and JMS messages ! --- 131,137 ---- Adding an API for working with data sources, message-driven beans and JMS messages ! Index: manifest.mf *** /export/home/vbk/nbtrunkFoo/j2eeserver/manifest.mf Base (1.53) --- /export/home/vbk/nbtrunkFoo/j2eeserver/manifest.mf Locally Modified (Based On 1.53) Index: src/org/netbeans/modules/j2ee/deployment/devmodules/api/Deployment.java *** /export/home/vbk/nbtrunkFoo/j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/api/Deployment.java Base (1.26) --- /export/home/vbk/nbtrunkFoo/j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/api/Deployment.java Locally Modified (Based On 1.26) *************** *** 34,39 **** --- 34,40 ---- import org.netbeans.modules.j2ee.deployment.impl.projects.*; import org.netbeans.modules.j2ee.deployment.impl.ui.*; import org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties; + import org.netbeans.modules.j2ee.deployment.plugins.spi.IncrementalDeployment; import org.netbeans.modules.j2ee.deployment.plugins.spi.JDBCDriverDeployer; import org.openide.ErrorManager; import org.openide.util.NbBundle; *************** *** 273,278 **** --- 274,300 ---- return null; } + /** + * Determine if a server instance will attempt to use file deployment for a + * J2eeModule. + * + * @param instanceId The target instance's server id + * @param mod The module to be deployed + * @return Whether file deployment will be used + * @since 1.27 + */ + public boolean canFileDeploy(String instanceId, J2eeModule mod) { + boolean retVal = false; + ServerInstance instance = ServerRegistry.getInstance().getServerInstance(instanceId); + if (null != instance) { + IncrementalDeployment incr = instance.getIncrementalDeployment(); + if (null != incr) { + retVal = incr.canFileDeploy(null, mod); + } + } + return retVal; + } + public String getDefaultServerInstanceID () { ServerString defInst = ServerRegistry.getInstance ().getDefaultInstance (); if (defInst != null) {