Repository: systemml Updated Branches: refs/heads/master d45b84863 -> 6133be23e
[MINOR] Exclude uberjar from python artifact when use both profiles Exclude standalone uberjar from python jar if both profiles are used to build the artifacts: mvn clean package -P distribution,standalone-jar Project: http://git-wip-us.apache.org/repos/asf/systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/6133be23 Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/6133be23 Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/6133be23 Branch: refs/heads/master Commit: 6133be23ee8caefed84b1042c4335f19520db64e Parents: d45b848 Author: Deron Eriksson <[email protected]> Authored: Fri Jul 21 01:42:15 2017 -0700 Committer: Deron Eriksson <[email protected]> Committed: Fri Jul 21 01:42:15 2017 -0700 ---------------------------------------------------------------------- src/main/python/pre_setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/systemml/blob/6133be23/src/main/python/pre_setup.py ---------------------------------------------------------------------- diff --git a/src/main/python/pre_setup.py b/src/main/python/pre_setup.py index 0b7d7b5..12367e6 100644 --- a/src/main/python/pre_setup.py +++ b/src/main/python/pre_setup.py @@ -32,7 +32,8 @@ root_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.getcwd()))) for file in os.listdir(os.path.join(root_dir, 'target')): if (fnmatch.fnmatch(file, 'systemml-*-SNAPSHOT.jar') or fnmatch.fnmatch(file, 'systemml-*.jar') and not (fnmatch.fnmatch(file, 'systemml-*javadoc.jar') - or fnmatch.fnmatch(file, 'systemml-*sources.jar'))): + or fnmatch.fnmatch(file, 'systemml-*sources.jar') + or fnmatch.fnmatch(file, 'systemml-*standalone.jar'))): shutil.copyfile(os.path.join(root_dir, 'target', file), os.path.join(java_dir_full_path, file)) if fnmatch.fnmatch(file, 'systemml-*-SNAPSHOT-extra.jar') or fnmatch.fnmatch(file, 'systemml-*-extra.jar'):
