|
|
||
Tim Boudreau's BlogCommunity: Java Tools ArchivesWhat if we built Java code with...Java?Posted by timboudreau on January 30, 2008 at 01:36 PM | Permalink | Comments (23)My friend Jon had an interesting insight: Both Ant and Maven rely on lots of XML. XML is good for describing data and terrible for describing behavior. A build is mostly behavior. What if, instead of tormenting Ant into iterating on a bunch of subprojects of subprojects, if we just used an actual programming language to write build scripts. Like, oh, say...Java, for instance? So he created the Gosling project. It's pretty embryonic - and I think some of the file and resource classes could be replaced by straight usage of things like javax.tools.FileObject, but it has a nice simplicity. Here's the constructor for Gosling's own build to build itself. It has a similar feel to what Jon did in designing Wicket's APIs:
public GoslingProject() {
final Folder root = new Folder("/Projects/gosling/workspace/gosling");
final Folder source = root.folder("src");
final Folder lib = root.folder("lib");
final Folder target = root.folder("target");
add(new JavaApplicationBuilder() {
@Override
protected Set
Most Poetic Commit Log of the Year AwardPosted by timboudreau on April 29, 2006 at 01:12 AM | Permalink | Comments (4)I was going through old email, and my friend Jesse had pointed up my friend Jarda's commit log message as a candidate "Most Poetic Commit Log of the Year Award". What's the most amusing commit message you've read but neither incited nor written yourself? Here's Jarda's:
Hopeless in my own destiny, strugling to really improve the speedup of startup at least a bit, but always loosing my improvements as Sisyphus his stone, I am adding this little change to prevent tons and tons of ClassLoaderCache objects from creation. Now only a resonable number shall get created during 2nd and subsequent startup. Of course, you can only do this award once - after that, everyone will be trying to be poetic in their commit messages and it all becomes meaningless :-)
Directory: /core/startup/src/org/netbeans/core/startup/
=======================================================
File [changed]: ClassLoaderCache.java
Url: http://core.netbeans.org/source/browse/core/startup/src/org/netbeans/core/startup/ClassLoaderCache.java?r1=1.2&r2=1.3
Delta lines: +2 -2
-------------------
--- ClassLoaderCache.java 4 Aug 2005 13:13:48 -0000 1.2
+++ ClassLoaderCache.java 5 Aug 2005 13:18:28 -0000 1.3
@@ -171,8 +171,8 @@
return null;
}
-
- node = find (next);
+ // effectively node = find(next);
+ node.pos = next * NODE_SIZE;
}
return resIndex;
Usages tree view for NetBeansPosted by timboudreau on September 13, 2005 at 08:38 PM | Permalink | Comments (13)Well, I am shamed - some months ago I mentioned that I'd started work on a Usages Tree view for NetBeans. I started on the project, and shelved it with the hundreds of other weekend coding projects I have. Someone recently mentioned this on JavaLobby - and that the plugin had never appeared. So last night I wrote it, and you can download it here. AFAIK it's solid, but I wrote it from start to finish less than 10 hours ago, so a wart or two is possible.
It's testimony to NetBeans APIs that it took me about 3 hours to write (most of that time testing things), and the entire module is a single
The source is in
It's probably a testament to the power of the internet that I can do this from a hotel in Beijing while I'm on a business trip :-)
NetBeans 4.0 is out and it rocks!Posted by timboudreau on December 20, 2004 at 09:44 AM | Permalink | Comments (4)Javapolis was clearly a great show to be at - I wish I'd had more time to see more of it, not to mention Antwerp in general. Also I finally met Vincent Brabant, who's been active in the NetBeans community for years and made the French localization of NetBeans happen. It's always nice to do a presentation where you have something to demo you know people will just love, and I had not one but three:
| ||
|
|