Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-44

Improve templates usage

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • QtTAS 3.0
    • None
    • QtTAS: General
    • None

    Description

      NewProjectAction.java improve the TODO 

      Instead
       
       

      InputStream in = getClass().getResourceAsStream( "/templates/qtquickapplication/CMakeLists.txt");
      if (in !=null) {
      Stringcontent=IOUtils.toString(in, StandardCharsets.UTF_8);
      content = content.replaceAll("%PROJECT_NAME%", projectName);
      content = content.replaceAll("%QT_MIN_VERSION%", settingsProject.qtMinVersion);
      IOUtils.write(content, newFileOutputStream( Paths.get(projectLocation, "CMakeLists.txt").toFile()), StandardCharsets.UTF_8);
      }

      replace the manual copying of all files under the project to something more generic
       

      Attachments

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

        Activity

          People

            nikunj Nikunj Arora
            rampe Rami Potinkara
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes