Skip to content

Commit fcb899d

Browse files
committed
Merge pull request graalvm#132 in G/mx from ~CHRISTIAN.HUMER_ORACLE.COM/mx:add_maven_install_only to master
* commit '490d43ce20883c58dcc2ce5ad711dd29318dff02': Fix trailing whitespace Add maven-install --only to limit it to only some distributions.
2 parents 0c7caa4 + 490d43c commit fcb899d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mx.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13235,6 +13235,7 @@ def maven_install(args):
1323513235
parser.add_argument('--no-checks', action='store_true', help='checks on status are disabled')
1323613236
parser.add_argument('--test', action='store_true', help='print info about JARs to be installed')
1323713237
parser.add_argument('--repo', action='store', help='path to local Maven repository to install to')
13238+
parser.add_argument('--only', action='store', help='comma separated set of distributions to deploy')
1323813239
args = parser.parse_args(args)
1323913240

1324013241
_mvn.check()
@@ -13243,10 +13244,12 @@ def maven_install(args):
1324313244
version = s.vc.parent(s.dir)
1324413245
releaseVersion = s.release_version(snapshotSuffix='SNAPSHOT')
1324513246
arcdists = []
13247+
only = args.only.split(',')
1324613248
for dist in s.dists:
1324713249
# ignore non-exported dists
1324813250
if not dist.internal and not dist.name.startswith('COM_ORACLE') and dist.maven:
13249-
arcdists.append(dist)
13251+
if len(only) is 0 or dist.name in only:
13252+
arcdists.append(dist)
1325013253

1325113254
mxMetaName = _mx_binary_distribution_root(s.name)
1325213255
s.create_mx_binary_distribution_jar()
@@ -13830,7 +13833,7 @@ def alarm_handler(signum, frame):
1383013833
# no need to show the stack trace when the user presses CTRL-C
1383113834
abort(1)
1383213835

13833-
version = VersionSpec("5.31.2")
13836+
version = VersionSpec("5.31.4")
1383413837

1383513838
currentUmask = None
1383613839

0 commit comments

Comments
 (0)