Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
rhbz870876 prevent null server url in config in zip package from gwt …
…document list
  • Loading branch information
davidmason committed Mar 25, 2013
1 parent f20dc1f commit 2748bdf
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -28,6 +28,7 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.security.Identity;
import org.zanata.ApplicationConfiguration;
import org.zanata.dao.ProjectIterationDAO;
import org.zanata.model.HProjectIteration;
import org.zanata.process.IterationZipFileBuildProcess;
Expand All @@ -49,6 +50,9 @@
@ActionHandlerFor(DownloadAllFilesAction.class)
public class DownloadAllFilesHandler extends AbstractActionHandler<DownloadAllFilesAction, DownloadAllFilesResult>
{
@In
private ApplicationConfiguration applicationConfiguration;

@In
private ZanataIdentity identity;

Expand Down Expand Up @@ -80,6 +84,7 @@ public DownloadAllFilesResult execute(DownloadAllFilesAction action, ExecutionCo
processHandle.setLocaleId(action.getLocaleId());
processHandle.setInitiatingUserName(Identity.instance().getCredentials().getUsername());
processHandle.setOfflinePo(action.isOfflinePo());
processHandle.setServerPath(applicationConfiguration.getServerPath());

// Fire the zip file building process and wait until it is ready to
// return
Expand Down

0 comments on commit 2748bdf

Please sign in to comment.