glassfish
  1. glassfish
  2. GLASSFISH-13361

captureschema command's exit code does not reflect status (error/success)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: V3
    • Component/s: cmp
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      13,361

      Description

      The capture-schema command's exit code does not reflect the command's status
      (successful/error) correctly in certain cases:

      D:\GFv3.1\glassfish-3.1-b19-09_09_2010\glassfishv3>glassfish\bin\capture-schema blah
      usage:
      capture-schema -username name -password password -dburl url -driver jdbcdriver
      -out aFilename
      [-schemaname aSchemaname] [-table aTablename]*

      where:
      -username: username for authenticating access to a database
      -password: password for accessing the selected database
      -dburl: JDBC URL expected by the driver for accessing a database
      -driver: JDBC driver classname in your CLASSPATH
      -out: name of the output file. If it does not end with ".dbschema",
      that extension will be added.
      -schemaname: name of the user schema being captured
      -table: name of a table to be captured

      If no table names are given, all the tables in the database
      (or named schema, if given) are captured.

      If no schemaname is given, captures metadata for all tables
      from all schemas accessible to this user.

      D:\GFv3.1\glassfish-3.1-b19-09_09_2010\glassfishv3>echo %ERRORLEVEL%
      0

        Activity

        Hide
        Dies Koper added a comment -

        Created an attachment (id=4861)
        proposed fix

        Show
        Dies Koper added a comment - Created an attachment (id=4861) proposed fix
        Hide
        Dies Koper added a comment -

        Patch applied:

        Sending
        persistence\cmp\ejb-mapping\src\main\java\com\sun\jdo\api\persistence\mapping\ejb\CaptureSchema.java
        Transmitting file data .
        Committed revision 40925.

        Show
        Dies Koper added a comment - Patch applied: Sending persistence\cmp\ejb-mapping\src\main\java\com\sun\jdo\api\persistence\mapping\ejb\CaptureSchema.java Transmitting file data . Committed revision 40925.

          People

          • Assignee:
            Mitesh Meswani
            Reporter:
            Dies Koper
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: