Changes between Initial Version and Version 1 of DevelopersGuide/CreateBuild


Ignore:
Timestamp:
2009-11-01T09:10:01+01:00 (16 years ago)
Author:
Gubaer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/CreateBuild

    v1 v1  
     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 ==
     18To create a build run
     19{{{
     20ant clean
     21ant dist
     22}}}
     23
     24This will create {{{josm-custom.jar}}} in the directory {{{./dist}}}.
     25
     26== The standard REVISION file ==
     27If 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 ==
     34If you maintain a specific JOSM distribution (i.e. for Ubuntu or any other Linux flavor) you may want to modify the {{{REVISION}}} file.
     35
     36Update 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                       
     40Revision: ${version.entry.commit.revision}
     41Is-Local-Build: true
     42Build-Date: ${build.tstamp}             
     43</echo>         
     44}}}
     45
     46Please '''always''' include an attribute {{{Revision}}}. Otherwise, JOSM may fail to detect dependencies to particular versions of plugins.
     47
     48