|
|
103ab0 |
From 760c3e7a568295ded8229b06e651915c78475ccd Mon Sep 17 00:00:00 2001
|
|
|
103ab0 |
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
|
103ab0 |
Date: Fri, 26 Apr 2019 00:50:00 +0200
|
|
|
103ab0 |
Subject: [PATCH 1/3] Move python modules under java-utils directory
|
|
|
103ab0 |
|
|
|
103ab0 |
---
|
|
|
103ab0 |
depgenerators/javadoc.req | 3 +++
|
|
|
103ab0 |
depgenerators/maven.prov | 2 ++
|
|
|
103ab0 |
depgenerators/maven.req | 2 ++
|
|
|
103ab0 |
depgenerators/osgi.prov | 2 ++
|
|
|
103ab0 |
depgenerators/osgi.req | 2 ++
|
|
|
103ab0 |
java-utils/builddep.py | 2 ++
|
|
|
103ab0 |
java-utils/maven_depmap.py | 2 ++
|
|
|
103ab0 |
java-utils/mvn_alias.py | 2 ++
|
|
|
103ab0 |
java-utils/mvn_artifact.py | 4 +++-
|
|
|
103ab0 |
java-utils/mvn_build.py | 2 ++
|
|
|
103ab0 |
java-utils/mvn_compat_version.py | 2 ++
|
|
|
103ab0 |
java-utils/mvn_config.py | 2 ++
|
|
|
103ab0 |
java-utils/mvn_file.py | 2 ++
|
|
|
103ab0 |
java-utils/mvn_package.py | 2 ++
|
|
|
103ab0 |
java-utils/pom_editor.py | 2 ++
|
|
|
103ab0 |
java-utils/request-artifact.py | 2 ++
|
|
|
103ab0 |
16 files changed, 34 insertions(+), 1 deletion(-)
|
|
|
103ab0 |
|
|
|
103ab0 |
diff --git a/depgenerators/javadoc.req b/depgenerators/javadoc.req
|
|
|
103ab0 |
index 4d182e2e..8528ee05 100755
|
|
|
103ab0 |
--- a/depgenerators/javadoc.req
|
|
|
103ab0 |
+++ b/depgenerators/javadoc.req
|
|
|
103ab0 |
@@ -32,6 +32,9 @@
|
|
|
103ab0 |
# Authors: Michael Simacek <msimacek@redhat.com>
|
|
|
103ab0 |
# Michal Srb <msrb@redhat.com>
|
|
|
103ab0 |
|
|
|
103ab0 |
+import sys
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.common.config import get_config
|
|
|
103ab0 |
|
|
|
103ab0 |
config = get_config()
|
|
|
103ab0 |
diff --git a/depgenerators/maven.prov b/depgenerators/maven.prov
|
|
|
103ab0 |
index 1448cbf6..c794dbea 100755
|
|
|
103ab0 |
--- a/depgenerators/maven.prov
|
|
|
103ab0 |
+++ b/depgenerators/maven.prov
|
|
|
103ab0 |
@@ -34,6 +34,8 @@
|
|
|
103ab0 |
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
import traceback
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.cache.metadata import MetadataCache
|
|
|
103ab0 |
from javapackages.common.util import kill_parent_process, init_rpmgen, get_logger
|
|
|
103ab0 |
|
|
|
103ab0 |
diff --git a/depgenerators/maven.req b/depgenerators/maven.req
|
|
|
103ab0 |
index b3597f78..912d5f98 100755
|
|
|
103ab0 |
--- a/depgenerators/maven.req
|
|
|
103ab0 |
+++ b/depgenerators/maven.req
|
|
|
103ab0 |
@@ -37,6 +37,8 @@ import re
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
import traceback
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.common.config import get_config
|
|
|
103ab0 |
from javapackages.common.util import (kill_parent_process,
|
|
|
103ab0 |
init_rpmgen,
|
|
|
103ab0 |
diff --git a/depgenerators/osgi.prov b/depgenerators/osgi.prov
|
|
|
103ab0 |
index baef6e48..7ed423a2 100755
|
|
|
103ab0 |
--- a/depgenerators/osgi.prov
|
|
|
103ab0 |
+++ b/depgenerators/osgi.prov
|
|
|
103ab0 |
@@ -34,6 +34,8 @@
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
import os
|
|
|
103ab0 |
import traceback
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.cache.osgi import OSGiCache
|
|
|
103ab0 |
from javapackages.common.util import kill_parent_process, init_rpmgen, get_logger
|
|
|
103ab0 |
|
|
|
103ab0 |
diff --git a/depgenerators/osgi.req b/depgenerators/osgi.req
|
|
|
103ab0 |
index 3cb53302..79dcaaa8 100755
|
|
|
103ab0 |
--- a/depgenerators/osgi.req
|
|
|
103ab0 |
+++ b/depgenerators/osgi.req
|
|
|
103ab0 |
@@ -34,6 +34,8 @@
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
import os
|
|
|
103ab0 |
import traceback
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.cache.osgi import OSGiCache
|
|
|
103ab0 |
from javapackages.common.util import kill_parent_process, init_rpmgen, get_logger
|
|
|
103ab0 |
|
|
|
103ab0 |
diff --git a/java-utils/builddep.py b/java-utils/builddep.py
|
|
|
103ab0 |
index fda36d2d..48d0963d 100644
|
|
|
103ab0 |
--- a/java-utils/builddep.py
|
|
|
103ab0 |
+++ b/java-utils/builddep.py
|
|
|
103ab0 |
@@ -33,6 +33,8 @@
|
|
|
103ab0 |
import optparse
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
|
103ab0 |
ArtifactValidationException)
|
|
|
103ab0 |
from javapackages.common.util import args_to_unicode
|
|
|
103ab0 |
diff --git a/java-utils/maven_depmap.py b/java-utils/maven_depmap.py
|
|
|
103ab0 |
index 92e0ff4c..9f1472a6 100644
|
|
|
103ab0 |
--- a/java-utils/maven_depmap.py
|
|
|
103ab0 |
+++ b/java-utils/maven_depmap.py
|
|
|
103ab0 |
@@ -46,6 +46,8 @@ import zipfile
|
|
|
103ab0 |
from time import gmtime, strftime
|
|
|
103ab0 |
from copy import deepcopy
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.maven.pom import POM
|
|
|
103ab0 |
from javapackages.metadata.artifact import MetadataArtifact
|
|
|
103ab0 |
from javapackages.metadata.alias import MetadataAlias
|
|
|
103ab0 |
diff --git a/java-utils/mvn_alias.py b/java-utils/mvn_alias.py
|
|
|
103ab0 |
index 4979a17a..962a35f0 100644
|
|
|
103ab0 |
--- a/java-utils/mvn_alias.py
|
|
|
103ab0 |
+++ b/java-utils/mvn_alias.py
|
|
|
103ab0 |
@@ -33,6 +33,8 @@
|
|
|
103ab0 |
import optparse
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
|
103ab0 |
ArtifactValidationException)
|
|
|
103ab0 |
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
|
103ab0 |
diff --git a/java-utils/mvn_artifact.py b/java-utils/mvn_artifact.py
|
|
|
103ab0 |
index d135adf2..51339d4b 100644
|
|
|
103ab0 |
--- a/java-utils/mvn_artifact.py
|
|
|
103ab0 |
+++ b/java-utils/mvn_artifact.py
|
|
|
103ab0 |
@@ -32,6 +32,9 @@
|
|
|
103ab0 |
|
|
|
103ab0 |
from __future__ import print_function
|
|
|
103ab0 |
|
|
|
103ab0 |
+import sys
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.metadata.metadata import Metadata
|
|
|
103ab0 |
from javapackages.metadata.artifact import MetadataArtifact
|
|
|
103ab0 |
from javapackages.metadata.dependency import MetadataDependency
|
|
|
103ab0 |
@@ -45,7 +48,6 @@ from javapackages.xmvn.xmvn_resolve import (XMvnResolve, ResolutionRequest,
|
|
|
103ab0 |
from javapackages.common.util import args_to_unicode
|
|
|
103ab0 |
from javapackages.common.exception import JavaPackagesToolsException
|
|
|
103ab0 |
|
|
|
103ab0 |
-import sys
|
|
|
103ab0 |
import os
|
|
|
103ab0 |
import lxml.etree
|
|
|
103ab0 |
from optparse import OptionParser
|
|
|
103ab0 |
diff --git a/java-utils/mvn_build.py b/java-utils/mvn_build.py
|
|
|
103ab0 |
index 98479962..4d5f54f7 100644
|
|
|
103ab0 |
--- a/java-utils/mvn_build.py
|
|
|
103ab0 |
+++ b/java-utils/mvn_build.py
|
|
|
103ab0 |
@@ -37,6 +37,8 @@ import optparse
|
|
|
103ab0 |
import subprocess
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.maven.artifact import Artifact
|
|
|
103ab0 |
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
|
103ab0 |
from javapackages.common.util import args_to_unicode, command_exists
|
|
|
103ab0 |
diff --git a/java-utils/mvn_compat_version.py b/java-utils/mvn_compat_version.py
|
|
|
103ab0 |
index e4afdbd7..d63dcf99 100644
|
|
|
103ab0 |
--- a/java-utils/mvn_compat_version.py
|
|
|
103ab0 |
+++ b/java-utils/mvn_compat_version.py
|
|
|
103ab0 |
@@ -33,6 +33,8 @@
|
|
|
103ab0 |
import optparse
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
|
103ab0 |
ArtifactValidationException)
|
|
|
103ab0 |
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
|
103ab0 |
diff --git a/java-utils/mvn_config.py b/java-utils/mvn_config.py
|
|
|
103ab0 |
index 7597761e..f7930985 100644
|
|
|
103ab0 |
--- a/java-utils/mvn_config.py
|
|
|
103ab0 |
+++ b/java-utils/mvn_config.py
|
|
|
103ab0 |
@@ -33,6 +33,8 @@
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
import optparse
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
|
103ab0 |
from javapackages.common.util import args_to_unicode
|
|
|
103ab0 |
from javapackages.common.exception import JavaPackagesToolsException
|
|
|
103ab0 |
diff --git a/java-utils/mvn_file.py b/java-utils/mvn_file.py
|
|
|
103ab0 |
index 39d1348f..40ae156e 100644
|
|
|
103ab0 |
--- a/java-utils/mvn_file.py
|
|
|
103ab0 |
+++ b/java-utils/mvn_file.py
|
|
|
103ab0 |
@@ -33,6 +33,8 @@
|
|
|
103ab0 |
import optparse
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
|
103ab0 |
ArtifactValidationException)
|
|
|
103ab0 |
from javapackages.xmvn.xmvn_config import XMvnConfig, XMvnConfigException
|
|
|
103ab0 |
diff --git a/java-utils/mvn_package.py b/java-utils/mvn_package.py
|
|
|
103ab0 |
index b74da128..2a2f4619 100644
|
|
|
103ab0 |
--- a/java-utils/mvn_package.py
|
|
|
103ab0 |
+++ b/java-utils/mvn_package.py
|
|
|
103ab0 |
@@ -33,6 +33,8 @@
|
|
|
103ab0 |
import optparse
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
|
103ab0 |
ArtifactValidationException)
|
|
|
103ab0 |
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
|
103ab0 |
diff --git a/java-utils/pom_editor.py b/java-utils/pom_editor.py
|
|
|
103ab0 |
index 82a555b8..6c09665c 100644
|
|
|
103ab0 |
--- a/java-utils/pom_editor.py
|
|
|
103ab0 |
+++ b/java-utils/pom_editor.py
|
|
|
103ab0 |
@@ -11,6 +11,8 @@ import io
|
|
|
103ab0 |
from lxml import etree
|
|
|
103ab0 |
from os import path
|
|
|
103ab0 |
from textwrap import dedent
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.common.exception import JavaPackagesToolsException
|
|
|
103ab0 |
|
|
|
103ab0 |
# all macro fuctions that can be called from external world
|
|
|
103ab0 |
diff --git a/java-utils/request-artifact.py b/java-utils/request-artifact.py
|
|
|
103ab0 |
index 68cb1119..55dfd985 100644
|
|
|
103ab0 |
--- a/java-utils/request-artifact.py
|
|
|
103ab0 |
+++ b/java-utils/request-artifact.py
|
|
|
103ab0 |
@@ -35,6 +35,8 @@ from __future__ import print_function
|
|
|
103ab0 |
|
|
|
103ab0 |
import sys
|
|
|
103ab0 |
|
|
|
103ab0 |
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
|
103ab0 |
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
|
103ab0 |
from javapackages.common.mock import (InstallationException, ConnectionException,
|
|
|
103ab0 |
install_maven_artifact)
|
|
|
103ab0 |
|
|
|
103ab0 |
--
|
|
|
103ab0 |
2.21.0
|
|
|
103ab0 |
|