Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3653

jBPM ant deploy task returns 0 rc if pingServer() fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • jBPM 3.2.15
    • jBPM 3.2.12
    • None
    • None

      the ant task used to deploy jBPM3 processes will return '0' (no error) if the server it's trying to reach is unavailable. It seems more proper to return something other than 0, indicating an error.

      It looks as if a change to this code might bring the desired results (if pingServer() fails, then throw an Exception):

      public void execute()
      throws BuildException
      {
      try
      {
      if(pingServerOK())

      { ... }

      }
      catch(Exception e)

      { throw new BuildException((new StringBuilder()).append("couldn't deploy process archives : ").append(e.getMessage()).toString(), e); }

      }

              marco.rietveld Marco Rietveld (Inactive)
              rhn-support-rick Rick Wagner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: