docs: public boolean populateSourceDir(String templateDir)
      {
          URL fromDirUrl = this.getTask().getApplication().getResourceURL(templateDir, null);
          if ("jar".equalsIgnoreCase(fromDirUrl.getProtocol()))
          {   // Copy jar files
              try {
                  String fileName = fromDirUrl.getFile();
                  if (fileName.lastIndexOf(':') != -1)
                      fileName = fileName.substring(fileName.lastIndexOf(':') + 1);
                  if (fileName.lastIndexOf('!') != -1)
                      fileName = fileName.substring(0, fileName.lastIndexOf('!'));
                  InputStream inStream = new FileInputStream(fileName);
                  JarInputStream file = new JarInputStream(inStream);
                  ZipEntry entry = null;
                  while ((entry = file.getNextEntry()) != null)
                  {
                      String path = entry.getName();
                      if (path.contains("META-INF"))
                          continue;
                      if (!path.endsWith("pom.xml"))
                          continue;
                      if (path.startsWith(templateDir))
                          path = path.substring(templateDir.length());
                      int lStreamLength = (int)entry.getSize();
                          
                      String xml = this.transferStream(file, lStreamLength);
                      this.convertAndWriteXML(xml, path);
                  }                
              } catch (IOException ex)    {
                  ex.printStackTrace();
              }
          }
          return true;
      }