Pregunta

I'm trying to deploy adapters & WLAPP using ANT to a server with a protected Worklight console (form-based). Here's my ANT task:

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="help">
<taskdef resource="com/worklight/ant/defaults.properties">
    <classpath>
        <pathelement location="worklight-ant.jar"/>
    </classpath>
</taskdef>

<target name="test">
    <adapter-deployer deployable="Test.adapter" worklightServerHost="http://testserver/MyApp" userName="username" password="password" />
</target>
</project>

When I run it I got this error message:

adapter-deployer doesn't support the "userName" attribute

The server is running Worklight 6.0

Any ideas?

¿Fue útil?

Solución

revised answer: What you're looking to do is not possible in Worklight 6.0.0.0. It was added as part of the Worklight 6.0.0.1 fix pack release via:

PM98052 You cannot deploy with ANT tasks when security is enabled for the Application Center or Console

Make sure you are using the latest Worklight 6.0.0.x fix pack, currently: Worklight 6.0.0.2 Developer Edition (if you are an IBM customer or business partner, you can get it from Fix Central).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top