Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-127775

Generation of API fails, when there is a multiline-comment

    Details

      Description

      When i try to do a multiline-comment the generation of the API with the REST-builder it fails:

       

      description: |
              By passing in the appropriate options, you can search for
              available images
      
      blade gw bR
      > Task :modules:standard-rest-builder:standard-rest-builder-impl:buildREST FAILED
      Exception in thread "main" java.lang.RuntimeException: Error generating REST API
      String index out of range: 5
              at com.liferay.portal.tools.rest.builder.RESTBuilder.main(RESTBuilder.java:126)
      FAILURE: Build failed with an exception.
      * What went wrong:
      Execution failed for task ':modules:standard-rest-builder:standard-rest-builder-impl:buildREST'.
      > Process 'command 'C:\Program Files\Java\jdk1.8.0_162\bin\java.exe'' finished with non-zero exit value 1
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      * Get more help at https://help.gradle.org
      BUILD FAILED in 8s
      1 actionable task: 1 executed
      <-------------> 0% WAITING
      > IDLE
      

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            marco.endres Marco Endres
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Javier Gamarra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              41 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP98
                7.0.X
                7.1.10 DXP FP22
                7.1.X
                7.2.10 DXP FP11
                7.2.10.4 DXP SP4
                7.2.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                7.3.X
                7.4.13 DXP GA1
                Master