Skip to content

Commit d71c19f

Browse files
committed
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 <rohit.yadav@shapeblue.com>
1 parent 80ff58f commit d71c19f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

server/src/com/cloud/api/doc/ApiXmlDocWriter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ private static List<String> setAsyncResponses() {
9797

9898
public static void main(String[] args) {
9999

100-
Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class, new String[] {"org.apache.cloudstack.api", "com.cloud.api"});
100+
Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class, new String[] {"org.apache.cloudstack.api", "com.cloud.api",
101+
"com.cloud.api.commands", "com.globo.globodns.cloudstack.api", "org.apache.cloudstack.network.opendaylight.api",
102+
"com.cloud.api.commands.netapp", "org.apache.cloudstack.api.command.admin.zone", "org.apache.cloudstack.network.contrail.api.command"});
101103

102104
for (Class<?> cmdClass : cmdClasses) {
103105
String apiName = cmdClass.getAnnotation(APICommand.class).name();

0 commit comments

Comments
 (0)