I am trying build and deploy adapters from my ant build.xml on to MobileFirst Server,but when i am trying to access the below lines of code in ant.It throws me an error.
Error: Could not load definitions from resource com/worklight/ant/builders/defaults.properties. It could not be found.
Code:
<taskdef resource="com/worklight/ant/builders/defaults.properties">
<classpath>
<pathelement
location="/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/ant-tools/worklight-ant-builder.jar" />
</classpath>
</taskdef>
Deploy application
I believe your
resource
value is incorrect.Try changing:
To:
I have tested with the below script and it worked for me:
Note: The path to the builder .jar file should be as stated in the documentation, however for me at least I received the same error unless using the same path as mentioned in the question.
Deploy adapter
Try with the below template (change the required values with your own):