javapro
发贴: 56
积分: 50
|
于 2003-08-07 13:15
I am using clearmake and ant in building and configuring (our process for capturing a frozen version of our software) a client-server application written using Java.
To accomplish this, I have a small makefile which simply runs ant to build our jar files, for example:
# Target Rules: all: ${main_app} ${sub_app1} ${sub_app2} ${main_app}: ant -file ${main_app}.xml jar_all ${sub_app1}: ant -file ${sub_app1}.xml ${sub_app2}: ant -file ${sub_app2}.xml
The main advantage for doing so is that I can use the configuration record from jar files (built using ant through clearmake) to identify and label source files which were used in the build. This is part of the mechanism we use for configuring our software.
Right now, our product is fairly small - we rebuild all every time and aren't concerned with minimal rebuilds. We haven't noticed any disadvantages - maybe since it's the first Java product we've developed.
Hope this helps.
|