@@ -236,21 +236,7 @@ INITIALISATION
236236
237237 <target name =" init.build.suffix.done" depends =" init.build.release, init.build.patch.release" />
238238
239- <target name =" init" depends =" init.starr, init.build.suffix.done" >
240- <!-- scalac.args.optimise is selectively overridden in certain antcall tasks. -->
241- <property name =" scalac.args.optimise" value =" " />
242- <!-- scalac.args.quickonly are added to quick.* targets but not others (particularly, locker.)
243- This is to facilitate testing new command line options which do not yet exist in starr. -->
244- <property name =" scalac.args.quickonly" value =" " />
245- <property name =" scalac.args.all" value =" ${ scalac.args } ${ scalac.args.optimise } " />
246- <property name =" scalac.args.quick" value =" ${ scalac.args.all } ${ scalac.args.quickonly } " />
247- <!-- Setting-up Ant contrib tasks -->
248- <taskdef resource =" net/sf/antcontrib/antlib.xml" classpath =" ${ lib.dir } /ant/ant-contrib.jar" />
249- <!-- This is the start time for the distribution -->
250- <tstamp prefix =" time" >
251- <format property =" human" pattern =" d MMMM yyyy, HH:mm:ss" />
252- <format property =" short" pattern =" yyyyMMddHHmmss" />
253- </tstamp >
239+ <target name =" init.version.git" depends =" init.build.suffix.done" >
254240 <!-- Find out whether we are running on Windows -->
255241 <condition property =" os.win" >
256242 <os family =" windows" />
@@ -262,18 +248,46 @@ INITIALISATION
262248 <property name =" git.commit.sha" value =" unknown" />
263249 <property name =" git.commit.date" value =" unknown" />
264250
265- <property name =" init.avail" value =" yes" />
266-
267251 <!-- We use the git describe to determine the OSGi modifier for our build. -->
268252 <property
269253 name =" maven.version.number"
270254 value =" ${ version.major } .${ version.minor } .${ version.patch } ${ version.suffix } ${ maven.version.suffix } " />
271- <property
272- name =" version.number"
273- value =" ${ version.major } .${ version.minor } .${ version.patch } ${ version.suffix } -${ git.commit.date } -${ git.commit.sha } " />
274255 <property
275256 name =" osgi.version.number"
276257 value =" ${ version.major } .${ version.minor } .${ version.patch } .v${ git.commit.date } ${ version.suffix } -${ git.commit.sha } " />
258+ </target >
259+
260+ <target name =" init.version.snapshot" unless =" build.release" depends =" init.version.git" >
261+ <property
262+ name =" version.number"
263+ value =" ${ version.major } .${ version.minor } .${ version.patch } ${ version.suffix } -${ git.commit.date } -${ git.commit.sha } " />
264+ </target >
265+
266+ <target name =" init.version.release" if =" build.release" depends =" init.version.git" >
267+ <property
268+ name =" version.number"
269+ value =" ${ maven.version.number } " />
270+ </target >
271+
272+ <target name =" init.version.done" depends =" init.version.release, init.version.snapshot" />
273+
274+ <target name =" init" depends =" init.starr, init.version.done" >
275+ <!-- scalac.args.optimise is selectively overridden in certain antcall tasks. -->
276+ <property name =" scalac.args.optimise" value =" " />
277+ <!-- scalac.args.quickonly are added to quick.* targets but not others (particularly, locker.)
278+ This is to facilitate testing new command line options which do not yet exist in starr. -->
279+ <property name =" scalac.args.quickonly" value =" " />
280+ <property name =" scalac.args.all" value =" ${ scalac.args } ${ scalac.args.optimise } " />
281+ <property name =" scalac.args.quick" value =" ${ scalac.args.all } ${ scalac.args.quickonly } " />
282+ <!-- Setting-up Ant contrib tasks -->
283+ <taskdef resource =" net/sf/antcontrib/antlib.xml" classpath =" ${ lib.dir } /ant/ant-contrib.jar" />
284+ <!-- This is the start time for the distribution -->
285+ <tstamp prefix =" time" >
286+ <format property =" human" pattern =" d MMMM yyyy, HH:mm:ss" />
287+ <format property =" short" pattern =" yyyyMMddHHmmss" />
288+ </tstamp >
289+
290+ <property name =" init.avail" value =" yes" />
277291
278292
279293 <!-- Local libs (developer use.) -->
0 commit comments