Project

General

Profile

« Previous | Next » 

Revision 4619

Added by daigle over 15 years ago

Add release info property to provide a brief description of the release (release candidate info mostly)

View differences:

SystemUtil.java
206 206
	
207 207
	/**
208 208
	 * Get the metacat version by getting the string representation from
209
	 * metacat.properties and instantiating a MetaCatVersion object
209
	 * metacat.properties and instantiating a MetaCatVersion object.
210
	 * The info is set in build.properties and then populated into metacat.properties
211
	 * at build time using Ant token replacement.
210 212
	 * 
211 213
	 * @return a MetaCatVersion object holding metacat version information
212 214
	 */
......
215 217
			PropertyService.getProperty("application.metacatVersion");
216 218
		return new MetaCatVersion(metacatVersionString);
217 219
	}
220
	
221
	/**
222
	 * Gets a string that holds some description about the release. Typically this is 
223
	 * used during release candidates for display purposes and might hold something
224
	 * like "Release Candidate 1".  Normally it is empty for final production release.
225
	 * The info is set in build.properties and then populated into metacat.properties
226
	 * at build time using Ant token replacement.
227
	 * 
228
	 * @return a MetaCatVersion object holding metacat version information
229
	 */
230
	public static String getMetacatReleaseInfo() throws PropertyNotFoundException {
231
		return PropertyService.getProperty("application.metacatReleaseInfo");
232
	}
218 233

  
219 234
	/**
220 235
	 * Get the context directory. This is made up of the deployment directory + file

Also available in: Unified diff