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

Commit

Permalink
Merge branch 'master' into raw-file-upload
Browse files Browse the repository at this point in the history
Conflicts:
	zanata-client-commands/src/main/java/org/zanata/client/commands/push/PushOptions.java
            Methods removed in both branches. Removed all.
  • Loading branch information
davidmason committed Oct 18, 2012
2 parents 103fa4b + 5e85fb4 commit 87eef70
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 32 deletions.
Expand Up @@ -111,10 +111,6 @@ private void logOptions()
log.info("Source language: {}", getOpts().getSourceLang());
log.info("Copy previous translations: {}", getOpts().getCopyTrans());
log.info("Merge type: {}", getOpts().getMergeType());
if (pushTrans() && mergeAuto())
{
log.info("Batch size: {}", getOpts().getBatchSize());
}
log.info("Enable modules: {}", getOpts().getEnableModules());

if (getOpts().getEnableModules())
Expand Down Expand Up @@ -177,12 +173,6 @@ private boolean pushTrans()
public void run() throws Exception
{
logOptions();

if (getOpts().getBatchSize() <= 0)
{
throw new RuntimeException("Batch size needs to be 1 or more.");
}

pushCurrentModule();

if (pushSource() && getOpts().getEnableModules() && getOpts().isRootModule())
Expand Down
Expand Up @@ -30,6 +30,5 @@
public interface PushOptions extends CommonPushOptions
{
public boolean getCopyTrans();
public int getBatchSize();
}

Expand Up @@ -148,7 +148,6 @@ private PushCommand generatePushCommand(boolean pushTrans, boolean mapLocale) th
opts.excludes = new ArrayList<String>();
opts.sourceLang = "en-US";
opts.mergeType = "auto";
opts.batchSize = 100;
LocaleList locales = new LocaleList();
if (mapLocale)
{
Expand Down
Expand Up @@ -46,7 +46,6 @@ class PushOptionsImpl extends ConfigurableProjectOptionsImpl implements PushOpti
File transDir;
File srcDir;
String sourceLang;
int batchSize;

@Override
public ZanataCommand initCommand()
Expand Down Expand Up @@ -188,10 +187,4 @@ public String getModuleSuffix()
return null;
}

@Override
public int getBatchSize()
{
return batchSize;
}

}
13 changes: 0 additions & 13 deletions zanata-maven-plugin/src/main/java/org/zanata/maven/PushMojo.java
Expand Up @@ -121,13 +121,6 @@ public PushCommand initCommand()
*/
private String[] locales;

/**
* Batch size for large translation file. Only apply for merge="auto"
*
* @parameter expression="${zanata.batchSize}" default-value=100
*/
private int batchSize = 100;

// Cached copy of the effective locales to avoid calculating it more than once
private LocaleList effectiveLocales;

Expand Down Expand Up @@ -164,12 +157,6 @@ public String getMergeType()
return merge;
}

@Override
public int getBatchSize()
{
return batchSize;
}

@Override
public boolean getDeleteObsoleteModules()
{
Expand Down

0 comments on commit 87eef70

Please sign in to comment.