RPTools.net

Discussion and Support

Skip to content

It is currently Mon Oct 23, 2017 6:43 am 






Reply to topic  [ 6 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Tue Aug 31, 2010 1:53 pm
Posts: 8
 Post subject: Ant Build XML Patch
PostPosted: Wed Sep 15, 2010 3:55 pm 
Wasn't really sure where to post this, but it's sort of a feature. When using NetBeans 6.9.1 (Mac OS X 10.5), I got errors on the Ant build scripts saying that they weren't valid build files. A little searching and I found that while there is no "official" DTD, that this works:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE project SYSTEM "http://ant.apache.org/ant.dtd">
<project>
...
</project>

Whereas, we currently have:
Code:
<project>
...
</project>

So, I'd like to propose a patch to all the Ant build files to include the document type at the beginning. If you'd like something more formal, like a patch file, I can do that too.

Here's my source for the information: http://www.xmlblueprint.com/validate-ant-buildfile.htm if you are curious.

--Josh


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12101
Location: Tampa, FL
 Post subject: Re: Ant Build XML Patch
PostPosted: Wed Sep 15, 2010 9:28 pm 
Hi, Josh.

Yes, please send me a patch file if you can; I'd like to be able to track who contributed the patch as well as the content.

I'm a little surprised that ANT is being more picky on the NB platform, but perhaps NB runs ANT with a -pedantic option or something?

Edit: Moved to the Developer Notes forum as it's not a user feature.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri May 12, 2006 7:56 pm
Posts: 6300
Location: Las Cruces, NM
 Post subject: Re: Ant Build XML Patch
PostPosted: Wed Sep 15, 2010 10:34 pm 
Azhrei wrote:
I'm a little surprised that ANT is being more picky on the NB platform, but perhaps NB runs ANT with a -pedantic option or something?

That is odd. Doesn't happen here with NB 6.9.1 under Vista.

Sure it is an "xml" file and so should have all that at the beginning but...

Created a brand new project in NB and it only includes the xml version element but not the doctype.

_________________
Call me, Hex Boy.

Visit http://www.darkisle.com for photos of castles, cairns, standing stones, and other ancient sites in the British Isles.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Aug 31, 2010 1:53 pm
Posts: 8
 Post subject: Re: Ant Build XML Patch
PostPosted: Thu Sep 16, 2010 12:30 pm 
I would think that it is because Ant doesn't have a formal DTD. It's more of a placeholder it would seem.

Do you have anything documented on getting maptool up and running in netbeans? I'm still working through some other issues, but I think these are related to getting the project configured properly.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri May 12, 2006 7:56 pm
Posts: 6300
Location: Las Cruces, NM
 Post subject: Re: Ant Build XML Patch
PostPosted: Thu Sep 16, 2010 7:19 pm 
osake wrote:
Do you have anything documented on getting maptool up and running in netbeans?

I don't. I just fired up NB and told it to import the Eclipse projects out of where I had checked out the source. :D

And it just worked.

Didn't try getting the source directly through NB as I already had it.

_________________
Call me, Hex Boy.

Visit http://www.darkisle.com for photos of castles, cairns, standing stones, and other ancient sites in the British Isles.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Aug 31, 2010 1:53 pm
Posts: 8
 Post subject: Re: Ant Build XML Patch
PostPosted: Tue Sep 21, 2010 12:57 pm 
Can't seem to PM a zip file, trying to load it up here.


File comment: Ant XML patch for rptoools project
ant_patch.zip [1.12 KiB]
Downloaded 103 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 6 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman