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

Add a way to access the file path for the current Module from a Rule or Transformer's prepare script

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 1.0.1
    • General
    • None

      Such functionality would be useful for referring to auxiliary files within a module's directory (templates, etc.) during the build process.

      The following workaround can currently be used:

      var process = new Process();
      process.exec("which", ["qbs"], true);
      var moduleDirectory = FileInfo.joinPaths(FileInfo.path(process.readStdOut()),
          "../share/qbs/modules", product.moduleName);
      

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

            jbornema Joerg Bornemann
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes