From d71c19f91c611051caab50d5e01359f9d04fc5be Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 25 Aug 2014 18:14:24 +0200 Subject: [PATCH] ApiXmlDocWriter: add more search name spaces to find APIs Whenever a new API command is added to CloudStack, if developers are not using the recommended namespace of org.apache.cloudstack.api.* they should add their custom namespace/package here. ApiXmlDocWriter uses ReflectUtils to find APIs within these packages (which must be also available in cloud-client). Signed-off-by: Rohit Yadav --- server/src/com/cloud/api/doc/ApiXmlDocWriter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/doc/ApiXmlDocWriter.java b/server/src/com/cloud/api/doc/ApiXmlDocWriter.java index 8ed786d4f84..54fdfbeb0d3 100644 --- a/server/src/com/cloud/api/doc/ApiXmlDocWriter.java +++ b/server/src/com/cloud/api/doc/ApiXmlDocWriter.java @@ -97,7 +97,9 @@ public class ApiXmlDocWriter { public static void main(String[] args) { - Set> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class, new String[] {"org.apache.cloudstack.api", "com.cloud.api"}); + Set> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class, new String[] {"org.apache.cloudstack.api", "com.cloud.api", + "com.cloud.api.commands", "com.globo.globodns.cloudstack.api", "org.apache.cloudstack.network.opendaylight.api", + "com.cloud.api.commands.netapp", "org.apache.cloudstack.api.command.admin.zone", "org.apache.cloudstack.network.contrail.api.command"}); for (Class cmdClass : cmdClasses) { String apiName = cmdClass.getAnnotation(APICommand.class).name();