Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-520

Cannot create an Artifact condition based on input.fileName

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.2.0
    • General
    • None

    Description

      When creating a Rule with conditional Artifacts, input.fileName is not accessible from the "condition "property.

      Rule {
          inputs: [ "txt-in" ]
      
          Artifact {
              condition: input.fileName !== "ignore-me.txt"
              fileTags: [ "txt-out" ]
              fileName: "GeneratedFiles/" + product.name + "/" + input.fileName
          }
      
          ...
      }
      

      It fails with a referenced error:

      ReferenceError: Can't find variable: input
      

      input.fileName is accessible from the Artifact.fileName property, though.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            bwalter Benoit Walter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes