| | 1 | = How to create a build = |
| | 2 | |
| | 3 | [[TOC(inline)]] |
| | 4 | |
| | 5 | == Checkout JOSM == |
| | 6 | === Using Eclipse === |
| | 7 | |
| | 8 | * [http://www.youtube.com/watch?v=Z3OjG3nDvzA How to checkout a JOSM plugin into Eclipse]. |
| | 9 | |
| | 10 | === Using command line tools === |
| | 11 | {{{ |
| | 12 | $ cd ~/src |
| | 13 | $ svn co http://josm.openstreetmap.de/svn josm |
| | 14 | ''tons of output here'' |
| | 15 | }}} |
| | 16 | |
| | 17 | == Create a build == |
| | 18 | To create a build run |
| | 19 | {{{ |
| | 20 | ant clean |
| | 21 | ant dist |
| | 22 | }}} |
| | 23 | |
| | 24 | This will create {{{josm-custom.jar}}} in the directory {{{./dist}}}. |
| | 25 | |
| | 26 | == The standard REVISION file == |
| | 27 | If you build JOSM with JOSMs {{{build.xml}}} the distribution includes a file {{{REVISION}}}. {{{REVISION}}} is a collection of name/value-pairs, formatted in RFC822-style (i.e. {{{name: value}}}). |
| | 28 | |
| | 29 | ||Revision||The JOSM version of your local snapshot. This is equal to the SVN revision of your local snapshot.|| |
| | 30 | ||Build-Date||The date the distribution was created (YY-MM-DD HH:mm:ss)|| |
| | 31 | ||Is-Local-Build||{{{true}}}. Indicates that this build isn't an "offical" release provided by josm.openstreetmap.de|| |
| | 32 | |
| | 33 | == Adding custom release information == |
| | 34 | If you maintain a specific JOSM distribution (i.e. for Ubuntu or any other Linux flavor) you may want to modify the {{{REVISION}}} file. |
| | 35 | |
| | 36 | Update the ant target {{{create-revision}}} in {{{build.xml}}} for your needs: |
| | 37 | {{{ |
| | 38 | <echo file="${build.dir}/REVISION"> |
| | 39 | # automatically generated by JOSM build.xml - do not edit |
| | 40 | Revision: ${version.entry.commit.revision} |
| | 41 | Is-Local-Build: true |
| | 42 | Build-Date: ${build.tstamp} |
| | 43 | </echo> |
| | 44 | }}} |
| | 45 | |
| | 46 | Please '''always''' include an attribute {{{Revision}}}. Otherwise, JOSM may fail to detect dependencies to particular versions of plugins. |
| | 47 | |
| | 48 | |