1 /* 2 Licensed to the Apache Software Foundation (ASF) under one 3 or more contributor license agreements. See the NOTICE file 4 distributed with this work for additional information 5 regarding copyright ownership. The ASF licenses this file 6 to you under the Apache License, Version 2.0 (the 7 "License"); you may not use this file except in compliance 8 with the License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, 13 software distributed under the License is distributed on an 14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 KIND, either express or implied. See the License for the 16 specific language governing permissions and limitations 17 under the License. 18 =================== DO NOT EDIT THIS FILE ==================== 19 Generated by Modello 2.4.0, 20 any modifications will be overwritten. 21 ============================================================== 22 */ 23 24 package org.apache.maven.model; 25 26 /** 27 * Deployment repository contains the information needed for 28 * deploying to the remote 29 * repository, which adds uniqueVersion property to usual 30 * repositories for download. 31 * 32 * @version $Revision$ $Date$ 33 */ 34 @SuppressWarnings( "all" ) 35 public class DeploymentRepository 36 extends Repository 37 implements java.io.Serializable, java.lang.Cloneable 38 { 39 40 //--------------------------/ 41 //- Class/Member Variables -/ 42 //--------------------------/ 43 44 /** 45 * Whether to assign snapshots a unique version comprised of 46 * the timestamp and 47 * build number, or to use the same version each 48 * time. 49 */ 50 private boolean uniqueVersion = true; 51 52 53 //-----------/ 54 //- Methods -/ 55 //-----------/ 56 57 /** 58 * Method clone. 59 * 60 * @return DeploymentRepository 61 */ 62 public DeploymentRepository clone() 63 { 64 try 65 { 66 DeploymentRepository copy = (DeploymentRepository) super.clone(); 67 68 return copy; 69 } 70 catch ( java.lang.Exception ex ) 71 { 72 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 73 + " does not support clone()" ).initCause( ex ); 74 } 75 } //-- DeploymentRepository clone() 76 77 /** 78 * Get whether to assign snapshots a unique version comprised 79 * of the timestamp and 80 * build number, or to use the same version each 81 * time. 82 * 83 * @return boolean 84 */ 85 public boolean isUniqueVersion() 86 { 87 return this.uniqueVersion; 88 } //-- boolean isUniqueVersion() 89 90 /** 91 * Set whether to assign snapshots a unique version comprised 92 * of the timestamp and 93 * build number, or to use the same version each 94 * time. 95 * 96 * @param uniqueVersion a uniqueVersion object. 97 */ 98 public void setUniqueVersion( boolean uniqueVersion ) 99 { 100 this.uniqueVersion = uniqueVersion; 101 } //-- void setUniqueVersion( boolean ) 102 103 }