[OSM-dev] Wanted: "Ant" - guy for JOSM plugin build script.
Ulf Lamping
ulf.lamping at web.de
Fri Jul 27 05:58:41 BST 2007
Thomas Walraet schrieb:
> Christof Dallermassl wrote:
>
>> and what is even more important. we need a common location of the josm
>> directory (for josm's class files) or maybe simpler for josm-latest.jar.
>>
>
> Tways, and from memory YWMS, Validator and WMSplugin all use
> "../../core/dist/josm-custom.jar" in their classpath for the compilation.
>
> It's where JOSM jar is, when build from svn.
>
Yes, I've changed the build.xml files of all plugins to do the same.
This makes it *much* easier to compile the plugins.
I've also added the wanted applications\editors\josm\plugins\build.xml
file, so now you now can generate all plugins by typing:
ant clean build
The target name is still unclear, some use build, others use dist, it's
about 9 vs. 10 appearances.
Some open points:
- two plugins are not generated: grid (seems unfinished) and lang (I
didn't understood the build logic), anyone interested may have a look.
- livegps, slippymap and ywms generates their .jar file directly into
the SVN position. This way, you'll get 3 jar files to checkin each time
you generate the plugins (maybe better to generate into "dist" and then
copy over to SVN position manually only when a new "release" seems
appropriate
- the plugin generation depends on core JOSM, so the first thing is to
generate JOSM. So it might be better to put the new "global build" file
into applications\editors\josm\build.xml (this way it's also better
recognized)
- the plugin dirs are different for UNIX and Win32, there has to be some
tweaking made
Conclusion: Having a "global" build.xml and all "local" build.xml files
tweaked to the svn structure, makes it much easier to generate the
plugins ;-)))
Regards, ULFL
P.S: Thomas: The tways plugin is the only one that uses "jar" as the
target name. Would you mind if I change this to "build"?
More information about the dev
mailing list