The setting that you want is 'artifactPath', appropriately scoped for the artifact you are interested in modifying. For example:
artifactPath in Compile in packageBin <<=
baseDirectory { base => base / "build" / "jar" / "myapp.jar" }
The 'in Compile in packageBin' part means to set it for the main binary jar. You could change Compile to Test to modify a test jar. Or, change packageBin to packageSrc or packageDoc to modify the source or api jars, respectively.
For more on modifying the default artifacts, see:
https://github.com/harrah/xsbt/wiki/Artifacts
-Mark
> Regards,
> Raymond Barlow
>
Thank you again for the response.
That looks like what I need. I'm actually building a zip, with a custom structure. One item in that zip will be my jar. Would you recommend that I use the artefact functionality to achieve this, or a custom task? Keeping in mind that in need to build the (correctly named) jar as part of this.
Regards,
Raymond Barlow
For a custom zip task, yes you can just use IO.zip. The API documentation for IO is here:
http://harrah.github.com/xsbt/latest/api/sbt/IO$.html
'zip' takes mappings from the input File to its String path in the zip as well as the name of the output zip. There is information on helpers for constructing the mapping here:
https://github.com/harrah/xsbt/wiki/Mapping-Files
-Mark
> /Raymond
>