You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by ni...@apache.org on 2026/05/02 17:30:29 UTC

(karaf) branch main updated: Remove unused imports in PackageCommand

This is an automated email from the ASF dual-hosted git repository.

rovarga pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/main by this push:
     new 8f94a8a15e Remove unused imports in PackageCommand
8f94a8a15e is described below

commit 8f94a8a15ea5d165eeb55c4260cb113ce9697b25
Author: Robert Varga <ro...@pantheon.tech>
AuthorDate: Sat May 2 09:35:45 2026 +0200

    Remove unused imports in PackageCommand
    
    We have a chunk of imports that are not used: remove them.
    
    Signed-off-by: Robert Varga <ro...@pantheon.tech>
---
 .../org/apache/karaf/instance/command/PackageCommand.java   | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/instance/src/main/java/org/apache/karaf/instance/command/PackageCommand.java b/instance/src/main/java/org/apache/karaf/instance/command/PackageCommand.java
index 9de744665e..4bf624b977 100644
--- a/instance/src/main/java/org/apache/karaf/instance/command/PackageCommand.java
+++ b/instance/src/main/java/org/apache/karaf/instance/command/PackageCommand.java
@@ -17,24 +17,11 @@
 package org.apache.karaf.instance.command;
 
 import org.apache.karaf.instance.command.completers.InstanceCompleter;
-import org.apache.karaf.instance.core.Instance;
 import org.apache.karaf.shell.api.action.Argument;
 import org.apache.karaf.shell.api.action.Command;
 import org.apache.karaf.shell.api.action.Completion;
 import org.apache.karaf.shell.api.action.lifecycle.Service;
 
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.nio.file.FileVisitResult;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.nio.file.SimpleFileVisitor;
-import java.nio.file.attribute.BasicFileAttributes;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipOutputStream;
-
 @Command(scope = "instance", name = "package", description = "Create a .zip archive of the instance.")
 @Service
 public class PackageCommand extends InstanceCommandSupport {