hypfvieh / dbus-java

Improved version of java DBus library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/)
https://hypfvieh.github.io/dbus-java/
MIT License
185 stars 73 forks source link

Feature/fix imports #36

Closed sshort closed 5 years ago

sshort commented 5 years ago

Fixed imports by 1) don't write interface class file during parseInterface, but save all the info to a definitions array. 2) Track the structs created in each package in class variable structPackages. 3) After xml has been parsed, write out all the interface classes from the definitions, using the packages saved in 2) to create the import statements.

All the firewalld objects provided earlier now compile cleanly. The code is not that elegant, but since you are re-visting this area anyway...

hypfvieh commented 5 years ago

Could you please change the scope of logback back to "test" or to "runtime". I don't want to force the user to use logback, so we should avoid compile time dependency on it.