Hi All,
I've built a little Ant script to deploy my app at the end of a build.
The task looks like this:
<target name="deploy" depends="compile,package" description="--> A
simple Geronimo Phonebook JDBC Application">
<java jar="${geronimo.root}/bin/deployer.jar" fork="true">
<arg value="--user"/>
<arg value="${geronimo.user}"/>
<arg value="--password"/>
<arg value="${geronimo.password}"/>
<arg value="undeploy"/>
<arg value="PhoneBookWeb"/>
</java>
<java jar="${geronimo.root}/bin/deployer.jar" fork="true">
<arg value="--user"/>
<arg value="${geronimo.user}"/>
<arg value="--password"/>
<arg value="${geronimo.password}"/>
<arg value="deploy"/>
<arg value="phonebook.war"/>
</java>
</target>
The problem is that this seems to be somewhat unpredictable. Sometimes
it works, and usually it doesn't and I have to undeploy manually. Is
there a more effective way to pull this off with the latest geronimo
builds? I've built as of last Saturday or so.
Thanks a ton in advance.
Cheers.
-Neal