@Override
 public void execute(ProjectNode node) {
   Downloader.getInstance()
       .download(
           ServerLayout.DOWNLOAD_SERVLET_BASE
               + ServerLayout.DOWNLOAD_PROJECT_OUTPUT
               + "/"
               + node.getProjectId()
               + "/"
               + ServerLayout.BUILD_TARGET_WEB);
 }
Пример #2
0
    @Override
    public void execute() {
      Tracking.trackEvent(
          Tracking.PROJECT_EVENT, Tracking.PROJECT_ACTION_DOWNLOAD_ALL_PROJECTS_SOURCE_YA);

      // Is there a way to disable the Download All button until this completes?
      Window.alert(MESSAGES.downloadAllAlert());

      Downloader.getInstance()
          .download(ServerLayout.DOWNLOAD_SERVLET_BASE + ServerLayout.DOWNLOAD_ALL_PROJECTS_SOURCE);
    }
Пример #3
0
    private void exportProject(Project project) {
      Tracking.trackEvent(
          Tracking.PROJECT_EVENT,
          Tracking.PROJECT_ACTION_DOWNLOAD_PROJECT_SOURCE_YA,
          project.getProjectName());

      Downloader.getInstance()
          .download(
              ServerLayout.DOWNLOAD_SERVLET_BASE
                  + ServerLayout.DOWNLOAD_PROJECT_SOURCE
                  + "/"
                  + project.getProjectId());
    }
 @Override
 public void execute(ProjectNode node) {
   Downloader.getInstance()
       .download(StorageUtil.getFilePath(node.getProjectId(), node.getFileId()));
 }