Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.0.0.Final
-
None
-
None
-
Workaround Exists
-
-
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)