Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
a9f520a
[WFCORE-7695] Remove unused legacy patching management API code
bstansberry Sep 9, 2026
6ca2065
[WFCORE-7695] Remove unused non-command-style CLI patching handler
bstansberry Sep 9, 2026
bfd99ed
[WFCORE-7695] AbstractDistributionCommand impls are not available exc…
bstansberry Sep 9, 2026
d35fa5f
[WFCORE-7695] Remove the unused local and standalone variants of Path…
bstansberry Sep 9, 2026
b788bc9
[WFCORE-7695] Remove PatchTool methods that are unused in production …
bstansberry Sep 9, 2026
fb62181
[WFCORE-7695] Remove unused IdentityPatchRunner and then the unused p…
bstansberry Sep 9, 2026
41d6d51
[WFCORE-7695] Move ContentPolicyBuilder to top level; remove unused '…
bstansberry Sep 9, 2026
c03e3ab
[WFCORE-7695] Remove unused 'installation' package code
bstansberry Sep 9, 2026
f67fea7
[WFCORE-7695] Remove unused PatchMerger and the ZipUtils for which it…
bstansberry Sep 9, 2026
47a9508
[WFCORE-7695] Remove the unused 'validation' package
bstansberry Sep 9, 2026
d8e6084
[WFCORE-7695] Remove unused code in the 'runner' package
bstansberry Sep 9, 2026
556d98e
[WFCORE-7695] Remove no-longer-relevant jar invalidation utility
bstansberry Sep 9, 2026
3ee3666
[WFCORE-7695] Remove unused code in the root org.jboss.as.patching pa…
bstansberry Sep 9, 2026
ae0ac01
[WFCORE-7695] Remove unused code in the 'metadata' package
bstansberry Sep 9, 2026
c393442
[WFCORE-7695] Remove unused code in the 'cli' package
bstansberry Sep 9, 2026
07d7616
[WFCORE-7695] Remove unused patching module test code (and production…
bstansberry Sep 9, 2026
3ac33d0
[WFCORE-7695] Remove unused static InstalledIdentity and Installation…
bstansberry Sep 9, 2026
85c9461
[WFCORE-7695] Classes now only used in test code are essentially test…
bstansberry Sep 10, 2026
069eef8
[WFCORE-7695] Temporarily restore the ZipUtils method that is used in…
bstansberry Sep 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions patching/src/main/java/org/jboss/as/patching/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

package org.jboss.as.patching;

import org.jboss.msc.service.ServiceName;

/**
* @author Emanuel Muckenhuber
*/
Expand All @@ -16,17 +14,13 @@ public class Constants {
public static final String BUNDLES = "bundles";
public static final String CONFLICTS = "conflicts";
public static final String CUMULATIVE = "cumulative-patch-id";
public static final String CURRENT_VERSION = "current-version";
public static final String MESSAGE = "message";
public static final String MISC = "misc";
public static final String MODULES = "modules";
public static final String NAME = "name";
public static final String VERBOSE = "verbose";
public static final String VERSION = "version";
public static final String UNKNOWN = "Unknown";

public static final String AGEOUT_HISTORY = "ageout-history";
public static final String AGED_OUT = "aged-out";
public static final String EXCLUDE_AGED_OUT = "exclude-aged-out";
public static final String PATCH = "patch";
public static final String PATCH_ID = "patch-id";
Expand All @@ -39,31 +33,23 @@ public class Constants {
public static final String SHOW_HISTORY = "show-history";
/** The default if no patches are active. */
public static final String BASE = "base";
public static final String NOT_PATCHED = BASE;

public static final String OVERRIDE_MODULES = "override-modules";
public static final String OVERRIDE_ALL = "override-all";
public static final String OVERRIDE = "override";
public static final String PRESERVE = "preserve";

public static final String APPLIED_AT = "applied-at";
public static final String DESCRIPTION = "description";
public static final String IDENTITY_NAME = "identity-name";
public static final String IDENTITY_VERSION = "identity-version";
public static final String LINK = "link";
public static final String TIMESTAMP = "timestamp";
public static final String TYPE = "type";

// Directories
public static final String APP_CLIENT = "appclient";
public static final String CONFIGURATION = "configuration";
public static final String DOMAIN = "domain";
public static final String INSTALLATION = ".installation";
public static final String METADATA = ".metadata";
public static final String RESTORED_CONFIGURATION = "restored-configuration";
public static final String PATCHES = "patches";
public static final String OVERLAYS = ".overlays";
public static final String STANDALONE = "standalone";

public static final String ELEMENTS = "elements";
public static final String LAYER = "layer";
Expand All @@ -78,13 +64,6 @@ public class Constants {
public static final String IDENTITY_METADATA = "identity.conf"; // .installation/identity.conf
public static final String INSTALLATION_METADATA = "layer.conf"; // .installation/layer/xxx/layer.conf
public static final String LAYERS_CONF = "layers.conf"; // modules/layers.conf
public static final String ROLLBACK_XML = "rollback.xml";
public static final String DOT_CONF = ".conf";

// Service names
public static final ServiceName JBOSS_AS = ServiceName.JBOSS.append("as");
public static final ServiceName JBOSS_PATCHING = ServiceName.JBOSS.append("patching");
public static final ServiceName JBOSS_PRODUCT_CONFIG_SERVICE = JBOSS_AS.append("product-config");
public static final String SYSTEM = "system";

}

This file was deleted.

8 changes: 0 additions & 8 deletions patching/src/main/java/org/jboss/as/patching/HashUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ public static byte[] hashFile(File file) throws IOException {
}
}

public static byte[] hashBytes(byte[] bytes) throws IOException {
synchronized (DIGEST) {
DIGEST.reset();
DIGEST.update(bytes);
return DIGEST.digest();
}
}

private static void updateDigest(MessageDigest digest, File file) throws IOException {
if (file.isDirectory()) {
File[] childList = file.listFiles();
Expand Down
22 changes: 0 additions & 22 deletions patching/src/main/java/org/jboss/as/patching/IoUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,6 @@ public class IoUtils {

private static final int DEFAULT_BUFFER_SIZE = 65536;

/**
* Copy input stream to output stream and close them both
*
* @param is input stream
* @param os output stream
*
* @throws IOException for any error
*/
public static void copyStreamAndClose(InputStream is, OutputStream os) throws IOException {
try {
copyStream(is, os, DEFAULT_BUFFER_SIZE);
// throw an exception if the close fails since some data might be lost
is.close();
os.close();
}
finally {
// ...but still guarantee that they're both closed
safeClose(is);
safeClose(os);
}
}

/**
* Copy input stream to output stream without closing streams. Flushes output stream when done.
*
Expand Down
38 changes: 0 additions & 38 deletions patching/src/main/java/org/jboss/as/patching/PatchInfo.java

This file was deleted.

154 changes: 0 additions & 154 deletions patching/src/main/java/org/jboss/as/patching/VerbosePatchInfo.java

This file was deleted.

Loading
Loading