Index: ant/build.xml =================================================================== RCS file: /cvs/ant/build.xml,v retrieving revision 1.40 diff -u -t -r1.40 build.xml --- ant/build.xml 24 Sep 2001 18:50:55 -0000 1.40 +++ ant/build.xml 1 Oct 2001 19:01:09 -0000 @@ -96,7 +96,7 @@ @@ -105,9 +105,6 @@ For the Ant runtime and manual: - - Support for Ant build scripts. - Index: apisupport/build.xml =================================================================== RCS file: /cvs/apisupport/build.xml,v retrieving revision 1.48 diff -u -t -r1.48 build.xml --- apisupport/build.xml 24 Sep 2001 19:02:08 -0000 1.48 +++ apisupport/build.xml 1 Oct 2001 19:01:09 -0000 @@ -116,7 +116,7 @@ @@ -133,7 +133,7 @@ Index: apisupport/lite/build.xml =================================================================== RCS file: /cvs/apisupport/lite/build.xml,v retrieving revision 1.10 diff -u -t -r1.10 build.xml --- apisupport/lite/build.xml 24 Sep 2001 12:13:25 -0000 1.10 +++ apisupport/lite/build.xml 1 Oct 2001 19:01:09 -0000 @@ -62,7 +62,7 @@ Index: applet/build.xml =================================================================== RCS file: /cvs/applet/build.xml,v retrieving revision 1.21 diff -u -t -r1.21 build.xml --- applet/build.xml 24 Sep 2001 12:13:25 -0000 1.21 +++ applet/build.xml 1 Oct 2001 19:01:09 -0000 @@ -58,7 +58,7 @@ Index: autoupdate/build.xml =================================================================== RCS file: /cvs/autoupdate/build.xml,v retrieving revision 1.26 diff -u -t -r1.26 build.xml --- autoupdate/build.xml 24 Sep 2001 12:13:25 -0000 1.26 +++ autoupdate/build.xml 1 Oct 2001 19:01:09 -0000 @@ -89,7 +89,7 @@ Index: beans/build.xml =================================================================== RCS file: /cvs/beans/build.xml,v retrieving revision 1.19 diff -u -t -r1.19 build.xml --- beans/build.xml 24 Sep 2001 12:13:25 -0000 1.19 +++ beans/build.xml 1 Oct 2001 19:01:09 -0000 @@ -57,14 +57,10 @@ - - Development of JavaBeans components, including bean - properties, info, and event sets. - Index: classfile/build.xml =================================================================== RCS file: /cvs/classfile/build.xml,v retrieving revision 1.7 diff -u -t -r1.7 build.xml --- classfile/build.xml 24 Sep 2001 12:13:25 -0000 1.7 +++ classfile/build.xml 1 Oct 2001 19:01:09 -0000 @@ -46,13 +46,10 @@ - - Query all aspects of specified classfiles. - Index: clazz/build.xml =================================================================== RCS file: /cvs/clazz/build.xml,v retrieving revision 1.20 diff -u -t -r1.20 build.xml --- clazz/build.xml 24 Sep 2001 12:13:25 -0000 1.20 +++ clazz/build.xml 1 Oct 2001 19:01:10 -0000 @@ -54,16 +54,14 @@ - - Sourceless Java classes and serialized JavaBeans components. - Index: corba/build.xml =================================================================== RCS file: /cvs/corba/build.xml,v retrieving revision 1.31 diff -u -t -r1.31 build.xml --- corba/build.xml 24 Sep 2001 14:37:32 -0000 1.31 +++ corba/build.xml 1 Oct 2001 19:01:10 -0000 @@ -138,13 +138,10 @@ - - CORBA ... - Index: cpp/build.xml =================================================================== RCS file: /cvs/cpp/build.xml,v retrieving revision 1.4 diff -u -t -r1.4 build.xml --- cpp/build.xml 24 Sep 2001 17:08:16 -0000 1.4 +++ cpp/build.xml 1 Oct 2001 19:01:10 -0000 @@ -79,14 +79,10 @@ - - Editing of cpp files (resource bundles), including a - table-oriented view with keys and locales. - Index: cpplite/build.xml =================================================================== RCS file: /cvs/cpplite/build.xml,v retrieving revision 1.18 diff -u -t -r1.18 build.xml --- cpplite/build.xml 29 Sep 2001 13:47:52 -0000 1.18 +++ cpplite/build.xml 1 Oct 2001 19:01:10 -0000 @@ -123,17 +123,10 @@ - - Lightweight support for C/C++. - It supports editting, compiling and linking of executables and static - linked libraries. - Homepage: http://cpplite.netbeans.org - Tutorial: http://cpplite.netbeans.org/docs/tutorial.html - Index: cpplite/manifest.mf =================================================================== RCS file: /cvs/cpplite/manifest.mf,v retrieving revision 1.12 diff -u -t -r1.12 manifest.mf --- cpplite/manifest.mf 29 Sep 2001 13:47:52 -0000 1.12 +++ cpplite/manifest.mf 1 Oct 2001 19:01:10 -0000 @@ -3,6 +3,11 @@ OpenIDE-Module-Install: org/netbeans/modules/cpplite/CPPModule.class OpenIDE-Module-Name: CPP support OpenIDE-Module-Short-Description: Supports work with C/C++ files. +OpenIDE-Module-Long-Description: Lightweight support for C/C++. + It supports editing, compiling and linking of executables and static + linked libraries. + Homepage: http://cpplite.netbeans.org/ + Tutorial: http://cpplite.netbeans.org/docs/tutorial.html OpenIDE-Module-Display-Category: C/C++ OpenIDE-Module-Implementation-Version: @BUILD_NUMBER_SUBST@ OpenIDE-Module-Specification-Version: 1.4 Index: db/build.xml =================================================================== RCS file: /cvs/db/build.xml,v retrieving revision 1.23 diff -u -t -r1.23 build.xml --- db/build.xml 20 Sep 2001 17:58:41 -0000 1.23 +++ db/build.xml 1 Oct 2001 19:01:10 -0000 @@ -103,13 +103,10 @@ - - Database Explorer - Index: debuggercore/build.xml =================================================================== RCS file: /cvs/debuggercore/build.xml,v retrieving revision 1.27 diff -u -t -r1.27 build.xml --- debuggercore/build.xml 24 Sep 2001 12:13:26 -0000 1.27 +++ debuggercore/build.xml 1 Oct 2001 19:01:10 -0000 @@ -57,13 +57,10 @@ - - Foundation for the IDE's debugger. - Index: debuggerjpda/build.xml =================================================================== RCS file: /cvs/debuggerjpda/build.xml,v retrieving revision 1.21 diff -u -t -r1.21 build.xml --- debuggerjpda/build.xml 24 Sep 2001 12:13:26 -0000 1.21 +++ debuggerjpda/build.xml 1 Oct 2001 19:01:11 -0000 @@ -72,15 +72,10 @@ - - JPDA (Java Platform Debugger Architecture) debugger support. - Requires that you have jpda.jar installed (or are using JDK - 1.3). - Index: debuggertools/build.xml =================================================================== RCS file: /cvs/debuggertools/build.xml,v retrieving revision 1.20 diff -u -t -r1.20 build.xml --- debuggertools/build.xml 24 Sep 2001 12:13:26 -0000 1.20 +++ debuggertools/build.xml 1 Oct 2001 19:01:11 -0000 @@ -65,13 +65,10 @@ - - Debugger based on old-style tools debugger in JSDK. - Index: editor/build.xml =================================================================== RCS file: /cvs/editor/build.xml,v retrieving revision 1.23 diff -u -t -r1.23 build.xml --- editor/build.xml 24 Sep 2001 12:13:27 -0000 1.23 +++ editor/build.xml 1 Oct 2001 19:01:11 -0000 @@ -78,13 +78,10 @@ - - IDE's standard source editor. - Index: extbrowser/build.xml =================================================================== RCS file: /cvs/extbrowser/build.xml,v retrieving revision 1.17 diff -u -t -r1.17 build.xml --- extbrowser/build.xml 24 Sep 2001 12:13:27 -0000 1.17 +++ extbrowser/build.xml 1 Oct 2001 19:01:11 -0000 @@ -67,7 +67,7 @@ Index: externaleditor/build.xml =================================================================== RCS file: /cvs/externaleditor/build.xml,v retrieving revision 1.5 diff -u -t -r1.5 build.xml --- externaleditor/build.xml 1 Oct 2001 01:15:45 -0000 1.5 +++ externaleditor/build.xml 1 Oct 2001 19:01:11 -0000 @@ -95,13 +95,10 @@ - - Support for XEmacs, Vim and other external editors as the IDE's editor. - Index: externaleditor/src/org/netbeans/modules/externaleditor/Bundle.properties =================================================================== RCS file: /cvs/externaleditor/src/org/netbeans/modules/externaleditor/Bundle.properties,v retrieving revision 1.6 diff -u -t -r1.6 Bundle.properties --- externaleditor/src/org/netbeans/modules/externaleditor/Bundle.properties 28 Sep 2001 23:10:15 -0000 1.6 +++ externaleditor/src/org/netbeans/modules/externaleditor/Bundle.properties 1 Oct 2001 19:01:11 -0000 @@ -6,7 +6,7 @@ # manifest localization OpenIDE-Module-Name=External Editor Support - +OpenIDE-Module-Long-Description=Support for XEmacs, Vim and other external editors as the IDE's editor. ############################################################################ ## Error messages; ERR_ goes to stderr, EXC_ is in exception, EMSG_ is the Index: filecopy/build.xml =================================================================== RCS file: /cvs/filecopy/build.xml,v retrieving revision 1.23 diff -u -t -r1.23 build.xml --- filecopy/build.xml 1 Oct 2001 08:56:18 -0000 1.23 +++ filecopy/build.xml 1 Oct 2001 19:01:11 -0000 @@ -74,13 +74,10 @@ - - Filecopy module - Index: form/build.xml =================================================================== RCS file: /cvs/form/build.xml,v retrieving revision 1.29 diff -u -t -r1.29 build.xml --- form/build.xml 24 Sep 2001 12:13:27 -0000 1.29 +++ form/build.xml 1 Oct 2001 19:01:11 -0000 @@ -70,13 +70,10 @@ - - The visual Form Editor. - Index: freestylebrowser/build.xml =================================================================== RCS file: /cvs/freestylebrowser/build.xml,v retrieving revision 1.2 diff -u -t -r1.2 build.xml --- freestylebrowser/build.xml 7 Aug 2001 17:15:17 -0000 1.2 +++ freestylebrowser/build.xml 1 Oct 2001 19:01:12 -0000 @@ -57,13 +57,10 @@ - - New Object Browser for NetBeans - Index: html/build.xml =================================================================== RCS file: /cvs/html/build.xml,v retrieving revision 1.19 diff -u -t -r1.19 build.xml --- html/build.xml 24 Sep 2001 12:13:27 -0000 1.19 +++ html/build.xml 1 Oct 2001 19:01:12 -0000 @@ -55,7 +55,7 @@ Index: httpserver/build.xml =================================================================== RCS file: /cvs/httpserver/build.xml,v retrieving revision 1.25 diff -u -t -r1.25 build.xml --- httpserver/build.xml 24 Sep 2001 12:13:27 -0000 1.25 +++ httpserver/build.xml 1 Oct 2001 19:01:12 -0000 @@ -68,7 +68,7 @@ Index: i18n/build.xml =================================================================== RCS file: /cvs/i18n/build.xml,v retrieving revision 1.31 diff -u -t -r1.31 build.xml --- i18n/build.xml 24 Sep 2001 12:13:28 -0000 1.31 +++ i18n/build.xml 1 Oct 2001 19:01:12 -0000 @@ -85,13 +85,10 @@ - - Internationalization wizard. - Index: icebrowser/build.xml =================================================================== RCS file: /cvs/icebrowser/build.xml,v retrieving revision 1.25 diff -u -t -r1.25 build.xml --- icebrowser/build.xml 24 Sep 2001 12:13:28 -0000 1.25 +++ icebrowser/build.xml 1 Oct 2001 19:01:12 -0000 @@ -67,7 +67,7 @@ Index: image/build.xml =================================================================== RCS file: /cvs/image/build.xml,v retrieving revision 1.20 diff -u -t -r1.20 build.xml --- image/build.xml 24 Sep 2001 12:13:28 -0000 1.20 +++ image/build.xml 1 Oct 2001 19:01:12 -0000 @@ -54,13 +54,10 @@ - - Provides support for viewing images such as GIFs and JPEGs in the IDE. - Index: innertesters/build.xml =================================================================== RCS file: /cvs/innertesters/build.xml,v retrieving revision 1.14 diff -u -t -r1.14 build.xml --- innertesters/build.xml 24 Sep 2001 12:13:28 -0000 1.14 +++ innertesters/build.xml 1 Oct 2001 19:01:12 -0000 @@ -61,7 +61,7 @@ Index: itutor/build.xml =================================================================== RCS file: /cvs/itutor/build.xml,v retrieving revision 1.2 diff -u -t -r1.2 build.xml --- itutor/build.xml 31 Jan 2001 15:22:49 -0000 1.2 +++ itutor/build.xml 1 Oct 2001 19:01:12 -0000 @@ -50,13 +50,10 @@ - - Editing of plain text files. - Index: j2eeserver/build.xml =================================================================== RCS file: /cvs/j2eeserver/build.xml,v retrieving revision 1.9 diff -u -t -r1.9 build.xml --- j2eeserver/build.xml 23 Aug 2001 07:59:26 -0000 1.9 +++ j2eeserver/build.xml 1 Oct 2001 19:01:12 -0000 @@ -18,6 +18,9 @@ + + + @@ -32,7 +35,7 @@ @@ -126,7 +129,7 @@ - + Index: jarpackager/build.xml =================================================================== RCS file: /cvs/jarpackager/build.xml,v retrieving revision 1.24 diff -u -t -r1.24 build.xml --- jarpackager/build.xml 24 Sep 2001 12:13:29 -0000 1.24 +++ jarpackager/build.xml 1 Oct 2001 19:01:12 -0000 @@ -56,14 +56,10 @@ - - JAR Packager for interactive creation and maintenance of JAR - files. - Index: jasm/Manifest.mf =================================================================== RCS file: /cvs/jasm/Manifest.mf,v retrieving revision 1.6 diff -u -t -r1.6 Manifest.mf --- jasm/Manifest.mf 30 Apr 2001 08:11:00 -0000 1.6 +++ jasm/Manifest.mf 1 Oct 2001 19:01:12 -0000 @@ -1,5 +1,6 @@ OpenIDE-Module: org.netbeans.modules.jasm/1 OpenIDE-Module-Name: JASM +OpenIDE-Module-Long-Description: Java assembler/disassembler module. OpenIDE-Module-Display-Category: Java OpenIDE-Module-Module-Dependencies: org.netbeans.modules.editor/1 > 1.4 OpenIDE-Module-Install: org/netbeans/modules/jasm/JASMModule.class Index: jasm/build.xml =================================================================== RCS file: /cvs/jasm/build.xml,v retrieving revision 1.7 diff -u -t -r1.7 build.xml --- jasm/build.xml 24 Sep 2001 12:13:29 -0000 1.7 +++ jasm/build.xml 1 Oct 2001 19:01:12 -0000 @@ -58,14 +58,11 @@ - - Java assembler/disassembler module. - Index: java/build.xml =================================================================== RCS file: /cvs/java/build.xml,v retrieving revision 1.30 diff -u -t -r1.30 build.xml --- java/build.xml 24 Sep 2001 12:13:29 -0000 1.30 +++ java/build.xml 1 Oct 2001 19:01:13 -0000 @@ -67,13 +67,10 @@ - - Basic ability to edit Java source files. - Index: java3d/build.xml =================================================================== RCS file: /cvs/java3d/build.xml,v retrieving revision 1.2 diff -u -t -r1.2 build.xml --- java3d/build.xml 19 Sep 2001 16:41:02 -0000 1.2 +++ java3d/build.xml 1 Oct 2001 19:01:13 -0000 @@ -60,13 +60,10 @@ - - Java 3D - Index: javacvs/build.xml =================================================================== RCS file: /cvs/javacvs/build.xml,v retrieving revision 1.19 diff -u -t -r1.19 build.xml --- javacvs/build.xml 24 Sep 2001 12:13:29 -0000 1.19 +++ javacvs/build.xml 1 Oct 2001 19:01:13 -0000 @@ -62,11 +62,8 @@ - + - - cvs filesystem that uses it's own java cvs library. - Index: javadoc/build.xml =================================================================== RCS file: /cvs/javadoc/build.xml,v retrieving revision 1.22 diff -u -t -r1.22 build.xml --- javadoc/build.xml 24 Sep 2001 12:13:29 -0000 1.22 +++ javadoc/build.xml 1 Oct 2001 19:01:13 -0000 @@ -59,13 +59,10 @@ - - View and generate Javadoc class documentation. - Index: jini/build.xml =================================================================== RCS file: /cvs/jini/build.xml,v retrieving revision 1.19 diff -u -t -r1.19 build.xml --- jini/build.xml 24 Sep 2001 12:13:29 -0000 1.19 +++ jini/build.xml 1 Oct 2001 19:01:13 -0000 @@ -81,16 +81,10 @@ - - Provides support for development of Jini applications. It requires - jini-core.jar, jini-ext.jar, and sun-util.jar in your classpath. These JARs - are part of the Jini Technology Starter Kit (see http://www.sun.com/jini/). - You may add them to your NetBeans or JRE lib/ext/ directories. - Index: jini/manifest.mf =================================================================== RCS file: /cvs/jini/manifest.mf,v retrieving revision 1.33 diff -u -t -r1.33 manifest.mf --- jini/manifest.mf 15 Aug 2001 15:17:38 -0000 1.33 +++ jini/manifest.mf 1 Oct 2001 19:01:27 -0000 @@ -1,5 +1,9 @@ OpenIDE-Module: org.netbeans.modules.jini/1 OpenIDE-Module-Name: Jini +OpenIDE-Module-Long-Description: Provides support for development of Jini applications. It requires + jini-core.jar, jini-ext.jar, and sun-util.jar in your classpath. These JARs + are part of the Jini Technology Starter Kit (see http://www.sun.com/jini/). + You may add them to your NetBeans or JRE lib/ext/ directories. OpenIDE-Module-Install: org/netbeans/modules/jini/JiniModule.class OpenIDE-Module-IDE-Dependencies: IDE/1 > 1.2 OpenIDE-Module-Module-Dependencies: org.netbeans.modules.httpserver/1 > 1.2 Index: jndi/build.xml =================================================================== RCS file: /cvs/jndi/build.xml,v retrieving revision 1.27 diff -u -t -r1.27 build.xml --- jndi/build.xml 24 Sep 2001 12:13:30 -0000 1.27 +++ jndi/build.xml 1 Oct 2001 19:01:27 -0000 @@ -71,13 +71,10 @@ - - JNDI module - Index: junit/build.xml =================================================================== RCS file: /cvs/junit/build.xml,v retrieving revision 1.8 diff -u -t -r1.8 build.xml --- junit/build.xml 20 Sep 2001 09:43:54 -0000 1.8 +++ junit/build.xml 1 Oct 2001 19:01:27 -0000 @@ -67,7 +67,7 @@ Index: logger/build.xml =================================================================== RCS file: /cvs/logger/build.xml,v retrieving revision 1.10 diff -u -t -r1.10 build.xml --- logger/build.xml 23 Aug 2001 07:59:28 -0000 1.10 +++ logger/build.xml 1 Oct 2001 19:01:27 -0000 @@ -78,13 +78,10 @@ - - The TraceLogger library and module. - Index: makefile/build.xml =================================================================== RCS file: /cvs/makefile/build.xml,v retrieving revision 1.10 diff -u -t -r1.10 build.xml --- makefile/build.xml 24 Sep 2001 12:13:30 -0000 1.10 +++ makefile/build.xml 1 Oct 2001 19:01:27 -0000 @@ -56,13 +56,10 @@ - - Basic support for running Makefiles from inside the IDE. - Index: makefile/manifest.mf =================================================================== RCS file: /cvs/makefile/manifest.mf,v retrieving revision 1.24 diff -u -t -r1.24 manifest.mf --- makefile/manifest.mf 1 Mar 2001 13:10:57 -0000 1.24 +++ makefile/manifest.mf 1 Oct 2001 19:01:27 -0000 @@ -1,5 +1,6 @@ OpenIDE-Module: org.netbeans.modules.makefile/1 OpenIDE-Module-Name: Makefiles +OpenIDE-Module-Long-Description: Basic support for running Makefiles from inside the IDE. OpenIDE-Module-Description: org.netbeans.modules.makefile.docs.makefileHelpSet OpenIDE-Module-Specification-Version: 1.4 OpenIDE-Module-Implementation-Version: @BUILD_NUMBER_SUBST@ Index: multicompile/build.xml =================================================================== RCS file: /cvs/multicompile/build.xml,v retrieving revision 1.11 diff -u -t -r1.11 build.xml --- multicompile/build.xml 24 Sep 2001 12:13:30 -0000 1.11 +++ multicompile/build.xml 1 Oct 2001 19:01:27 -0000 @@ -50,14 +50,10 @@ - - Experimental support for user-defined object types and - special compilation procedures. - Index: multicompile/manifest.mf =================================================================== RCS file: /cvs/multicompile/manifest.mf,v retrieving revision 1.6 diff -u -t -r1.6 manifest.mf --- multicompile/manifest.mf 1 Mar 2001 13:10:58 -0000 1.6 +++ multicompile/manifest.mf 1 Oct 2001 19:01:27 -0000 @@ -1,6 +1,8 @@ Manifest-Version: 1.0 OpenIDE-Module: org.netbeans.modules.multicompile OpenIDE-Module-Name: Multi-Stage Compilation +OpenIDE-Module-Long-Description: Experimental support for user-defined object types and + special compilation procedures. OpenIDE-Module-Specification-Version: 0.5 OpenIDE-Module-Implementation-Version: @BUILD_NUMBER_SUBST@ Index: nbbuild/antsrc/org/netbeans/nbbuild/MakeListOfNBM.java =================================================================== RCS file: /cvs/nbbuild/antsrc/org/netbeans/nbbuild/MakeListOfNBM.java,v retrieving revision 1.5 diff -u -t -r1.5 MakeListOfNBM.java --- nbbuild/antsrc/org/netbeans/nbbuild/MakeListOfNBM.java 25 Sep 2001 09:03:36 -0000 1.5 +++ nbbuild/antsrc/org/netbeans/nbbuild/MakeListOfNBM.java 1 Oct 2001 19:01:27 -0000 @@ -62,23 +62,11 @@ } catch (Exception ex) { throw new BuildException( "Can't get fileset of NBM", ex, location ); } - File manifest = null; + Attributes attr; try { - manifest = (File)nbms[i].getClass().getMethod("getManifest",null).invoke(nbms[i],null); + attr = (Attributes)nbms[i].getClass().getMethod("getAttributes",null).invoke(nbms[i],null); } catch (Exception ex) { - throw new BuildException( "Can't get name of manifest file", ex, location ); - } - - Attributes attr = null; - try { - InputStream manifestStream = new FileInputStream (manifest); - try { - attr = new Manifest (manifestStream).getMainAttributes (); - } finally { - manifestStream.close (); - } - } catch (IOException e) { - throw new BuildException ("exception when reading manifest " + manifest, e, location); + throw new BuildException( "Can't get manifest attributes", ex, location ); } String codenamebase = attr.getValue ("OpenIDE-Module"); @@ -101,6 +89,7 @@ String include[] = ds.getIncludedFiles(); for( int j=0; j < include.length; j++ ){ + if (include[j].equals("Info/info.xml")) continue; try { File inFile = new File( ds.getBasedir(), include[j] ); FileInputStream inFileStream = new FileInputStream( inFile ); @@ -109,8 +98,10 @@ inFileStream.read( array ); inFileStream.close(); crc.update( array ); - - version.addFileWithCrc( inFile.getAbsolutePath().substring((ds.getBasedir().getAbsolutePath() + "/netbeans/").length() ), Long.toString( crc.getValue() ) ); + String abs = inFile.getAbsolutePath(); + String prefix = ds.getBasedir().getAbsolutePath() + "/netbeans/"; + if (! abs.startsWith(prefix)) throw new IllegalStateException(abs); + version.addFileWithCrc(abs.substring(prefix.length()), Long.toString( crc.getValue() ) ); // log( "File : " + inFile.getAbsolutePath().substring((ds.getBasedir().getAbsolutePath() + "/netbeans/").length() ) + " has CRC " + crc.getValue() ); } catch (IOException ex) { log ( ex.toString() ); Index: nbbuild/antsrc/org/netbeans/nbbuild/MakeNBM.java =================================================================== RCS file: /cvs/nbbuild/antsrc/org/netbeans/nbbuild/MakeNBM.java,v retrieving revision 1.14 diff -u -t -r1.14 MakeNBM.java --- nbbuild/antsrc/org/netbeans/nbbuild/MakeNBM.java 23 Aug 2001 09:27:17 -0000 1.14 +++ nbbuild/antsrc/org/netbeans/nbbuild/MakeNBM.java 1 Oct 2001 19:01:27 -0000 @@ -7,7 +7,7 @@ * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original - * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun + * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun * Microsystems, Inc. All Rights Reserved. */ @@ -16,6 +16,7 @@ import java.io.*; import java.util.*; import java.util.jar.*; +import java.util.zip.*; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Location; @@ -61,7 +62,7 @@ is.close (); } } catch (IOException ioe) { - throw new BuildException ("Exception reading blurb from " + file, ioe, getLocation1 ()); + throw new BuildException ("Exception reading blurb from " + file, ioe, getLocation ()); } } } @@ -122,27 +123,9 @@ } } public String getText () { - if (Boolean.valueOf (getProject ().getProperty ("makenbm.nocdata")).booleanValue ()) { - int max = text.length (); - StringBuffer text2 = new StringBuffer ((int) (max * 1.1 + 1)); - for (int i = 0; i < max; i++) { - char c = text.charAt (i); - switch (c) { - case '<': - text2.append ("<"); - break; - case '>': - text2.append (">"); - break; - case '&': - text2.append ("&"); - break; - default: - text2.append (c); - break; - } - } - return text2.toString (); + String nocdata = getProject().getProperty("makenbm.nocdata"); + if (nocdata != null && Project.toBoolean(nocdata)) { + return xmlEscape(text.toString()); } else { return ""; } @@ -164,14 +147,33 @@ // Default for the name too, as a convenience. if (name == null) name = file.getName (); } - // Javac 1.2 workaround, maybe: - private Location getLocation1 () { - return getLocation0 (); - } } - // Javac 1.2 workaround: - private Location getLocation0 () { - return location; + + // Similar to org.openide.xml.XMLUtil methods. + private static String xmlEscape(String s) { + int max = s.length(); + StringBuffer s2 = new StringBuffer((int)(max * 1.1 + 1)); + for (int i = 0; i < max; i++) { + char c = s.charAt(i); + switch (c) { + case '<': + s2.append("<"); + break; + case '>': + s2.append(">"); + break; + case '&': + s2.append("&"); + break; + case '"': + s2.append("""); + break; + default: + s2.append(c); + break; + } + } + return s2.toString(); } /** <signature> subelement for signing the NBM. */ @@ -198,12 +200,14 @@ private File file = null; private File topdir = null; private File manifest = null; + /** see #13850 for explanation */ + private File module = null; private String homepage = null; private String distribution = null; private Blurb license = null; private Blurb description = null; private Signature signature = null; - long mostRecentInput = 0L; + private long mostRecentInput = 0L; /** Name of resulting NBM file. */ public void setFile (File file) { @@ -217,11 +221,29 @@ public void setTopdir (File topdir) { this.topdir = topdir; } - /** Module manifest needed for versioning. */ + /** Module manifest needed for versioning. + * @deprecated Use {@link #setModule} instead. + */ public void setManifest (File manifest) { this.manifest = manifest; long lmod = manifest.lastModified (); if (lmod > mostRecentInput) mostRecentInput = lmod; + log(getLocation() + "The 'manifest' attr on is deprecated, please use 'module' instead", Project.MSG_WARN); + } + /** Module JAR needed for generating the info file. + * Information may be gotten either from its manifest, + * or if it declares OpenIDE-Module-Localizing-Bundle in its + * manifest, from that bundle. + * The base locale variant, if any, is also checked if necessary + * for the named bundle. + * Currently no other locale variants of the module are examined; + * the information is available but there is no published specification + * of what the resulting variant NBMs (or variant information within + * the NBM) should look like. + */ + public void setModule(File module) { + this.module = module; + // mostRecentInput updated below... } /** URL to a home page describing the module. */ public void setHomepage (String homepage) { @@ -235,6 +257,7 @@ return (license = new Blurb ()); } public Blurb createDescription () { + log(getLocation() + "The subelement in is deprecated except for emergency patches, please ensure your module has an OpenIDE-Module-Long-Description instead", Project.MSG_WARN); return (description = new Blurb ()); } public Signature createSignature () { @@ -244,12 +267,70 @@ public void execute () throws BuildException { if (file == null) throw new BuildException ("must set file for makenbm", location); - if (manifest == null) - throw new BuildException ("must set manifest for makenbm", location); + if (manifest == null && module == null) + throw new BuildException ("must set module for makenbm", location); + if (manifest != null && module != null) + throw new BuildException("cannot set both manifest and module for makenbm", location); // Will create a file Info/info.xml to be stored alongside netbeans/ contents. File infodir = new File (topdir, "Info"); infodir.mkdirs (); File infofile = new File (infodir, "info.xml"); + Attributes attr = null; + if (module != null) { + // The normal case; read attributes from its manifest and maybe bundle. + long mMod = module.lastModified(); + if (mostRecentInput < mMod) mostRecentInput = mMod; + try { + JarFile modulejar = new JarFile(module); + try { + attr = modulejar.getManifest().getMainAttributes(); + String bundlename = attr.getValue("OpenIDE-Module-Localizing-Bundle"); + if (bundlename != null) { + Properties p = new Properties(); + ZipEntry bundleentry = modulejar.getEntry(bundlename); + if (bundleentry != null) { + InputStream is = modulejar.getInputStream(bundleentry); + try { + p.load(is); + } finally { + is.close(); + } + } else { + // Not found in main JAR, check locale variant JAR. + File variant = new File(new File(module.getParentFile(), "locale"), module.getName()); + if (! variant.isFile()) throw new BuildException(bundlename + " not found in " + module, location); + long vmMod = variant.lastModified(); + if (mostRecentInput < vmMod) mostRecentInput = vmMod; + ZipFile variantjar = new ZipFile(variant); + try { + bundleentry = variantjar.getEntry(bundlename); + if (bundleentry == null) throw new BuildException(bundlename + " not found in " + module + " nor in " + variant, location); + InputStream is = variantjar.getInputStream(bundleentry); + try { + p.load(is); + } finally { + is.close(); + } + } finally { + variantjar.close(); + } + } + // Now pick up attributes from the bundle. + Iterator it = p.entrySet().iterator(); + while (it.hasNext()) { + Map.Entry entry = (Map.Entry)it.next(); + String name = (String)entry.getKey(); + if (! name.startsWith("OpenIDE-Module-")) continue; + attr.putValue(name, (String)entry.getValue()); + } + } // else all loc attrs in main manifest, OK + } finally { + modulejar.close(); + } + } catch (IOException ioe) { + throw new BuildException("exception while reading " + module, ioe, location); + } + } // else we will read attr later if info file is out of date boolean skipInfo = false; if (infofile.exists ()) { // Check for up-to-date w.r.t. manifest and maybe license file. @@ -259,25 +340,25 @@ } if (! skipInfo) { log ("Creating NBM info file " + infofile); - Attributes attr; - // Read module manifest for main attributes. - try { - InputStream manifestStream = new FileInputStream (manifest); - try { - attr = new Manifest (manifestStream).getMainAttributes (); - } finally { - manifestStream.close (); - } - } catch (IOException e) { - throw new BuildException ("exception when reading manifest " + manifest, e, location); - } + if (manifest != null) { + // Read module manifest for main attributes. + try { + InputStream manifestStream = new FileInputStream (manifest); + try { + attr = new Manifest (manifestStream).getMainAttributes (); + } finally { + manifestStream.close (); + } + } catch (IOException e) { + throw new BuildException ("exception when reading manifest " + manifest, e, location); + } + } // else we read attr before try { OutputStream infoStream = new FileOutputStream (infofile); try { - PrintStream ps = new PrintStream (infoStream); + PrintWriter ps = new PrintWriter(new OutputStreamWriter(infoStream, "UTF-8")); // Begin writing XML. - ps.println (""); - ps.println (); + ps.println (""); String codenamebase = attr.getValue ("OpenIDE-Module"); if (codenamebase == null) throw new BuildException ("invalid manifest, does not contain OpenIDE-Module", location); @@ -286,15 +367,15 @@ if (idx != -1) codenamebase = codenamebase.substring (0, idx); ps.println (""); @@ -302,38 +383,35 @@ ps.print (" "); ps.print (description.getText ()); ps.println (""); - /* Not needed since Auto Update now reads this attribute directly: - } else { - // Automatically inherit description from manifest. - String longDesc = attr.getValue ("OpenIDE-Module-Long-Description"); - if (longDesc != null) { - ps.print (" "); - ps.print (longDesc); - ps.println (""); - } - */ } // Write manifest attributes. ps.print (" ] - ps.println (entry.getKey () + "=\"" + entry.getValue () + "\""); + ps.println(name + "=\"" + xmlEscape((String)entry.getValue()) + "\""); } ps.println (" />"); // Maybe write out license text. if (license != null) { - ps.print (" "); + ps.print (" "); ps.print (license.getText ()); ps.println (""); } ps.println (""); + ps.flush(); } finally { infoStream.close (); } @@ -347,29 +425,7 @@ Jar jar = (Jar) project.createTask ("jar"); jar.setJarfile (file); //jar.setBasedir (topdir.getAbsolutePath ()); -// jar.setCompress ("true"); - try { - Class[] params = {Boolean.TYPE}; - Object[] objs = {Boolean.TRUE}; - // Trying to invoke setCompess with parameter Boolean - ANT 1.3 - Zip.class.getDeclaredMethod("setCompress",params).invoke(jar,objs); - // Looks like ANT 1.3 - I hope that is ANT 1.3 - } - catch (NoSuchMethodException ex) - { - // Looks like ANT 1.2 so use setCompress with String - Class[] params = {String.class}; - Object[] objs = {"true"}; - try { - Zip.class.getDeclaredMethod("setCompress",params).invoke(jar,objs); - } - catch (Exception ex1) { - throw new BuildException(ex1.fillInStackTrace()); - } - } - catch (Exception ex) { - throw new BuildException(ex.fillInStackTrace()); - } + jar.setCompress(true); //jar.createInclude ().setName ("netbeans/"); //jar.createInclude ().setName ("Info/info.xml"); jar.addFileset (getFileSet()); @@ -400,6 +456,8 @@ } } + // Reflection access from MakeListOfNBM: + public FileSet getFileSet() { FileSet fs = fileset; //makes in apperance to excludes and includes files defined in XML fs.setDir (topdir); @@ -408,7 +466,23 @@ return fs; } - public File getManifest() { - return manifest; + public Attributes getAttributes() throws IOException { + if (manifest != null) { + InputStream is = new FileInputStream(manifest); + try { + return new Manifest(is).getMainAttributes(); + } finally { + is.close(); + } + } else if (module != null) { + JarFile jar = new JarFile(module); + try { + return jar.getManifest().getMainAttributes(); + } finally { + jar.close(); + } + } else { + throw new IOException(location + "must give either 'manifest' or 'module' on "); + } } } Index: nbbuild/www/ant-extending.html =================================================================== RCS file: /cvs/nbbuild/www/ant-extending.html,v retrieving revision 1.11 diff -u -t -r1.11 ant-extending.html --- nbbuild/www/ant-extending.html 24 Jun 2001 09:51:16 -0000 1.11 +++ nbbuild/www/ant-extending.html 1 Oct 2001 19:01:27 -0000 @@ -260,7 +260,7 @@ <target name="nbm" depends="netbeans"> <makenbm file="mymodule.nbm" topdir="." - manifest="manifest-subst.mf" + module="netbeans/modules/mymodule.jar" homepage="http://mymodule.netbeans.org/" distribution="http://www.netbeans.org/download/nbms/40/mymodule.nbm"> <license file="../nbbuild/standard-nbm-license.txt"/> @@ -327,33 +327,32 @@ Info -

test Target

+

reload Target

Developers may wish to use the API Support module to test their module as a reloadable JAR file. To this end, it can be useful to have a -test target that creates a special version of the module +reload target that creates a special version of the module for testing, including all relevant extensions and documentation in one JAR to make sure it is reloadable. The API Support includes a special Ant task to do the final reloading. For example:
-<target name="test" depends="compile,javahelp">
-  <mkdir dir="test"/>
+<target name="reload" depends="compile,javahelp">
+  <mkdir dir="reload"/>
   <filter token="BUILD_NUMBER_SUBST" value="testing"/>
   <copy file="manifest.mf" tofile="manifest-subst.mf" filtering="on"/>
-  <jar jarfile="test/some-module.jar"
+  <jar jarfile="reload/some-module.jar"
        manifest="manifest-subst.mf"
        compress="false">
     <fileset dir="src" excludesfile="../nbbuild/standard-jar-excludes.txt"/>
     <fileset dir="javahelp" excludesfile="../nbbuild/standard-jar-excludes.txt"/>
     <fileset src="release/modules/ext/some-extension.jar" excludes="META-INF/MANIFEST.MF"/>
   </jar>
-  <taskdef name="nbinstall" classname="org.netbeans.modules.apisupport.ant.InstallModuleTask"/>
-  <nbinstall module="test/some-module.jar" action="reinstall"/>
+  <nbinstaller module="reload/some-module.jar" action="reinstall"/>
 </target>
 
-And do not forget to add this test directory to the +And do not forget to add this reload directory to the clean target and the .cvsignore file.

Documentation for NetBeans-Specific Tasks

Index: objectbrowser/build.xml =================================================================== RCS file: /cvs/objectbrowser/build.xml,v retrieving revision 1.25 diff -u -t -r1.25 build.xml --- objectbrowser/build.xml 26 Sep 2001 14:09:16 -0000 1.25 +++ objectbrowser/build.xml 1 Oct 2001 19:01:27 -0000 @@ -83,14 +83,10 @@ - - Alternate object-oriented way of browsing classes and other - objects. - Index: openidex/build.xml =================================================================== RCS file: /cvs/openidex/build.xml,v retrieving revision 1.23 diff -u -t -r1.23 build.xml --- openidex/build.xml 24 Sep 2001 12:13:31 -0000 1.23 +++ openidex/build.xml 1 Oct 2001 19:01:28 -0000 @@ -58,14 +58,10 @@ - - Common utility classes needed by many other modules. API - extensions. - Index: projects/build.xml =================================================================== RCS file: /cvs/projects/build.xml,v retrieving revision 1.22 diff -u -t -r1.22 build.xml --- projects/build.xml 24 Sep 2001 12:13:31 -0000 1.22 +++ projects/build.xml 1 Oct 2001 19:01:28 -0000 @@ -59,13 +59,10 @@ - - Handles switchable projects. - Index: properties/build.xml =================================================================== RCS file: /cvs/properties/build.xml,v retrieving revision 1.21 diff -u -t -r1.21 build.xml --- properties/build.xml 24 Sep 2001 12:13:31 -0000 1.21 +++ properties/build.xml 1 Oct 2001 19:01:28 -0000 @@ -77,14 +77,10 @@ - - Editing of properties files (resource bundles), including a - table-oriented view with keys and locales. -
Index: remotefs/build.xml =================================================================== RCS file: /cvs/remotefs/build.xml,v retrieving revision 1.8 diff -u -t -r1.8 build.xml --- remotefs/build.xml 24 Sep 2001 12:13:31 -0000 1.8 +++ remotefs/build.xml 1 Oct 2001 19:01:28 -0000 @@ -50,13 +50,10 @@ - - Remote file system support, currently FTP. - Index: remotefs/manifest.mf =================================================================== RCS file: /cvs/remotefs/manifest.mf,v retrieving revision 1.6 diff -u -t -r1.6 manifest.mf --- remotefs/manifest.mf 1 Mar 2001 13:11:01 -0000 1.6 +++ remotefs/manifest.mf 1 Oct 2001 19:01:28 -0000 @@ -1,6 +1,7 @@ Manifest-Version: 1.0 OpenIDE-Module: org.netbeans.modules.remotefs/1 OpenIDE-Module-Name: FTP FileSystem +OpenIDE-Module-Long-Description: Remote file system support, currently FTP. OpenIDE-Module-Install: org/netbeans/modules/remotefs/ftpfs/FTPfsModule.class OpenIDE-Module-Specification-Version: 1.3 OpenIDE-Module-Implementation-Version: @BUILD_NUMBER_SUBST@ Index: rmi/build.xml =================================================================== RCS file: /cvs/rmi/build.xml,v retrieving revision 1.33 diff -u -t -r1.33 build.xml --- rmi/build.xml 1 Oct 2001 08:53:20 -0000 1.33 +++ rmi/build.xml 1 Oct 2001 19:01:28 -0000 @@ -94,13 +94,10 @@ - - RMI module - Index: scripting/build.xml =================================================================== RCS file: /cvs/scripting/build.xml,v retrieving revision 1.31 diff -u -t -r1.31 build.xml --- scripting/build.xml 24 Sep 2001 12:13:31 -0000 1.31 +++ scripting/build.xml 1 Oct 2001 19:01:28 -0000 @@ -94,13 +94,10 @@ - - Scripting support. - Index: serialversion/build.xml =================================================================== RCS file: /cvs/serialversion/build.xml,v retrieving revision 1.10 diff -u -t -r1.10 build.xml --- serialversion/build.xml 24 Sep 2001 12:13:31 -0000 1.10 +++ serialversion/build.xml 1 Oct 2001 19:01:28 -0000 @@ -50,14 +50,10 @@ - - Update serialization version UIDs for serializable classes. - Wizard-style dialog also shows you serialization-related Javadoc. - Index: serialversion/manifest.mf =================================================================== RCS file: /cvs/serialversion/manifest.mf,v retrieving revision 1.6 diff -u -t -r1.6 manifest.mf --- serialversion/manifest.mf 1 Mar 2001 13:11:02 -0000 1.6 +++ serialversion/manifest.mf 1 Oct 2001 19:01:28 -0000 @@ -1,5 +1,7 @@ OpenIDE-Module: org.netbeans.modules.serialversion/1 OpenIDE-Module-Name: Serial Version UIDs +OpenIDE-Module-Long-Description: Update serialization version UIDs for serializable classes. + Wizard-style dialog also shows you serialization-related Javadoc. OpenIDE-Module-Specification-Version: 0.5 OpenIDE-Module-Implementation-Version: @BUILD_NUMBER_SUBST@ Index: spellchecker/build.xml =================================================================== RCS file: /cvs/spellchecker/build.xml,v retrieving revision 1.2 diff -u -t -r1.2 build.xml --- spellchecker/build.xml 29 Aug 2001 12:16:51 -0000 1.2 +++ spellchecker/build.xml 1 Oct 2001 19:01:28 -0000 @@ -1,4 +1,4 @@ - +f +
Index: xml/catalog/build.xml =================================================================== RCS file: /cvs/xml/catalog/build.xml,v retrieving revision 1.4 diff -u -t -r1.4 build.xml --- xml/catalog/build.xml 27 Sep 2001 12:50:35 -0000 1.4 +++ xml/catalog/build.xml 1 Oct 2001 19:01:28 -0000 @@ -80,13 +80,10 @@ - - The module allows to persistently mount entity catalogs. This implementation support NetBeans native catalog and standard XML catalog. Module also offer SPI to support another catalog implementation plug in. -
Index: xml/core/build.xml =================================================================== RCS file: /cvs/xml/core/build.xml,v retrieving revision 1.5 diff -u -t -r1.5 build.xml --- xml/core/build.xml 27 Sep 2001 12:50:36 -0000 1.5 +++ xml/core/build.xml 1 Oct 2001 19:01:28 -0000 @@ -83,13 +83,10 @@ - - The module is a base for all XML related modules. It recognizes XML and DTD documents, which can be opened in text editor. It supports parsing of those documents into TAX (Tree API for XML) representation. It supports synchronization among document representations. It also holds all settings shared among all XML related modules. -
Index: xml/css/build.xml =================================================================== RCS file: /cvs/xml/css/build.xml,v retrieving revision 1.4 diff -u -t -r1.4 build.xml --- xml/css/build.xml 27 Sep 2001 12:50:36 -0000 1.4 +++ xml/css/build.xml 1 Oct 2001 19:01:28 -0000 @@ -80,13 +80,10 @@ - - The module provides very basic support for CSS editing. CSS documents can be opened in text editor with syntax coloring. There is a syntax check action. -
Index: xml/tax/build.xml =================================================================== RCS file: /cvs/xml/tax/build.xml,v retrieving revision 1.4 diff -u -t -r1.4 build.xml --- xml/tax/build.xml 27 Sep 2001 12:50:36 -0000 1.4 +++ xml/tax/build.xml 1 Oct 2001 19:01:28 -0000 @@ -89,13 +89,10 @@ - - The module contains Tree API for XML ("TAX") library. It allows tree manipulation of XML and DTD documents structure, including event, traversal and i/o support. -
Index: xml/text-edit/build.xml =================================================================== RCS file: /cvs/xml/text-edit/build.xml,v retrieving revision 1.4 diff -u -t -r1.4 build.xml --- xml/text-edit/build.xml 27 Sep 2001 12:50:36 -0000 1.4 +++ xml/text-edit/build.xml 1 Oct 2001 19:01:28 -0000 @@ -84,13 +84,10 @@ - - The module provides text editing capabilities. It adds syntax coloring, abbreviation support and simple indentation engine into text editing of XML and DTD documents. -
Index: xml/tools/build.xml =================================================================== RCS file: /cvs/xml/tools/build.xml,v retrieving revision 1.4 diff -u -t -r1.4 build.xml --- xml/tools/build.xml 27 Sep 2001 12:50:36 -0000 1.4 +++ xml/tools/build.xml 1 Oct 2001 19:01:28 -0000 @@ -84,13 +84,10 @@ - - The module contains various actions, generators and tools. Especially action to generate simple DTD from XML document, or wizard which generate SAX handler implementation according to selected DTD document. -
Index: xml/tree-edit/build.xml =================================================================== RCS file: /cvs/xml/tree-edit/build.xml,v retrieving revision 1.5 diff -u -t -r1.5 build.xml --- xml/tree-edit/build.xml 27 Sep 2001 12:50:36 -0000 1.5 +++ xml/tree-edit/build.xml 1 Oct 2001 19:01:28 -0000 @@ -84,13 +84,10 @@ - - The module provides visual editor of XML and DTD document. It guards document well-formedness. A user can set filters which can customize XML and DTD documents look. -