ignoredDeps) {
}
private String getExhortIgnoreMethod() {
- var val = Environment.get(EXHORT_IGNORE_METHOD);
+ var val = Environment.get(TRUSTIFY_DA_IGNORE_METHOD);
return val != null ? val.trim().toLowerCase() : null;
}
diff --git a/src/main/java/com/redhat/exhort/sbom/Sbom.java b/src/main/java/io/github/guacsec/trustifyda/sbom/Sbom.java
similarity index 97%
rename from src/main/java/com/redhat/exhort/sbom/Sbom.java
rename to src/main/java/io/github/guacsec/trustifyda/sbom/Sbom.java
index 73d8fefc..ed5bcf79 100644
--- a/src/main/java/com/redhat/exhort/sbom/Sbom.java
+++ b/src/main/java/io/github/guacsec/trustifyda/sbom/Sbom.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.redhat.exhort.sbom;
+package io.github.guacsec.trustifyda.sbom;
import com.github.packageurl.PackageURL;
import java.util.Collection;
diff --git a/src/main/java/com/redhat/exhort/sbom/SbomFactory.java b/src/main/java/io/github/guacsec/trustifyda/sbom/SbomFactory.java
similarity index 95%
rename from src/main/java/com/redhat/exhort/sbom/SbomFactory.java
rename to src/main/java/io/github/guacsec/trustifyda/sbom/SbomFactory.java
index 262a0f47..bb54b56e 100644
--- a/src/main/java/com/redhat/exhort/sbom/SbomFactory.java
+++ b/src/main/java/io/github/guacsec/trustifyda/sbom/SbomFactory.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.redhat.exhort.sbom;
+package io.github.guacsec.trustifyda.sbom;
public class SbomFactory {
diff --git a/src/main/java/io/github/guacsec/trustifyda/sbom/package-info.java b/src/main/java/io/github/guacsec/trustifyda/sbom/package-info.java
new file mode 100644
index 00000000..84d1ff1f
--- /dev/null
+++ b/src/main/java/io/github/guacsec/trustifyda/sbom/package-info.java
@@ -0,0 +1 @@
+package io.github.guacsec.trustifyda.sbom;
diff --git a/src/main/java/com/redhat/exhort/tools/Ecosystem.java b/src/main/java/io/github/guacsec/trustifyda/tools/Ecosystem.java
similarity index 86%
rename from src/main/java/com/redhat/exhort/tools/Ecosystem.java
rename to src/main/java/io/github/guacsec/trustifyda/tools/Ecosystem.java
index 85aad7b5..04fe0447 100644
--- a/src/main/java/com/redhat/exhort/tools/Ecosystem.java
+++ b/src/main/java/io/github/guacsec/trustifyda/tools/Ecosystem.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.redhat.exhort.tools;
+package io.github.guacsec.trustifyda.tools;
-import com.redhat.exhort.Provider;
-import com.redhat.exhort.providers.GoModulesProvider;
-import com.redhat.exhort.providers.GradleProvider;
-import com.redhat.exhort.providers.JavaMavenProvider;
-import com.redhat.exhort.providers.JavaScriptProviderFactory;
-import com.redhat.exhort.providers.PythonPipProvider;
+import io.github.guacsec.trustifyda.Provider;
+import io.github.guacsec.trustifyda.providers.GoModulesProvider;
+import io.github.guacsec.trustifyda.providers.GradleProvider;
+import io.github.guacsec.trustifyda.providers.JavaMavenProvider;
+import io.github.guacsec.trustifyda.providers.JavaScriptProviderFactory;
+import io.github.guacsec.trustifyda.providers.PythonPipProvider;
import java.nio.file.Path;
/** Utility class used for instantiating providers. * */
diff --git a/src/main/java/com/redhat/exhort/tools/Operations.java b/src/main/java/io/github/guacsec/trustifyda/tools/Operations.java
similarity index 94%
rename from src/main/java/com/redhat/exhort/tools/Operations.java
rename to src/main/java/io/github/guacsec/trustifyda/tools/Operations.java
index 12f55cfd..9b1dd932 100644
--- a/src/main/java/com/redhat/exhort/tools/Operations.java
+++ b/src/main/java/io/github/guacsec/trustifyda/tools/Operations.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.redhat.exhort.tools;
+package io.github.guacsec.trustifyda.tools;
import static java.lang.String.join;
-import com.redhat.exhort.logging.LoggersFactory;
-import com.redhat.exhort.utils.Environment;
+import io.github.guacsec.trustifyda.logging.LoggersFactory;
+import io.github.guacsec.trustifyda.utils.Environment;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
@@ -48,9 +48,9 @@ private Operations() {
/**
* Function for looking up custom executable path based on the default one provides as an
* argument. I.e. if defaultExecutable=mvn, this function will look for a custom mvn path set as
- * an environment variable or a java property with the name EXHORT_MVN_PATH. If not found, the
- * original mvn passed as defaultExecutable will be returned. Note, environment variables takes
- * precedence on java properties.
+ * an environment variable or a java property with the name TRUSTIFY_DA_MVN_PATH. If not found,
+ * the original mvn passed as defaultExecutable will be returned. Note, environment variables
+ * takes precedence on java properties.
*
* @param defaultExecutable default executable (uppercase spaces and dashes will be replaced with
* underscores).
@@ -64,7 +64,7 @@ public static String getCustomPathOrElse(String defaultExecutable) {
}
var target = normalized.toUpperCase().replaceAll(" ", "_").replaceAll("-", "_");
- var primaryKey = String.format("EXHORT_%s_PATH", target);
+ var primaryKey = String.format("TRUSTIFY_DA_%s_PATH", target);
String primary = Environment.get(primaryKey);
if (primary != null) {
return primary;
@@ -316,7 +316,7 @@ public static String getExecutable(String command, String args) {
* Checks whether a wrapper preference is set for a given tool name.
*
* This method looks for an environment variable with the name {@code
- * EXHORT_PREFER_W}, where {@code } is the uppercase form of the provided
+ * TRUSTIFY_DA_PREFER_W}, where {@code } is the uppercase form of the provided
* {@code name} parameter. If the environment variable is present (i.e., not {@code null}), the
* method returns {@code true}.
*
@@ -324,7 +324,7 @@ public static String getExecutable(String command, String args) {
* @return {@code true} if the corresponding environment variable is set; {@code false} otherwise
*/
public static boolean getWrapperPreference(String name) {
- return Environment.get("EXHORT_PREFER_" + name.toUpperCase() + "W") != null;
+ return Environment.get("TRUSTIFY_DA_PREFER_" + name.toUpperCase() + "W") != null;
}
/**
@@ -334,7 +334,7 @@ public static boolean getWrapperPreference(String name) {
* @return the configuration value if set and not blank, null otherwise
*/
public static String getMavenConfig(String configName) {
- String configValue = Environment.get("EXHORT_MVN_" + configName);
+ String configValue = Environment.get("TRUSTIFY_DA_MVN_" + configName);
return (configValue != null && !configValue.isBlank()) ? configValue : null;
}
diff --git a/src/main/java/com/redhat/exhort/tools/package-info.java b/src/main/java/io/github/guacsec/trustifyda/tools/package-info.java
similarity index 64%
rename from src/main/java/com/redhat/exhort/tools/package-info.java
rename to src/main/java/io/github/guacsec/trustifyda/tools/package-info.java
index f5dae356..3c7705d3 100644
--- a/src/main/java/com/redhat/exhort/tools/package-info.java
+++ b/src/main/java/io/github/guacsec/trustifyda/tools/package-info.java
@@ -1,2 +1,2 @@
/** Package hosting various utility and tools used throughout the project. * */
-package com.redhat.exhort.tools;
+package io.github.guacsec.trustifyda.tools;
diff --git a/src/main/java/com/redhat/exhort/utils/Environment.java b/src/main/java/io/github/guacsec/trustifyda/utils/Environment.java
similarity index 96%
rename from src/main/java/com/redhat/exhort/utils/Environment.java
rename to src/main/java/io/github/guacsec/trustifyda/utils/Environment.java
index 076828dd..4cd6019f 100644
--- a/src/main/java/com/redhat/exhort/utils/Environment.java
+++ b/src/main/java/io/github/guacsec/trustifyda/utils/Environment.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.redhat.exhort.utils;
+package io.github.guacsec.trustifyda.utils;
import java.util.Optional;
diff --git a/src/main/java/com/redhat/exhort/utils/PythonControllerBase.java b/src/main/java/io/github/guacsec/trustifyda/utils/PythonControllerBase.java
similarity index 90%
rename from src/main/java/com/redhat/exhort/utils/PythonControllerBase.java
rename to src/main/java/io/github/guacsec/trustifyda/utils/PythonControllerBase.java
index 267e3291..b8b65a2b 100644
--- a/src/main/java/com/redhat/exhort/utils/PythonControllerBase.java
+++ b/src/main/java/io/github/guacsec/trustifyda/utils/PythonControllerBase.java
@@ -14,17 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.redhat.exhort.utils;
+package io.github.guacsec.trustifyda.utils;
-import static com.redhat.exhort.Provider.PROP_MATCH_MANIFEST_VERSIONS;
-import static com.redhat.exhort.impl.ExhortApi.debugLoggingIsNeeded;
+import static io.github.guacsec.trustifyda.Provider.PROP_MATCH_MANIFEST_VERSIONS;
+import static io.github.guacsec.trustifyda.impl.ExhortApi.debugLoggingIsNeeded;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
-import com.redhat.exhort.exception.PackageNotInstalledException;
-import com.redhat.exhort.logging.LoggersFactory;
-import com.redhat.exhort.tools.Operations;
+import io.github.guacsec.trustifyda.exception.PackageNotInstalledException;
+import io.github.guacsec.trustifyda.logging.LoggersFactory;
+import io.github.guacsec.trustifyda.tools.Operations;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
@@ -40,13 +40,13 @@
public abstract class PythonControllerBase {
- public static final String PROP_EXHORT_PIP_PIPDEPTREE = "EXHORT_PIP_PIPDEPTREE";
- public static final String PROP_EXHORT_PIP_FREEZE = "EXHORT_PIP_FREEZE";
- public static final String PROP_EXHORT_PIP_USE_DEP_TREE = "EXHORT_PIP_USE_DEP_TREE";
- public static final String PROP_EXHORT_PYTHON_INSTALL_BEST_EFFORTS =
- "EXHORT_PYTHON_INSTALL_BEST_EFFORTS";
- public static final String PROP_EXHORT_PIP_SHOW = "EXHORT_PIP_SHOW";
- public static final String PROP_EXHORT_PYTHON_VIRTUAL_ENV = "EXHORT_PYTHON_VIRTUAL_ENV";
+ public static final String PROP_TRUSTIFY_DA_PIP_PIPDEPTREE = "TRUSTIFY_DA_PIP_PIPDEPTREE";
+ public static final String PROP_TRUSTIFY_DA_PIP_FREEZE = "TRUSTIFY_DA_PIP_FREEZE";
+ public static final String PROP_TRUSTIFY_DA_PIP_USE_DEP_TREE = "TRUSTIFY_DA_PIP_USE_DEP_TREE";
+ public static final String PROP_TRUSTIFY_DA_PYTHON_INSTALL_BEST_EFFORTS =
+ "TRUSTIFY_DA_PYTHON_INSTALL_BEST_EFFORTS";
+ public static final String PROP_TRUSTIFY_DA_PIP_SHOW = "TRUSTIFY_DA_PIP_SHOW";
+ public static final String PROP_TRUSTIFY_DA_PYTHON_VIRTUAL_ENV = "TRUSTIFY_DA_PYTHON_VIRTUAL_ENV";
private final Logger log = LoggersFactory.getLogger(this.getClass().getName());
protected Path pythonEnvironmentDir;
@@ -78,7 +78,7 @@ public final List