Projects
Mega:24.03
javapackages-tools
_service:tar_scm:0001-Support-threads-and-skipT...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-Support-threads-and-skipTests-params.patch of Package javapackages-tools
From d42f9bd30116e3427762c8640156ff0259621f45 Mon Sep 17 00:00:00 2001 From: maminjie <maminjie1@huawei.com> Date: Fri, 16 Apr 2021 11:15:07 +0800 Subject: [PATCH] Support threads and skipTests params --- java-utils/mvn_build.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/java-utils/mvn_build.py b/java-utils/mvn_build.py index 9847996..759a1c5 100644 --- a/java-utils/mvn_build.py +++ b/java-utils/mvn_build.py @@ -71,6 +71,9 @@ if __name__ == "__main__": parser.add_option("-f", "--force", "--skip-tests", action="store_true", help="Skip test compilation and execution.") + parser.add_option("--skipTests", + action="store_true", + help="Skip test execution.") parser.add_option("-g", "--goal-before", "--pre", dest="goal_before", action="callback", @@ -99,6 +102,8 @@ if __name__ == "__main__": parser.add_option("--xmvn-javadoc", action="store_true", help="Use experimental XMvn javadoc MOJO to generate javadocs.") + parser.add_option("-T", "--threads", + help="Thread count, for instance 2.0C, where C is core multiplied.") sys.argv = args_to_unicode(sys.argv) @@ -130,12 +135,18 @@ if __name__ == "__main__": if options.debug: mvn_args.append("--debug") + if options.threads: + mvn_args.append("-T %s" % (options.threads)) + if options.xmvn_debug or options.debug: mvn_args.append("-Dxmvn.debug") - if options.force: - mvn_args.append("-Dmaven.test.skip=true") - xc.add_custom_option("buildSettings/skipTests", "true") + if options.force or options.skipTests: + if options.force: + mvn_args.append("-Dmaven.test.skip=true") + xc.add_custom_option("buildSettings/skipTests", "true") + else: + mvn_args.append("-DskipTests=true") if options.gradle: base_goal = "assemble" else: -- 2.23.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2