geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neal Sanche <n...@nsdev.org>
Subject Best way to 'auto deploy'?
Date Thu, 09 Jun 2005 05:00:19 GMT
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

Mime
View raw message