<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=GENERATE</id>
	<title>GENERATE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=GENERATE"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=GENERATE&amp;action=history"/>
	<updated>2026-04-09T17:26:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=GENERATE&amp;diff=709&amp;oldid=prev</id>
		<title>ConvertBot: creates or modifies a file of various formats</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=GENERATE&amp;diff=709&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:33Z</updated>

		<summary type="html">&lt;p&gt;creates or modifies a file of various formats&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;creates or modifies a file of various formats&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;FUNC&amp;gt;   - Type of file/action (EXP, EXPStub, JARS, JNLP, ...)&lt;br /&gt;
&amp;lt;NAME&amp;gt;   - Root name of file&lt;br /&gt;
&amp;lt;P3&amp;gt;     - Optional argument dependent on &amp;lt;FUNC&amp;gt;&lt;br /&gt;
&amp;lt;P4&amp;gt;     - Optional argument dependent on &amp;lt;FUNC&amp;gt;&lt;br /&gt;
&amp;lt;P5&amp;gt;     - Optional argument dependent on &amp;lt;FUNC&amp;gt;&lt;br /&gt;
&amp;lt;P6&amp;gt;     - Optional argument dependent on &amp;lt;FUNC&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Valid &amp;lt;function&amp;gt;s are [APPLETLAUNCHER, BUNdle, EXP, JARS, JNLP, OPER, SIGN].&lt;br /&gt;
Generates a file or modifies a file (usually text) of various formats including&lt;br /&gt;
JAR files, JNLP (for WEBSTART) files, EXPLAIN files, ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Functions:&lt;br /&gt;
  APPLETLAUNCHER &amp;lt;opt&amp;gt; &amp;lt;dest&amp;gt; &amp;lt;tbl&amp;gt;                                (Since 3.3.0)&lt;br /&gt;
    Creates an applet-launcher for that can run a NeXtMidas command in the&lt;br /&gt;
    web browser.&lt;br /&gt;
      &amp;lt;opt&amp;gt;  Option tree (this is for consistency with BUNDLE and JARS,&lt;br /&gt;
             but is largely ignored here).&lt;br /&gt;
      &amp;lt;dest&amp;gt; Destination directory for the .html and .jnlp files.   [DEF=&amp;quot;jars&amp;quot;]&lt;br /&gt;
             Use &amp;quot;bundle&amp;quot; for &amp;quot;$NMROOT/bundle/&amp;quot; or &amp;quot;jars&amp;quot; for &amp;quot;$NMROOT/jars/&amp;quot;.&lt;br /&gt;
      &amp;lt;tbl&amp;gt;  Table of options for the applet launcher. The table should include:&lt;br /&gt;
                Key       | Description               | Default Value&lt;br /&gt;
                ----------+---------------------------+-------------------------&lt;br /&gt;
                ID        | ID for the applet         | &amp;quot;APPLET&amp;quot;&lt;br /&gt;
                NAME      | Name of the applet        | same as ID=&lt;br /&gt;
                CODEBASE  | The codebase to use       | --required--&lt;br /&gt;
                WEB_PAGE  | Applet web page to create | &amp;quot;index.html&amp;quot;&lt;br /&gt;
                WIDTH     | Width of applet (pixels)  | 640&lt;br /&gt;
                HEIGHT    | Height of applet (pixels) | 480&lt;br /&gt;
                VENDOR    | Vendor of the applet      | --required--&lt;br /&gt;
                HOMEPAGE  | Homepage for vendor       | &amp;quot;&amp;lt;CODEBASE&amp;gt;/&amp;lt;WEB_PAGE&amp;gt;&amp;quot;&lt;br /&gt;
                NMSTARTUP | NMSTARTUP.MM to use       | --required--&lt;br /&gt;
                OPTS      | Option trees to include   | &amp;quot;&amp;lt;opt&amp;gt;,SYS&amp;quot;&lt;br /&gt;
                WRITE_AUX | NeXtMidas WRITE AUX       | &amp;quot;RAM&amp;quot;&lt;br /&gt;
                READ_AUX  | NeXtMidas READ AUX        | &amp;quot;RAM|DAT&amp;quot;&lt;br /&gt;
                COMMAND   | Command to run            | --required--&lt;br /&gt;
                DEBUG     | Turn MApplet debugging    | false&lt;br /&gt;
                JAVA_VER  | Java version to use       | &amp;quot;1.7+&amp;quot;&lt;br /&gt;
                INIT_HEAP | Initial Java heap size    | &amp;quot;512m&amp;quot;&lt;br /&gt;
                MAX_HEAP  | Maximum Java heap size    | &amp;quot;512m&amp;quot;&lt;br /&gt;
                PROPS     | Java run-time properties  | { }&lt;br /&gt;
                ----------+---------------------------+-------------------------&lt;br /&gt;
&lt;br /&gt;
                Note1: The JAVA_VER, INIT_HEAP, and MAX_HEAP are subject to&lt;br /&gt;
                       change in future releases without warning.&lt;br /&gt;
                Note2: Although it is tempting to use &amp;quot;nxm.sys.cfg.nmstartup.mm&amp;quot;&lt;br /&gt;
                       for NMSTARTUP, doing so will override a number of the&lt;br /&gt;
                       settings specified here (e.g. OPTS, AUX, etc.).&lt;br /&gt;
                Note3: Any tags in PROPS that have a colon in the tag will have&lt;br /&gt;
                       the tag converted to lowercase and the colons (&amp;quot;:&amp;quot;)&lt;br /&gt;
                       replaced with periods (&amp;quot;.&amp;quot;). This permits Java properties&lt;br /&gt;
                       to be entered (e.g. &amp;quot;SUN:JAVA2D:D3D&amp;quot; -&amp;gt; &amp;quot;sun.java2d.d3d&amp;quot;)&lt;br /&gt;
                       despite the normal Table rules.&lt;br /&gt;
&lt;br /&gt;
  BUNdle &amp;lt;opt&amp;gt; &amp;lt;dest&amp;gt; &amp;lt;keystoreTbl&amp;gt;                                (Since 3.3.0)&lt;br /&gt;
    Generate OSGi bundle JAR files for a given option tree. All the options&lt;br /&gt;
    are the same as the JARS function, except the generated JARS uses OSGi&lt;br /&gt;
    naming conventions (all lower case, dot separated, includes &amp;quot;_&amp;lt;version&amp;gt;&amp;quot;).&lt;br /&gt;
      &amp;lt;opt&amp;gt;  The option tree.&lt;br /&gt;
      &amp;lt;dest&amp;gt; The destination directory for the bundle JAR files, use &amp;quot;bundle&amp;quot;&lt;br /&gt;
             for &amp;quot;$NMROOT/bundle/&amp;quot;, &amp;quot;jars&amp;quot; for &amp;quot;$NMROOT/jars/&amp;quot;.   [DEF=&amp;quot;bundle&amp;quot;]&lt;br /&gt;
      &amp;lt;keystoreTbl&amp;gt; Optional config table to use a custom jar signing keystore.&lt;br /&gt;
             If not set, default self-signed certificate will be used.&lt;br /&gt;
             See &amp;quot;Using Custom Keystore&amp;quot; section for details, but here are the&lt;br /&gt;
             common required keys to set.                          (Since 3.5.1)&lt;br /&gt;
               {KEYSTOREFILE=&amp;quot;custom.jks&amp;quot;,KEYSTOREPASS=&amp;quot;pw&amp;quot;,KEYALIAS=&amp;quot;keyAlias&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
    This function creates the following JAR files:&lt;br /&gt;
      nxm.&amp;lt;opt&amp;gt;_&amp;lt;version&amp;gt;.jar - Java .class files. macros, data files, etc&lt;br /&gt;
          (see /FFILT= for a list of files that are included/excluded.&lt;br /&gt;
&lt;br /&gt;
      nxm.&amp;lt;opt&amp;gt;.&amp;lt;osname&amp;gt;.&amp;lt;osarch&amp;gt;_&amp;lt;version&amp;gt;.jar - Native files for current OS.&lt;br /&gt;
          The &amp;lt;osname&amp;gt; and &amp;lt;osarch&amp;gt; are derived from the &amp;quot;os.name&amp;quot; and &amp;quot;os.arch&amp;quot;&lt;br /&gt;
          system properties, respectively to match the &amp;lt;resources&amp;gt; tag's&lt;br /&gt;
          &amp;quot;os&amp;quot; and &amp;quot;arch&amp;quot; attributes in the JNLP file for the current platform.&lt;br /&gt;
          Spaces in &amp;lt;osname&amp;gt; and &amp;lt;osarch&amp;gt; are replaced with underscores and it&lt;br /&gt;
          is lower-cased. i386 becomes x86 and amd64 becomes x86_64. e.g.&lt;br /&gt;
            nxm.sys.linux.x86_3.3.0.jar       (Linux 32-bit)&lt;br /&gt;
            nxm.sys.linux.x86_64_3.3.0.jar    (Linux 64-bit)&lt;br /&gt;
            nxm.sys.sunos.sparc_3.3.0.jar     (Solaris SPARC)&lt;br /&gt;
            nxm.sys.windows.x86_3.3.0.jar     (Windows [XP, 7, etc.] 32-bit)&lt;br /&gt;
            nxm.sys.windows.x86_64_3.3.0.jar  (Windows [XP, 7, etc.] 64-bit)&lt;br /&gt;
&lt;br /&gt;
      nxm.&amp;lt;opt&amp;gt;.source_&amp;lt;version&amp;gt;.jar - Source code files (*.java)&lt;br /&gt;
&lt;br /&gt;
  EXP &amp;lt;name&amp;gt; &amp;lt;dest&amp;gt;&lt;br /&gt;
    Generates an explain file from the comments in the source code between the&lt;br /&gt;
    first /** and */.&lt;br /&gt;
      &amp;lt;name&amp;gt; - The command name&lt;br /&gt;
      &amp;lt;dest&amp;gt; - Optional full path destination [DEF=&amp;lt;exp area of option tree&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
    Modifiers:&lt;br /&gt;
      /S - Generates an explain file STUB by searching for &amp;quot;MA.&amp;quot;,&lt;br /&gt;
           &amp;quot;msg.name.equals&amp;quot;, and other references in the source code.&lt;br /&gt;
&lt;br /&gt;
  JARS &amp;lt;opt&amp;gt; &amp;lt;dest&amp;gt; &amp;lt;keystoreTbl&amp;gt;&lt;br /&gt;
    Generate Java WebStart compatible JAR files for a given option tree.&lt;br /&gt;
      &amp;lt;opt&amp;gt;  The option tree.&lt;br /&gt;
      &amp;lt;dest&amp;gt; The destination directory for the JAR files.           [DEF=&amp;quot;jars&amp;quot;]&lt;br /&gt;
             Use &amp;quot;jars&amp;quot; for &amp;quot;$NMROOT/jars/&amp;quot;.&lt;br /&gt;
      &amp;lt;keystoreTbl&amp;gt; Optional config table to use a custom jar signing keystore.&lt;br /&gt;
             If not set, default self-signed certificate will be used.&lt;br /&gt;
             See &amp;quot;Using Custom Keystore&amp;quot; section for details, but here are the&lt;br /&gt;
             common required keys to set.                          (Since 3.5.1)&lt;br /&gt;
               {KEYSTOREFILE=&amp;quot;custom.jks&amp;quot;,KEYSTOREPASS=&amp;quot;pw&amp;quot;,KEYALIAS=&amp;quot;keyAlias&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
    This function creates the following JAR files:&lt;br /&gt;
      nxm-&amp;lt;opt&amp;gt;.jar - Java .class files. macros, data files, etc (see /FFILT=&lt;br /&gt;
          for a list of files that are included/excluded.&lt;br /&gt;
&lt;br /&gt;
      nxm-&amp;lt;opt&amp;gt;-native-&amp;lt;osname&amp;gt;-&amp;lt;osarch&amp;gt;.jar - Native files for current OS.&lt;br /&gt;
          The &amp;lt;osname&amp;gt; and &amp;lt;osarch&amp;gt; are derived the &amp;quot;os.name&amp;quot; and &amp;quot;os.arch&amp;quot;&lt;br /&gt;
          system properties, respectively to match the &amp;lt;resources&amp;gt; tag's&lt;br /&gt;
          &amp;quot;os&amp;quot; and &amp;quot;arch&amp;quot; attributes in the JNLP file for the current platform.&lt;br /&gt;
          Spaces in &amp;lt;osname&amp;gt; and &amp;lt;osarch&amp;gt; are replaced with underscores and it&lt;br /&gt;
          is lower-cased. i386 becomes x86 and amd64 becomes x86_64. Since 2.9.2&lt;br /&gt;
          Some examples for SYS:&lt;br /&gt;
            nxm-sys-native-linux-x86.jar      (Linux 32-bit)&lt;br /&gt;
            nxm-sys-native-linux-x86_64.jar   (Linux 64-bit)&lt;br /&gt;
            nxm-sys-native-sunos-sparc.jar    (Solaris SPARC)&lt;br /&gt;
            nxm-sys-native-windows-x86.jar    (Windows XP 32-bit)&lt;br /&gt;
            nxm-sys-native-windows-x86_64.jar (Windows 7  64-bit)&lt;br /&gt;
&lt;br /&gt;
    The following switches apply to JARS:&lt;br /&gt;
      /FFILT=    - Filter for files to include/exclude.&lt;br /&gt;
      /NOTEST    - Exclude /test directories in the output JAR (since 3.3.4)&lt;br /&gt;
      /NODOCS    - Exclude /docs directories in the output JAR (since 3.3.4)&lt;br /&gt;
&lt;br /&gt;
    The default value for /FFILT= are taken from jnlp.file_filter in the&lt;br /&gt;
    nxm/&amp;lt;opt&amp;gt;/cfg/build.props file for the option tree. If they are not&lt;br /&gt;
    specified for the given option tree, the ones from SYS are used. These&lt;br /&gt;
    use the standard mask syntax so that /FFILT=&amp;quot;+*.xyz&amp;quot; would mean: &amp;quot;in&lt;br /&gt;
    addition to all the files specified in build.props, also include all&lt;br /&gt;
    files matching '*.xyz'.&amp;quot; Any entries with no '/' are applied to file&lt;br /&gt;
    names, entries with a '/' are based on path (e.g. /FFILT=&amp;quot;-*/temp/*&amp;quot;&lt;br /&gt;
    would exclude any directory named temp and /FFILT=&amp;quot;-test/*&amp;quot; would&lt;br /&gt;
    exclude anything under the test area of the option tree).&lt;br /&gt;
&lt;br /&gt;
  JNLP &amp;lt;name&amp;gt; &amp;lt;opts&amp;gt; &amp;lt;dest&amp;gt; &amp;lt;codebase&amp;gt;&lt;br /&gt;
    Generate a skeleton jnlp file, called &amp;lt;name&amp;gt;.jnlp containing the minimum&lt;br /&gt;
    information to run a NeXtMidas command via JNLP. The macro that is executed&lt;br /&gt;
    is specified by the name parameter. The file will be written into the &amp;lt;dest&amp;gt;&lt;br /&gt;
    directory.&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;name&amp;gt;     - Root name of the JNLP file (case-sensitive) [DEF=BOGUS]&lt;br /&gt;
    &amp;lt;opts&amp;gt;     - A &amp;quot;|&amp;quot; delimited string specifying the option trees that are&lt;br /&gt;
                 required by the jnlp.  [DEF=&amp;quot;SYS&amp;quot;]&lt;br /&gt;
    &amp;lt;dest&amp;gt;     - The name of a destination directory. [DEF=$NMROOT/jars]&lt;br /&gt;
    &amp;lt;codebase&amp;gt; - Specifies the codebase  for the application. Codebase is also&lt;br /&gt;
                 used as base URL for all relative URLs in href attributes.&lt;br /&gt;
                 [DEF=&amp;quot;http://localhost/nmroot/jars&amp;quot;]&lt;br /&gt;
    &amp;lt;href&amp;gt;     - The &amp;quot;href&amp;quot; URL for the JNLP file (attribute of the &amp;lt;jnlp&amp;gt; tag).&lt;br /&gt;
                 The URL from which remote users access this application.&lt;br /&gt;
                 [DEF=&amp;quot;&amp;lt;codebase&amp;gt;/&amp;lt;name&amp;gt;.jnlp&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
  JNLP/GUI   &amp;lt;name&amp;gt; &amp;lt;properties&amp;gt;&lt;br /&gt;
    Brings up a GUI with which to build the JNLP file. See JNLP/TABLE for a list&lt;br /&gt;
    of the properties that can be customized before presenting GUI to user.&lt;br /&gt;
&lt;br /&gt;
  JNLP/TABLE &amp;lt;name&amp;gt; &amp;lt;properties&amp;gt;&lt;br /&gt;
    Generates a JNLP file based on a table of properties.&lt;br /&gt;
    &amp;lt;name&amp;gt;       - Root name of the JNLP file (case-sensitive) [DEF=BOGUS]&lt;br /&gt;
    &amp;lt;properties&amp;gt; - Table of properties for JNLP file generation.&lt;br /&gt;
&lt;br /&gt;
    The table should specify the following properties.&lt;br /&gt;
      CODEBASE   - The &amp;quot;codebase&amp;quot; for the JNLP jars and is also  [Required]&lt;br /&gt;
                   used as the base URL for all relative URLs in&lt;br /&gt;
                   href attributes.&lt;br /&gt;
      JNLPHREF   - The &amp;quot;href&amp;quot; URL for the JNLP file.             [Required]&lt;br /&gt;
      COMMAND    - The name of the command and arguments to run. [Required]&lt;br /&gt;
      USENATIVE  - Enables native libraries (TRUE/FALSE).        [DEF=FALSE]&lt;br /&gt;
      OPTS       - The option trees required.                    [DEF=SYS]&lt;br /&gt;
      TITLE      - Title of the application.                     [DEF=&amp;quot;MyApp&amp;quot;]&lt;br /&gt;
      DESCR      - Description of the application.               [DEF=title]&lt;br /&gt;
      SHORTDESCR - Short description of the application.         [DEF=descr]&lt;br /&gt;
      VENDOR     - The ID of the vendor.                         [DEF=&amp;quot;ICE&amp;quot;]&lt;br /&gt;
      HOMEPAGE   - The homepage of the application.       [DEF=&amp;quot;nextmidas.html&amp;quot;]&lt;br /&gt;
      JAVAVER    - The Java versions that can be used.           [DEF=&amp;quot;1.7+&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
  OPER&lt;br /&gt;
    Generate math operators code (see nxm.sys.libm.Generate for documentation on&lt;br /&gt;
    the doOpers method) as defined in $NMROOT/nxm/sys/libm/Operators.cnf file.&lt;br /&gt;
&lt;br /&gt;
  SIGN &amp;lt;name&amp;gt; &amp;lt;keystoreTbl&amp;gt;&lt;br /&gt;
    Signs the named jar file.&lt;br /&gt;
      &amp;lt;name&amp;gt; path to jarfile to sign.&lt;br /&gt;
      &amp;lt;keystoreTbl&amp;gt; Optional config table to use a custom jar signing keystore.&lt;br /&gt;
             If not set, default self-signed certificate will be used.&lt;br /&gt;
             See &amp;quot;Using Custom Keystore&amp;quot; section for details, but here are the&lt;br /&gt;
             common required keys to set.                          (Since 3.5.1)&lt;br /&gt;
               {KEYSTOREFILE=&amp;quot;custom.jks&amp;quot;,KEYSTOREPASS=&amp;quot;pw&amp;quot;,KEYALIAS=&amp;quot;keyAlias&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Keystore: Using Custom Keystore to sign jars                       (Since 3.5.1)&lt;br /&gt;
  Several functions (e.g. BUN, JARS, SIGN) allow an optional keystore config&lt;br /&gt;
  table to specify a custom java keystore for signing jar files.&lt;br /&gt;
&lt;br /&gt;
  The custom keystore configuration table (i.e. &amp;lt;keystoreTbl&amp;gt;) should include:&lt;br /&gt;
    Key          | Value description&lt;br /&gt;
    -------------+--------------------------------------------------------------&lt;br /&gt;
    KEYSTOREFILE | path to custom keystore file&lt;br /&gt;
    KEYSTOREPASS | password for keystore file [1,3]&lt;br /&gt;
    KEYALIAS     | alias to private key/entity inside keystore file&lt;br /&gt;
    KEYPASS      | private key password (optional if same as KEYSTOREPASS) [1-3]&lt;br /&gt;
    MOREOPTIONS  | more options to add to executed jarsigner command (optional)&lt;br /&gt;
&lt;br /&gt;
    Note1: The password shouldn't be specified on the command line or in a&lt;br /&gt;
           macro/script unless it is for testing purposes, or you are on a&lt;br /&gt;
           secure system.&lt;br /&gt;
    Note2: If KEYPASS is different than KEYSTOREPASS, it MUST be provided as the&lt;br /&gt;
           jarsigner password prompt for user input is NOT redirected from STDIN&lt;br /&gt;
           since it is run in a separate process.&lt;br /&gt;
    Note3: If using Java 7+, the password value, can have either one of the&lt;br /&gt;
           following prepend: &amp;quot;:env&amp;quot; or &amp;quot;:file&amp;quot;, then a space, then the password&lt;br /&gt;
           to have jarsigner get the password from an OS environment variable or&lt;br /&gt;
           from a file, respectively.&lt;br /&gt;
&lt;br /&gt;
  To use a custom code signing certificate in another format, it MUST be&lt;br /&gt;
  imported into a Java keystore file. Java's keytool -importcert option can&lt;br /&gt;
  import X.509 v1, v2, and v3 certificates, and PKCS#7 formatted certificate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. Generate ALL math operators (under LIBM area)&lt;br /&gt;
      nM&amp;gt; GENERATE OPER ALL&lt;br /&gt;
&lt;br /&gt;
  2. Generate the LN (Natural Logarithm) operator (under LIBM area)&lt;br /&gt;
      nM&amp;gt; GENERATE OPER LN&lt;br /&gt;
&lt;br /&gt;
  3. Generate the JARs for the DSP tree.&lt;br /&gt;
      nM&amp;gt; GENERATE JARS DSP&lt;br /&gt;
&lt;br /&gt;
  4. Generate the JARs for the SYS tree, but exclude any .tmp or .prm files.&lt;br /&gt;
      nM&amp;gt; GENERATE JARS SYS /FFILT=&amp;quot;-*.tmp|-*.prm&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  5. Generate the JARs for the SYS tree, but add in any .for and .inc files.&lt;br /&gt;
      nM&amp;gt; GENERATE JARS SYS /FFILT=&amp;quot;+*.for|+*.inc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  6. Generate the JARs for the AUDIO tree, but do not include any dir that&lt;br /&gt;
     is named &amp;quot;sounds&amp;quot;.&lt;br /&gt;
      nM&amp;gt; GENERATE JARS SYS /DFILT=&amp;quot;-sounds&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  7. Generate the JARs for the DSP tree, but put it in &amp;quot;/home/webstart/&amp;quot;&lt;br /&gt;
      nM&amp;gt; GENERATE JARS DSP &amp;quot;/home/webstart/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  8. Generate the JARs for the SYS tree, but skip copying and signing the&lt;br /&gt;
     jar files from the JAR area (directory), since this step have&lt;br /&gt;
     previously been executed and none of the jar files have changed.&lt;br /&gt;
      nM&amp;gt; GENERATE JARS SYS /SKIP=&amp;quot;COPYJARS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  9. Same as example 8 above, but also skip jarring up native OS libraries.&lt;br /&gt;
      nM&amp;gt; GENERATE JARS SYS /SKIP=&amp;quot;COPYJARS|JARNATIVE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  10. Generate the JARs for the SYS tree, but exclude /test and /docs&lt;br /&gt;
       nM&amp;gt; GENERATE JARS SYS /NOTEST /NODOCS&lt;br /&gt;
&lt;br /&gt;
  11. Generate the JARs for the SYS tree using a customized keystore for&lt;br /&gt;
      signing (where keypass is the same as storepass).&lt;br /&gt;
       nM&amp;gt; set ksCfgTbl {KEYSTOREFILE=&amp;quot;/path/to/custom.jks&amp;quot;,KEYSTOREPASS=&amp;quot;pw&amp;quot;,\&lt;br /&gt;
                         KEYALIAS=&amp;quot;aliasToKey&amp;quot;}&lt;br /&gt;
       nM&amp;gt; GENERATE JARS SYS ,, ksCfgTbl&lt;br /&gt;
&lt;br /&gt;
  12. same as #11 above but keypass is different from storepass and add&lt;br /&gt;
      &amp;quot;-verbose&amp;quot; option to jarsigner command.&lt;br /&gt;
       nM&amp;gt; set ksCfgTbl {KEYSTOREFILE=&amp;quot;/path/to/custom.jks&amp;quot;,KEYSTOREPASS=&amp;quot;pw&amp;quot;,\&lt;br /&gt;
                         KEYALIAS=&amp;quot;aliasToKey&amp;quot;,KEYPASS=&amp;quot;diffThanStorePass&amp;quot;}&lt;br /&gt;
       nM&amp;gt; GENERATE JARS SYS ,, ksCfgTbl &amp;quot;-verbose&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  13. Sign a jar file.&lt;br /&gt;
       nM&amp;gt; GENERATE SIGN /path/to/MyJarFile.jar&lt;br /&gt;
&lt;br /&gt;
  14. Sign a jar file with a customized keystore.&lt;br /&gt;
       nM&amp;gt; set tbl {KEYSTOREFILE=&amp;quot;custom.jks&amp;quot;,KEYSTOREPASS=&amp;quot;pw&amp;quot;,KEYALIAS=&amp;quot;test&amp;quot;}&lt;br /&gt;
       nM&amp;gt; GENERATE SIGN MyJarFile.jar ,, tbl&lt;br /&gt;
&lt;br /&gt;
  15. Generate the OSGi bundles for the SYS option tree.&lt;br /&gt;
       nM&amp;gt; GENERATE BUNDLE SYS&lt;br /&gt;
&lt;br /&gt;
  16. Generate the bundles for DSP, but put it in &amp;quot;/home/osgibundles/&amp;quot;&lt;br /&gt;
       nM&amp;gt; GENERATE BUN DSP &amp;quot;/home/osgibundles/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  17. Generate the bundles for the SYS tree, but skip bundling source code and&lt;br /&gt;
      use custom keystore to sign the jar files.&lt;br /&gt;
       nM&amp;gt; set tbl {KEYSTOREFILE=&amp;quot;custom.jks&amp;quot;,KEYSTOREPASS=&amp;quot;pw&amp;quot;,KEYALIAS=&amp;quot;test&amp;quot;}&lt;br /&gt;
       nM&amp;gt; GENERATE BUN SYS ,, tbl /SKIP=&amp;quot;BUNDLESOURCE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  18. Write a JNLP file called shellgui.jnlp into your $NMROOT/jars path that&lt;br /&gt;
      will run the shellgui macro and executes the SHELLGUI command when run.&lt;br /&gt;
       nM&amp;gt; GENERATE JNLP shellgui&lt;br /&gt;
&lt;br /&gt;
  19. Write a JNLP file called scanner.jnlp into your $NMROOT/jars path that&lt;br /&gt;
      relies on the ICE option tree and executes the scanner command when run.&lt;br /&gt;
       nM&amp;gt; GENERATE JNLP scanner ice&lt;br /&gt;
&lt;br /&gt;
  20. Write a JNLP file called scanner.jnlp into the directory&lt;br /&gt;
      /home/midas/scanner that relies on the ICE option tree and executes&lt;br /&gt;
      the scanner command when run.&lt;br /&gt;
       nM&amp;gt; GENERATE JNLP scanner ice /home/midas/scanner&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SWITCHES:&lt;br /&gt;
  /ALLOWEMPTYNATIVEJAR - For FUNC=JARS, create &amp;quot;empty&amp;quot; native placeholder jar&lt;br /&gt;
               with .keepme entry even when there are no native libraries.&lt;br /&gt;
               Prior to NeXtMidas 3.5.4 this was always true.        [DEF=false]&lt;br /&gt;
               This is a provisional switch name subject to change.(Since 3.5.4)&lt;br /&gt;
               this defaults to false if there are no native files.&lt;br /&gt;
  /ARCH=     - Override the default platform name when creating native JARs.&lt;br /&gt;
               Usually used in combination with /OS=.              (Since 3.3.0)&lt;br /&gt;
  /DFILT=    - Filter for directories to search (FUNC=JARS option).&lt;br /&gt;
  /EDIT      - For FUNC=EXP, launch the editor defined by the result ENV.EDITOR.&lt;br /&gt;
  /EMBEDJARS - For FUNC=BUNDLE, embed option tree's jar files under &amp;lt;opt&amp;gt;/jars&lt;br /&gt;
               into bundle. [DEF=TRUE]                             (Since 3.3.0)&lt;br /&gt;
  /FFILT=    - Filter for files to include (FUNC=JARS|BUNDLE option) for&lt;br /&gt;
               standard jar/bundle file creation.&lt;br /&gt;
  /NEW       - Overwrite the existing explain file (EXP, EXPStub ONLY)&lt;br /&gt;
  /OS=       - Override the default OS name when creating native JARs. Usually&lt;br /&gt;
               used in combination with /ARCH=.                    (Since 3.3.0)&lt;br /&gt;
  /QUALVER=  - For FUNC=BUNDLE, set qualifier part of version string.&lt;br /&gt;
               INTERNAL USE ONLY                        [DEF=null] (Since 3.5.1)&lt;br /&gt;
  /ROOT=     - Override the search root when building a JAR file. (This option&lt;br /&gt;
               is typically used when searching for native libraries that are&lt;br /&gt;
               not in the normal option tree directory structure.) (Since 3.3.0)&lt;br /&gt;
  /SKIP=     - For FUNC=JARS, skip specified step(s) options mask value:&lt;br /&gt;
                                                                   (Since 2.9.0)&lt;br /&gt;
                 JARSTANDARD - Skip standard jar file creation&lt;br /&gt;
                 JARNATIVE   - Skip JAR of native library files for current OS&lt;br /&gt;
                 COPYJARS    - Skip copying and signing jar files from JAR area&lt;br /&gt;
               For FUNC=BUNDLE, skip options mask value:           (Since 3.3.0)&lt;br /&gt;
                 BUNSTANDARD - Skip standard OSGi bundle file creation&lt;br /&gt;
                 BUNNATIVE   - Skip native libraries OSGi bundle file creation&lt;br /&gt;
                 BUNSOURCE   - Skip source code OSGi bundle file creation&lt;br /&gt;
  /SIGNOPTIONS= - FUNC=BUNDLE|JARS|SIGN, additional jarsigner options/flags to&lt;br /&gt;
               append before jarfile when invoking the command.    (Since 3.5.2)&lt;br /&gt;
  /WARN      - Show warnings [DEF=TRUE]&lt;br /&gt;
&lt;br /&gt;
  /KEEP      - DEPRECATED: Only used with FUNC=JAR and FUNC=NJAR.&lt;br /&gt;
  /SIGN      - DEPRECATED: Only used with FUNC=JAR and FUNC=NJAR.&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: nxm.sys.libm.Operators.cnf nxm.sys.cfg.build.props&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>