01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: package org.apache.ivy.core;
19:
20: public class LogOptions {
21: /**
22: * Defaults log settings. Output all usual messages during the resolve process.
23: */
24: public static final String LOG_DEFAULT = "default";
25: /**
26: * This log setting disable all usual messages but download ones.
27: */
28: public static final String LOG_DOWNLOAD_ONLY = "download-only";
29: /**
30: * This log setting disable all usual messages during the resolve process.
31: */
32: public static final String LOG_QUIET = "quiet";
33:
34: /**
35: * The log settings to use.
36: * One of {@link #LOG_DEFAULT}, {@link #LOG_DOWNLOAD_ONLY}, {@link #LOG_QUIET}
37: */
38: private String log = LOG_DEFAULT;
39:
40: public LogOptions() {
41: }
42:
43: public LogOptions(LogOptions options) {
44: log = options.log;
45: }
46:
47: public String getLog() {
48: return log;
49: }
50:
51: public LogOptions setLog(String log) {
52: this.log = log;
53: return this;
54: }
55: }
|