[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Java Make Files
- Subject: [ale] Java Make Files
- From: cfowler at outpostsentinel.com (cfowler)
- Date: 27 Jun 2002 10:43:44 -0400
I'm trying to incorporate Build Dates and Version in java code. I can
not use defines like I can with C so I cam up with a Solution.
Is this the best way?
#
# We can not use defines in Java so we
# dynamically create a class that stores
# the build date for the clock
#
version:
echo "public class BuildVersion {" >
BuildVersion.java
echo " private static String Date = \"$(BDATE)\";" >>
BuildVersion.java
echo " private static String Version = \"$(Version)\";" >>
BuildVersion.java
echo " " >>
BuildVersion.java
echo " public static String getVersionString() {" >>
BuildVersion.java
echo " return Version + Date;" >>
BuildVersion.java
echo " }" >>
BuildVersion.java
echo "}" >>
BuildVersion.java
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.