[ale] Java Make Files
Mark Angeli
webmaster at tinyminds.org
Thu Jun 27 11:17:43 EDT 2002
I know very little about java programming, though my brother is becoming
quite good at it (He has a functioning IM client/server that he's working
on...)
His email is pilotg2 at thehangingpen.com
-----Original Message-----
From: cfowler [mailto:cfowler at outpostsentinel.com]
To: ale at ale.org
Sent: Thursday, June 27, 2002 10:44 AM
To: ale at ale.org
Subject: [ale] Java Make Files
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.
---
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.
More information about the Ale
mailing list