0
down vote
favorite
I want to obfuscate Karaf command module:
@Command(scope = "server", name = "create", description = "Create account")
@Service
public class UsersShellCommands implements Action
{
@Option(name = "-u", aliases = { "--user" }, description = "Name of the
user", required = false, multiValued = false)
private String user;
@Option(name = "-i", aliases = { "--identified-by" }, description =
"Password of the user", required = false, multiValued = false)
private String passwd;
@Override
public Object execute() throws Exception
{
...........
}
I tried to add this configuration
<options>
<option>-keep public class org.commands.server.impl.** -keepattributes
Exceptions, *Annotation*, InnerClasses, Signature, EnclosingMethod,
Option</option>
</options>
But when I try to execute the command I get
Error executing command kernel:create: undefined option --user
Try <command> --help' for more information.
Looks like I need also to keep another object but I can't find which one.
Can you advice what I'm missing?
ref
http://stackoverflow.com/questions/35430776/obfuscate-karaf-commands-module
--
View this message in context:
http://karaf.922171.n3.nabble.com/Obfuscate-Karaf-commands-module-tp4045384.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.