Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8038944

LinuxRPMBundler fails to run with LICENSE_FILES param specified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • None
    • 8u20
    • deploy
    • Ubuntu 13.04 x64

    • b04
    • generic
    • linux_ubuntu

    Description

      When specifying LICENSE_FILES option for LinuxRPMBundler with _any_
      valid/invalid values (except for empty List<String> passed), bundling would fail with such an output:

      Running [rpmbuild, --version]
      Generating RPM for installer to: /tmp/testFxAppWithUtil/bundles
      Running [rpmbuild, -bb, /tmp/fxbundler280433665007146966/images/linux-rpm.image/App1.spec, --define, %_sourcedir /tmp/fxbundler280433665007146966/images/linux-rpm.image, --define, %_rpmdir /tmp/testFxAppWithUtil/bundles, --define, %_topdir /tmp/fxbundler280433665007146966/rmpbuildroot] in /tmp/fxbundler280433665007146966/images/linux-rpm.image
      java.io.IOException: Exec failed with code 1 command [[rpmbuild, -bb, /tmp/fxbundler280433665007146966/images/linux-rpm.image/App1.spec, --define, %_sourcedir /tmp/fxbundler280433665007146966/images/linux-rpm.image, --define, %_rpmdir /tmp/testFxAppWithUtil/bundles, --define, %_topdir /tmp/fxbundler280433665007146966/rmpbuildroot] in /tmp/fxbundler280433665007146966/images/linux-rpm.image
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:165)
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:138)
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:132)
      at com.sun.javafx.tools.packager.bundlers.LinuxRPMBundler.buildRPM(LinuxRPMBundler.java:366)
      at com.sun.javafx.tools.packager.bundlers.LinuxRPMBundler.bundle(LinuxRPMBundler.java:171)
      at com.sun.javafx.tools.packager.bundlers.LinuxRPMBundler.execute(LinuxRPMBundler.java:441)
      at com.oracle.appbundlers.utils.JavaApiBundlingManager.execute(JavaApiBundlingManager.java:33)
      at com.oracle.appbundlers.tests.ResourcesTest.testLicense(ResourcesTest.java:142)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
      at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
      at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
      at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:125)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

      So, we can assume this option is not working at all.

      Attachments

        Activity

          People

            dginzbur Dmitry Ginzburg (Inactive)
            dginzbur Dmitry Ginzburg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: