Package org.omegat.core.team2
Class TeamTool
- java.lang.Object
-
- org.omegat.core.team2.TeamTool
-
public final class TeamTool extends java.lang.Object
A utility class implementing useful tools related to team projects. Intended mostly for CLI use.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMMAND_INIT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
initTeamProject(java.io.File dir, java.lang.String srcLang, java.lang.String trgLang)
Utility function to create a minimal project to serve as a base for a team project.static void
main(java.lang.String[] args)
static void
showHelp()
-
-
-
Field Detail
-
COMMAND_INIT
public static final java.lang.String COMMAND_INIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
initTeamProject
public static void initTeamProject(java.io.File dir, java.lang.String srcLang, java.lang.String trgLang) throws java.lang.Exception
Utility function to create a minimal project to serve as a base for a team project. Will add/stage everything if invoked on a path already containing a git working tree or svn checkout.- Parameters:
dir
- Directory in which to create team projectsrcLang
- Source languagetrgLang
- Target language- Throws:
java.lang.Exception
- If specified dir is not a directory, is not writeable, etc.
-
showHelp
public static void showHelp()
-
main
public static void main(java.lang.String[] args)
-
-