Results 1 to 1 of 1
- 11-25-2011, 01:25 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 1
- Rep Power
- 0
How do I create a build number or date/timestamp which I can access in my app?
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
Similar Threads
-
How can I know last access date & creation date for a file in java?
By Rami in forum Advanced JavaReplies: 4Last Post: 07-27-2011, 11:57 AM -
Java and Eclipse: Adding a build or revision number to application using SVNAnt
By sal_manilla in forum EclipseReplies: 4Last Post: 10-25-2010, 05:59 AM -
java.sql.Date incompatible with java.sql.Timestamp
By nn12 in forum New To JavaReplies: 2Last Post: 12-08-2008, 03:42 PM -
How to get next available number from MS access
By shahjehan in forum JDBCReplies: 3Last Post: 11-18-2007, 07:41 PM -
Date as String to TimeStamp
By ironballs in forum Advanced JavaReplies: 1Last Post: 08-01-2007, 01:43 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks