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

Executing test on a plugin without ivy.xml fails with error

    Details

      Description

      Steps to reproduce:

      • Go to shared/localization-shared
      • execute ant test

      Expected behavior: tests are executed
      Actual behavior: tests are not executed, with this stacktrace:

      Buildfile: /Users/manuel/liferay-workspace/trunk/plugins/shared/localization-shared/build.xml
      
      test:
          [mkdir] Created dir: /Users/manuel/liferay-workspace/trunk/plugins/shared/localization-shared/test-classes/unit
          [mkdir] Created dir: /Users/manuel/liferay-workspace/trunk/plugins/shared/localization-shared/test-results/unit
      [ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
      [ivy:resolve] :: loading settings :: file = /Users/manuel/liferay-workspace/trunk/plugins/ivy-settings.xml
      [ivy:resolve] /Users/manuel/liferay-workspace/trunk/plugins/shared/localization-shared/ivy.xml (No such file or directory) in file:/Users/manuel/liferay-workspace/trunk/plugins/shared/localization-shared/ivy.xml
      
      BUILD FAILED
      /Users/manuel/liferay-workspace/trunk/plugins/build-common.xml:2717: The following error occurred while executing this line:
      : The following error occurred while executing this line:
      /Users/manuel/liferay-workspace/trunk/plugins/build-common.xml:2094: The following error occurred while executing this line:
      /Users/manuel/liferay-workspace/trunk/plugins/build-common.xml:2243: The following error occurred while executing this line:
      /Users/manuel/liferay-workspace/trunk/plugins/build-common.xml:2187: The following error occurred while executing this line:
      /Users/manuel/liferay-workspace/trunk/plugins/build-common.xml:850: syntax errors in ivy file: java.text.ParseException: /Users/manuel/liferay-workspace/trunk/plugins/shared/localization-shared/ivy.xml (No such file or directory) in file:/Users/manuel/liferay-workspace/trunk/plugins/shared/localization-shared/ivy.xml
      	at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:278)
      	at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:117)
      	at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
      	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:185)
      	at org.apache.ivy.Ivy.resolve(Ivy.java:507)
      	at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:326)
      	at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.Sequential.execute(Sequential.java:68)
      	at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
      	at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      	at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.Sequential.execute(Sequential.java:68)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.MacroInstance.execute(MacroInstance.java:396)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.Sequential.execute(Sequential.java:68)
      	at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
      	at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      	at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.Sequential.execute(Sequential.java:68)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.MacroInstance.execute(MacroInstance.java:396)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.Sequential.execute(Sequential.java:68)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.MacroInstance.execute(MacroInstance.java:396)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.Sequential.execute(Sequential.java:68)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.MacroInstance.execute(MacroInstance.java:396)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      	at groovy.util.AntBuilder.performTask(AntBuilder.java:260)
      	at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220)
      	at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
      	at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170)
      	at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
      	at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:854)
      	at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:164)
      	at embedded_script_in__Users_manuel_liferay_workspace_trunk_plugins_build_common_dot_xml.run(embedded_script_in__Users_manuel_liferay_workspace_trunk_plugins_build_common_dot_xml:24)
      	at org.codehaus.groovy.ant.Groovy.parseAndRunScript(Groovy.java:440)
      	at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:414)
      	at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:280)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.Sequential.execute(Sequential.java:68)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.taskdefs.MacroInstance.execute(MacroInstance.java:396)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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:1393)
      	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
      	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
      	at org.apache.tools.ant.Main.runBuild(Main.java:851)
      	at org.apache.tools.ant.Main.startAnt(Main.java:235)
      	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
      	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
      Caused by: java.io.FileNotFoundException: /Users/manuel/liferay-workspace/trunk/plugins/shared/localization-shared/ivy.xml (No such file or directory)
      	at java.io.FileInputStream.open(Native Method)
      	at java.io.FileInputStream.<init>(FileInputStream.java:146)
      	at java.io.FileInputStream.<init>(FileInputStream.java:101)
      	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
      	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
      	at org.apache.ivy.util.url.BasicURLHandler.openStream(BasicURLHandler.java:171)
      	at org.apache.ivy.util.url.URLHandlerDispatcher.openStream(URLHandlerDispatcher.java:74)
      	at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:105)
      	at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:99)
      	at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:253)
      	... 135 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                haoliang.wu Haoliang Wu (Inactive)
                Reporter:
                manuel.delapenya Manuel de la Peña (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 1 week, 1 day ago

                  Packages

                  Version Package
                  7.0.0 M1