1 /*
2 * $Id$
3 */
4
5 package org.apache.maven.model;
6
7 /**
8 *
9 * Repository contains the information needed for deploying
10 * to the
11 * remote repository.
12 *
13 *
14 * @version $Revision$ $Date$
15 */
16 public class DeploymentRepository extends RepositoryBase
17 implements java.io.Serializable
18 {
19
20
21 //--------------------------/
22 //- Class/Member Variables -/
23 //--------------------------/
24
25 /**
26 * Field uniqueVersion
27 */
28 private boolean uniqueVersion = true;
29
30
31 //-----------/
32 //- Methods -/
33 //-----------/
34
35 /**
36 * Get
37 * Whether to assign snapshots a unique version
38 * comprised of
39 * the timestamp and build number, or to use the
40 * same version
41 * each time
42 *
43 */
44 public boolean isUniqueVersion()
45 {
46 return this.uniqueVersion;
47 } //-- boolean isUniqueVersion()
48
49 /**
50 * Set
51 * Whether to assign snapshots a unique version
52 * comprised of
53 * the timestamp and build number, or to use the
54 * same version
55 * each time
56 *
57 *
58 * @param uniqueVersion
59 */
60 public void setUniqueVersion(boolean uniqueVersion)
61 {
62 this.uniqueVersion = uniqueVersion;
63 } //-- void setUniqueVersion(boolean)
64
65
66
67 /**
68 * @see java.lang.Object#equals(java.lang.Object)
69 */
70 public boolean equals( Object obj )
71 {
72 return super.equals( obj );
73 }
74
75
76 private String modelEncoding = "UTF-8";
77
78 public void setModelEncoding( String modelEncoding )
79 {
80 this.modelEncoding = modelEncoding;
81 }
82
83 public String getModelEncoding()
84 {
85 return modelEncoding;
86 }}