# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\nam\main\serverplugins\sun\appsrv81 # 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: src/org/netbeans/modules/j2ee/sun/ide/j2ee/PlatformImpl.java *** C:\nam\main\serverplugins\sun\appsrv81\src\org\netbeans\modules\j2ee\sun\ide\j2ee\PlatformImpl.java Base (1.22) --- C:\nam\main\serverplugins\sun\appsrv81\src\org\netbeans\modules\j2ee\sun\ide\j2ee\PlatformImpl.java Locally Modified (Based On 1.22) *************** *** 25,30 **** --- 25,31 ---- import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; + import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; *************** *** 83,88 **** --- 84,99 ---- private static final String WEBSERVICES_RT_JAR = "lib/webservices-rt.jar"; //NOI18N private static final String WEBSERVICES_TOOLS_JAR = "lib/webservices-tools.jar"; //NOI18N + public static final Set SWDP_JAR_NAMES = new HashSet(Arrays.asList( + new String[] { + "lib/addons/restbeans-api.jar", + "lib/addons/restbeans-impl.jar", + "lib/addons/wadl2java.jar", + "lib/addons/localizer.jar", + "lib/addons/rome-0.9.jar", + "lib/addons/jdom-1.0.jar" + })); + private static final String[] TRUSTSTORE_LOCATION = new String[] { "config/cacerts.jks" //NOI18N }; *************** *** 281,286 **** --- 292,305 ---- lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_SRC, sources); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_JAVADOC, javadoc); libs.add(lib); + + l = getSwdpJarURLs(); + if (l != null) { + lib = lp.createLibrary(); + lib.setName(NbBundle.getMessage(PlatformImpl.class, "swdp")); // NOI18N + lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, l); + libs.add(lib); + } } catch(IOException e) { ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e); } *************** *** 288,293 **** --- 307,325 ---- libraries = (LibraryImplementation[])libs.toArray(new LibraryImplementation[libs.size()]); } + private List getSwdpJarURLs() throws MalformedURLException { + ArrayList ret = new ArrayList(); + for (String jarName : SWDP_JAR_NAMES) { + File jarFile = new File(root, jarName); + if (jarFile.isFile()) { + ret.add(fileToUrl(jarFile)); + } else { + return null; + } + } + return ret; + } + /** * Return platform's libraries. * Index: src/org/netbeans/modules/j2ee/sun/ide/j2ee/Bundle.properties *** C:\nam\main\serverplugins\sun\appsrv81\src\org\netbeans\modules\j2ee\sun\ide\j2ee\Bundle.properties Base (1.14) --- C:\nam\main\serverplugins\sun\appsrv81\src\org\netbeans\modules\j2ee\sun\ide\j2ee\Bundle.properties Locally Modified (Based On 1.14) *************** *** 180,185 **** --- 180,186 ---- saaj12=SOAP with Attachments API for Java (SAAJ) 1.2 jwsdp=JWSDP Library wsit=WSIT Library + swdp=SWDP Library LBL_driver_default=JDBC Driver Default Msg_RegFailure=Failed while registering resource : {0} Index: nbproject/private/.cvsignore *** C:\nam\main\serverplugins\sun\appsrv81\nbproject\private\.cvsignore No Base Revision --- C:\nam\main\serverplugins\sun\appsrv81\nbproject\private\.cvsignore Locally New *************** *** 1,0 **** --- 1,1 ---- + profiler