Hi,

I am struggling for a while trying to trigger a Rule on completion of an Application.
In any way I tried it, the Rule is never executed.
Here is a small example, which do not work for me, because the Rule is never executed.

import qbs 1.0
import qbs.File
import qbs.FileInfo

Project {
    name: "mainproject"
    minimumQbsVersion: "1.4.0"


    Product {
        name: "helloworld"
        type: "application"
        files: "main.c"
        Depends { name: "cpp" }
    }

    Product {
        name: "copy"
        type: ["custom-image"]
        Depends { name:"helloworld" }

        Rule {
            multiplex: true
            inputsFromDependencies: ["application"]

            prepare: {
                var cmds = [];

                var cmd = new _javascript_Command();
                cmd.description = "deploy " + input.filePath;
                cmd.highlight = "codegen";
                cmd.sourceCode = function() {
                    File.copy(input.filePath, "/tmp/helloworld");
                }
                cmds.push(cmd);
                return cmds;
            }
        }
    }
}

Probably I am making a noob's mistake. I would be very glad for any hint.

Thanks a lot
Stefan



Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | www.hbm.com

Registered as GmbH (German limited liability corporation) in the commercial register at the local court of Darmstadt, HRB 1147  
Company domiciled in Darmstadt | Managing Director: Andreas Hüllhorst | Chairman of the board: Eoghan O’Lionaird

Als Gesellschaft mit beschränkter Haftung eingetragen im Handelsregister des Amtsgerichts Darmstadt unter HRB 1147 
Sitz der Gesellschaft: Darmstadt | Geschäftsführung: Andreas Hüllhorst | Aufsichtsratsvorsitzender: Eoghan O’Lionaird

The information in this email is confidential. It is intended solely for the addressee. If you are not the intended recipient, please let me know and delete this email.

Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich für den Empfänger bestimmt. Sollten Sie nicht der eigentliche Empfänger sein, informieren Sie mich bitte kurz und löschen diese E-Mail.


_______________________________________________
QBS mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to