Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.1.0 Java
Description
Passing arguments like -d or the improved -l to actually define the log level rather than just turning Debugging off causes exceptions in Java Console
ALL
Exception in thread "main" java.net.MalformedURLException: no protocol: -l/DeviceDataSource.xml
at java.net.URL.<init>(URL.java:589)
at java.net.URL.<init>(URL.java:486)
at java.net.URL.<init>(URL.java:435)
at org.apache.devicemap.loader.resource.URLResource.getResource(URLResource.java:45)
at org.apache.devicemap.loader.impl.DDRLoader.getData(DDRLoader.java:61)
at org.apache.devicemap.DeviceMapClient.initDeviceData(DeviceMapClient.java:60)
at org.apache.devicemap.console.Main.main(Main.java:105)
It seems nested Ifs for command line arguments don't work properly. Using a small but effective command definition like Airline (https://github.com/airlift/airline) helped other comand line tools and should help solve this.