Packaging A Robot To A Jar from the Command Line?

Jump to navigation Jump to search
Revision as of 4 December 2013 at 01:36.
The highlighted comment was created in this revision.

Packaging A Robot To A Jar from the Command Line?

Hiya,

Is it possible to package my robot from the command line? I see the RoboRumble participants page specifies that the bot needs to be in a jar with a botname.properties file, and the usual way to do this is via the package menu in the client. Is it possible to do this from the command line?

Is it as simple as running the standard "jar" command, passing in the source files (and the botname.properties file)?

Thanks!

    Wolfman (talk)23:34, 3 December 2013

    It's definitely possible, but I haven't done it, besides manually unzipping / editing / rezipping sometimes. I think Beaming does it with normal development tho so maybe he can comment on his setup.

    It is just a normal JAR with your class files + the .properties file. So whatever means you have of creating a JAR should work.

      Voidious (talk)01:26, 4 December 2013

      then ask beaming then

        Tmservo (talk)01:35, 4 December 2013

        Why did you post this? It's impolite and not helpful.

          Voidious (talk)01:51, 4 December 2013

          i told Wolfman to ask Beaming

            Tmservo (talk)02:27, 4 December 2013
             
             

            You can use Ant to package your jar, here is an example script (that I wrote) to do it. Since I mainly develop in eclipse I didn't want to switch over to Robocode to package my robot.

            See the page Ant (tool).

              Chase03:36, 4 December 2013