View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2008 utgenome.org
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *--------------------------------------------------------------------------*/
16  //--------------------------------------
17  // utgb-shell Project
18  //
19  // POM.java
20  // Since: Jan 8, 2008
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.shell;
26  
27  /**
28   * POM objects corresponds to a Maven project file (pom.xml)
29   * 
30   * @author leo
31   * 
32   */
33  public class POM {
34  	private String version = "(unknown)";
35  	private POMProperties properties = new POMProperties();
36  
37  	public POM() {
38  	}
39  
40  	public String getVersion() {
41  		return version;
42  	}
43  
44  	public void setVersion(String version) {
45  		this.version = version;
46  	}
47  
48  	public void setProperties(POMProperties properties) {
49  		this.properties = properties;
50  	}
51  
52  	public POMProperties getProperties() {
53  		return properties;
54  	}
55  
56  	/**
57  	 * Retrieves Subversion's revision number from the pom.xml file
58  	 * 
59  	 * @return revision number
60  	 */
61  	public String getRevision() {
62  		return properties.getRevision();
63  	}
64  }