I am trying to add Java classes to my adapter as described in the tutorial Using Java in Adapters. However, I am trying to do that from the CLI.
When I do:
- wl create WLProject
- cd WLProject
- wl add adapter
- copy the Java class (Calculator1.java) to server/java/com/worklight/customcode
- wl start
The build process fails and no war file is created;
When I do:
- wl create WLProject
- cd WLProject
- wl add adapter
- wl start
- copy the Java class (Calculator1.java) to server/java/com/worklight/customcode
- wl build
- wl deploy
- wl invoke
The invocation fails. When I inspect the war file, the Calculator1.class has not been deployed.
So the question is: how can I add Java classes to an adapter when using the CLI?