I'm a beginner with Java. I'm using NetBeans to build my app. Can someone explain in simple terms how to automatically create either a build number (e.g. that's incremented every time I rebuild) or a date and timestamp of the build that I can then access in my application? This is simply so I can rtecord in my log files which version of the program created them. I'm going through multiple builds per day and it's essential that I know which version created what output...

I found this useful article (Use ANT to Build a JAR with version/build number - Real's Java How-to), but I don't know enough about how NetBeans uses Ant to implement it within NB.

Thanks - Rowan