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

Details

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

    Description

      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);
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes