fix cppscanner file type passing

Without the proper file type, Q_PLUGIN_METADATA wasn't found anymore.

Change-Id: I9f753422fd8fd388f9e8c5a4ba1d49543dc45382
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Always try to create the target directory when copying files.

There is not much sense in limiting this to the case of the source file
being a directory, as in the current implementation.

Change-Id: Ic8e516cd182a551af8ee0fce2517649388edb234
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Fix crash on restoring.

Do not apply rules to disabled products.

Change-Id: Ib9b32420ecefdc76e86c80ce2f4d1cb6ad44d4b4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>