package org.zanata.client.ant.po;


import org.kohsuke.args4j.Option;
import org.zanata.client.config.LocaleList;

public abstract class ConfigurableProjectTask extends ConfigurableTask
{
   private String projectConfig = "zanata.xml";

   private String project;
   private String projectVersion;
   private LocaleList locales;

   public String getProj()
   {
      return project;
   }

   @Option(name = "--project", metaVar = "PROJ", usage = "Project ID.  This value is required unless specified in zanata.xml.")
   public void setProj(String projectSlug)
   {
      this.project = projectSlug;
   }

   @Option(name = "--project-config", metaVar = "FILENAME", usage = "Project configuration, eg zanata.xml", required = false)
   public void setProjectConfig(String projectConfig)
   {
      this.projectConfig = projectConfig;
   }

   public String getProjectVersion()
   {
      return projectVersion;
   }

   @Option(name = "--project-version", metaVar = "VER", usage = "Project version ID  This value is required unless specified in zanata.xml.")
   public void setProjectVersion(String versionSlug)
   {
      this.projectVersion = versionSlug;
   }

   public String getProjectConfig()
   {
      return projectConfig;
   }

   public LocaleList getLocales()
   {
      return locales;
   }

   public void setLocales(LocaleList locales)
   {
      this.locales = locales;
   }
}

@@ -291,16 +291,47 @@
 ersion;%0A
+   private String projectType;%0A
    priva
@@ -1179,32 +1179,367 @@
 sionSlug;%0A   %7D%0A%0A
+   public String getProjectType()%0A   %7B%0A      return projectType;%0A   %7D%0A%0A   @Option(name = %22--project-type%22, metaVar = %22PROJTYPE%22, usage = %22Type of project ('properties' = Java .properties, 'podir' = publican-style gettext directories)%22)%0A   public void setProjectType(String projectType)%0A   %7B%0A      this.projectType = projectType;%0A   %7D%0A%0A
    public String

update ant client to use project type from zanata.xml