mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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>
This commit is contained in:
parent
80ff58f3fa
commit
d71c19f91c
@ -97,7 +97,9 @@ public class ApiXmlDocWriter {
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class, new String[] {"org.apache.cloudstack.api", "com.cloud.api"});
|
Set<Class<?>> 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) {
|
for (Class<?> cmdClass : cmdClasses) {
|
||||||
String apiName = cmdClass.getAnnotation(APICommand.class).name();
|
String apiName = cmdClass.getAnnotation(APICommand.class).name();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user