<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Reusing the Ant file did the trick. Thanks
Karl.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Out of interest for others here is what I
did.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Create a 'New Project with Existing Ant Script'
this results in a Wizard where you select the folder containing the code (and
hence the build.xml).</FONT></DIV>
<DIV><FONT face=Arial size=2>I then have this odd page for Build and Run
Actions. New to Ant etc so don't really get this bit but basically there are
clean, compile, dist, init options against Build Project, Clean, Run, Test etc.
I just stuck with defaults. </FONT></DIV>
<DIV><FONT face=Arial size=2>You then need to identify the Source Package
Folders - this needs to be set to src\org\openstreetmap\josm ie the folder
containing the src action, gui etc folders. </FONT></DIV>
<DIV><FONT face=Arial size=2>Next is Java Sources Classpath - I left this at the
default (same path as packages). Finish</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In the Projects folder clicking on build.xml
results in the Navigator showing Ant Targets clean, compile, dist, init. All a
bit confusing to me.</FONT></DIV>
<DIV><FONT face=Arial size=2>However, to prove it had worked I changed the
MainApplication.java JFrame mainFrame line to create a different Titlebar name
for the project.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Then it all gets a bit confusing. The normal Clean
and Build, Run etc on the Project do not appear to do what I
expect.</FONT></DIV>
<DIV><FONT face=Arial size=2>Instead, select the build.xml giving access to dist
etc in the Navigator window and Right Click Run Target (on dist).</FONT></DIV>
<DIV><FONT face=Arial size=2>This creates the josm-custom.jar in the dist
folder. Remember to Refresh the Window as I was sitting watching for it to
appear and nothing appeared to be happening. All a bit confusing - I'm sure it
makes sense to Ant users.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Running the jar showed my new Title Banner text as
I'd hoped. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Ideally, I want to develop the code in a 'normal'
NetBeans project - partly out of curiosity but also Ant seems to use a very
different mechanism and I worry that it may be a compromise in some way. So the
floor is still open for any more advice. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Stuart</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=siliconfiend@gmail.com href="mailto:siliconfiend@gmail.com">Karl
Newman</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=stuart.srsm@blueyonder.co.uk
href="mailto:stuart.srsm@blueyonder.co.uk">Stuart</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, March 18, 2008 6:03
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [josm-dev] Building JOSM
with NetBeans</DIV>
<DIV><BR></DIV>On Tue, Mar 18, 2008 at 10:25 AM, Stuart <<A
href="mailto:stuart.srsm@blueyonder.co.uk">stuart.srsm@blueyonder.co.uk</A>>
wrote:<BR>
<DIV class=gmail_quote>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>New to JOSM Development. I just want to mess
around with a local copy of JOSM to help learn Java within the NetBeans
environment. </FONT></DIV>
<DIV><FONT face=Arial size=2>I've downloaded the trunk folder using SVN so
have build.xml, src folder etc. I've looked for help on building josm using
any tool (eclipse etc) for hints but I can't find anything (must be a secret
society ;-) ). I'm fairly new to NetBeans and Java but had a bash
at creating a new project with sources - kind of messed around and
tried a Build but got 100 errors when it packed in. Obviously something
fundamentally wrong.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Any links to a Help page?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV> </DIV><FONT color=#888888>
<DIV><FONT face=Arial
size=2>Stuart</FONT> </DIV></FONT></DIV></BLOCKQUOTE></DIV><BR>I've never
played with Netbeans, but I've had success getting it to build with Eclipse. I
don't remember having to do anything special to get it to work, but maybe
check the .classpath file for clues in getting it to build in NetBeans. Note
that there's also an Ant build file (build.xml) which may or may not work
better for you.<BR><BR>Karl </BLOCKQUOTE></BODY></HTML>