Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-1892

RHAMT-CLI quits on encountering empty source directories

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 4.0.0.Final
    • None
    • None
    • Workaround Exists
    • Hide

      Please add --sourceMode option at the end of the command

      Show
      Please add --sourceMode option at the end of the command
    • Hide

      Create a pom structure where you have rootfolder with pom.xml and a subfolder also with a pom.xml and an empty directory (e.g. "test") in the rootfolder.

      Execute a command like : rhamt-cli --input lab-3/sample-app-websphere --output lab-2/report --source websphere --target eap7 --packages com.rhc

      Show
      Create a pom structure where you have rootfolder with pom.xml and a subfolder also with a pom.xml and an empty directory (e.g. "test") in the rootfolder. Execute a command like : rhamt-cli --input lab-3/sample-app-websphere --output lab-2/report --source websphere --target eap7 --packages com.rhc

    Description

      Current behavior : When running a rhmat-cli analysis against a multi-project maven source project that contains an empty folder an exception is thrown and the amt cli-runtime quits.

      Expected behavior : Empty folders should just be ignored while continuing to scan

      *Stack Trace : *

      Execution failed due to: Application is an empty directory: lab-3/sample-app-websphere/test
      java.lang.IllegalArgumentException: Application is an empty directory: lab-3/sample-app-websphere/test
      at org.jboss.windup.util.Checks.checkFileOrDirectoryToBeRead(Checks.java:56)
      at org.jboss.windup.exec.WindupProcessorImpl.validateConfig(WindupProcessorImpl.java:349)
      at org.jboss.windup.exec.WindupProcessorImpl.execute(WindupProcessorImpl.java:97)
      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:498)
      at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      at org.jboss.windup.exec.WindupProcessorImpl_$$javassist_74a23b6b-e550-4df0-90e7-cca495afefac.execute(WindupProcessorImpl$$_javassist_74a23b6b-e550-4df0-90e7-cca495afefac.java)
      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:498)
      at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:124)
      at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:97)
      at org.jboss.windup.exec.WindupProcessor_$$javassist_2e8f6f13-7bfb-4738-81cc-e984dfca864f.execute(WindupProcessor$$_javassist_2e8f6f13-7bfb-4738-81cc-e984dfca864f.java)
      at org.jboss.windup.bootstrap.commands.windup.RunWindupCommand.runWindup(RunWindupCommand.java:283)
      at org.jboss.windup.bootstrap.commands.windup.RunWindupCommand.execute(RunWindupCommand.java:73)
      at org.jboss.windup.bootstrap.Bootstrap.executePhase(Bootstrap.java:453)
      at org.jboss.windup.bootstrap.Bootstrap.run(Bootstrap.java:318)
      at org.jboss.windup.bootstrap.Bootstrap.main(Bootstrap.java:100)

      Attachments

        Activity

          People

            mrizzi@redhat.com Marco Rizzi
            dbrintzi@redhat.com Daniel Brintzinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: