SBT equivalent of Ant target

Posted by adelbertc on Stack Overflow See other posts from Stack Overflow or by adelbertc
Published on 2012-10-10T23:51:59Z Indexed on 2012/10/11 21:37 UTC
Read the original article Hit count: 224

Filed under:
|
|

What is the SBT equivalent (if any) of Ant targets? For example, a snippet in a build.xml file for Ant would be:

<target name="runClient" description="run client">
    <java classname="client.Client" fork="true">
        <jvmarg value="-Djava.rmi.server.codebase=${client_web_codebase}"/>
        <jvmarg value="-Djava.security.policy=policy"/>
        <arg value="localhost"/>
        <classpath>
            <pathelement location="dist/client.jar"/>
        </classpath>
    </java>
</target>

And then I would do something like ant runClient to launch the application "client.Client" with the jvmargs specified in the XML.. is there an SBT equivalent, or a way for SBT to hook into Ant to do this?

© Stack Overflow or respective owner

Related posts about ant

Related posts about sbt