This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
ConfigurableProjectOptions.java
102 lines (78 loc) · 3.06 KB
/
ConfigurableProjectOptions.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package org.zanata.client.commands;
import java.io.File;
import java.util.List;
import org.kohsuke.args4j.Option;
import org.zanata.client.config.FileMappingRule;
import org.zanata.client.config.LocaleList;
import com.google.common.collect.ImmutableList;
/**
* Base options for commands which support configuration by the user's
* zanata.ini and by a project's zanata.xml
*
* @author Sean Flanigan <sflaniga@redhat.com>
*
*/
public interface ConfigurableProjectOptions extends ConfigurableOptions {
public String getProj();
@Option(
name = "--project",
metaVar = "PROJ",
usage = "Project ID. This value is required unless specified in zanata.xml.")
public
void setProj(String projectSlug);
@Option(name = "--project-config", metaVar = "FILENAME",
usage = "Project configuration file, eg zanata.xml",
required = false)
public void setProjectConfig(File projectConfig);
public String getProjectVersion();
@Option(
name = "--project-version",
metaVar = "VER",
usage = "Project version ID This value is required unless specified in zanata.xml.")
public
void setProjectVersion(String versionSlug);
public String getProjectType();
@Option(
aliases = { "-T" },
name = "--project-type",
metaVar = "PROJTYPE",
usage = "Project type This value is required unless specified in zanata.xml.")
public
void setProjectType(String projectType);
public File getProjectConfig();
public LocaleList getLocaleMapList();
public void setLocaleMapList(LocaleList locales);
@Option(
aliases = { "-s" },
name = "--src-dir",
metaVar = "DIR",
required = true,
usage = "Base directory for source files (eg \".\", \"pot\", \"src/main/resources\")")
void setSrcDir(File srcDir);
File getSrcDir();
@Option(
aliases = { "-t" },
name = "--trans-dir",
metaVar = "DIR",
required = true,
usage = "Base directory for translated files (eg \".\", \"po\", \"src/main/resources\")")
void setTransDir(File transDir);
File getTransDir();
ImmutableList<String> getIncludes();
ImmutableList<String> getExcludes();
@Option(
name = "--includes",
metaVar = "INCLUDES",
usage = "Wildcard pattern to include files and directories. This parameter is only\n"
+ "needed for some project types, eg XLIFF, Properties. Usage\n"
+ "--includes=\"src/myfile*.xml,**/*.xlf\"")
void setIncludes(String includes);
@Option(
name = "--excludes",
metaVar = "EXCLUDES",
usage = "Wildcard pattern to exclude files and directories. Usage\n"
+ "--excludes=\"Pattern1,Pattern2,Pattern3\"")
void setExcludes(String excludes);
void setFileMappingRules(List<FileMappingRule> rules);
List<FileMappingRule> getFileMappingRules();
}