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

Fail to build-app-lpkg due to java.util.regex.PatternSyntaxException

    Details

      Description

      Steps to reproduce:

      1. Run gradlew deploy to build the jars
      2. Go to modules, execute following command to build app lpkg
        ant build-app-lpkg -Dapp.name={appName} -Dosgi.dir=(where osgi directory) -Dliferay.home=(where liferay home) -Dproject.dir=(where source) -Doutput.dir=(where marketplace directory)
        

        My command as following

        ant build-app-lpkg -Dapp.name=oauth2-provider -Dosgi.dir=E:/bundle/7.1.x-private/liferay-portal-7.1.x-private/osgi -Dliferay.home=E:/bundle/7.1.x-private/liferay-portal-7.1.x-private -Dproject.dir=D:/Github/portal/7.1.x -Doutput.dir=E:/bundle/7.1.x-private/liferay-portal-7.1.x-private/osgi/marketplace
        

      Actual Result:
      Fail to build-app-lpkg and throws java.util.regex.PatternSyntaxException.

      BUILD FAILED
      D:\Github\portal\master\modules\build-app.xml:438: The following error occurred while executing this line:
      D:\Github\portal\master\modules\build-app-module.xml:18: java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 17
      (.+apps\[^\]+)\(.+)
                       ^
              at java.util.regex.Pattern.error(Pattern.java:1955)
              at java.util.regex.Pattern.compile(Pattern.java:1700)
              at java.util.regex.Pattern.<init>(Pattern.java:1351)
              at java.util.regex.Pattern.compile(Pattern.java:1054)
              at org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher.getCompiledPattern(Jdk14RegexpMatcher.java:68)
              at org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher.matches(Jdk14RegexpMatcher.java:95)
              at org.apache.tools.ant.filters.TokenFilter$ReplaceRegex.filter(TokenFilter.java:498)
              at org.apache.tools.ant.filters.TokenFilter.read(TokenFilter.java:115)
              at org.apache.tools.ant.filters.BaseFilterReader.read(BaseFilterReader.java:84)
              at java.io.Reader.read(Reader.java:140)
              at org.apache.tools.ant.util.FileUtils.readFully(FileUtils.java:1069)
              at org.apache.tools.ant.util.FileUtils.readFully(FileUtils.java:1045)
              at org.apache.tools.ant.util.FileUtils.safeReadFully(FileUtils.java:1086)
              at org.apache.tools.ant.types.mappers.FilterMapper.mapFileName(FilterMapper.java:75)
              at org.apache.tools.ant.util.CompositeMapper.mapFileName(CompositeMapper.java:37)
              at org.apache.tools.ant.taskdefs.PathConvert.execute(PathConvert.java:370)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.Target.execute(Target.java:435)
              at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:180)
              at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)
              at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:392)
              at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:309)
              at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:224)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.Target.execute(Target.java:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
              at org.apache.tools.ant.Main.runBuild(Main.java:857)
              at org.apache.tools.ant.Main.startAnt(Main.java:236)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
      

        Attachments

          Activity

            People

            Assignee:
            linda.sui Linda Sui
            Reporter:
            linda.sui Linda Sui
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 9 weeks, 2 days ago

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.X
                7.2.1 CE GA2
                7.3.10 DXP GA1
                Master