blob: f1296c0c83e2dd7103018e0b08576c89f2c30cfe (
plain) (
blame)
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
|
from __future__ import absolute_import
import core.yarg
import jbuild.maven.maven_import as mi
import core.common_opts as common_opts
import build.build_opts as build_opts
import app
import app_config
from core.yarg.help_level import HelpLevel
class MavenImportYaHandler(core.yarg.OptsHandler):
description = 'Import specified artifact from remote maven repository to arcadia/contrib/java.'
visible = app_config.in_house
def __init__(self):
super(MavenImportYaHandler, self).__init__(
action=app.execute(mi.do_import),
opts=[
build_opts.MavenImportOptions(visible=HelpLevel.BASIC),
build_opts.BuildThreadsOptions(build_threads=None),
common_opts.OutputStyleOptions(),
common_opts.TransportOptions(),
common_opts.ShowHelpOptions(),
build_opts.YMakeBinOptions(),
build_opts.CustomFetcherOptions(),
build_opts.ToolsOptions(),
]
+ build_opts.checkout_options(),
description=self.description,
)
|