X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.support.maven%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fmaven%2Fembedder%2FAbstractMavenEmbedderLogger.java;fp=runtime%2Forg.argeo.slc.support.maven%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fmaven%2Fembedder%2FAbstractMavenEmbedderLogger.java;h=0000000000000000000000000000000000000000;hb=701d50c2a2308672129ca761036500f7492a84b0;hp=73a6c2e5d812817400a746b29e55705f11cce22c;hpb=565cba43c6f7331cf48c280a630fab2c4c6cad16;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.maven/src/main/java/org/argeo/slc/maven/embedder/AbstractMavenEmbedderLogger.java b/runtime/org.argeo.slc.support.maven/src/main/java/org/argeo/slc/maven/embedder/AbstractMavenEmbedderLogger.java deleted file mode 100644 index 73a6c2e5d..000000000 --- a/runtime/org.argeo.slc.support.maven/src/main/java/org/argeo/slc/maven/embedder/AbstractMavenEmbedderLogger.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (C) 2010 Mathieu Baudier - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.argeo.slc.maven.embedder; - -/* -* Copyright 2001-2005 The Apache Software Foundation. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/** - * @author Trygve Laugstøl - * @version $Id: AbstractMavenEmbedderLogger.java 292888 2005-10-01 01:17:36Z jvanzyl $ - */ -public abstract class AbstractMavenEmbedderLogger - implements MavenEmbedderLogger -{ - private int threshold = MavenEmbedderLogger.LEVEL_INFO; - - private String name; - - public int getThreshold() - { - return threshold; - } - - public void setThreshold( int threshold ) - { - this.threshold = threshold; - } - - public String getName() - { - return name; - } - - public void debug( String message ) - { - debug( message, null ); - } - - public boolean isDebugEnabled() - { - return threshold <= LEVEL_DEBUG; - } - - public void info( String message ) - { - info( message, null ); - } - - public boolean isInfoEnabled() - { - return threshold <= LEVEL_INFO; - } - - public void warn( String message ) - { - warn( message, null ); - } - - public boolean isWarnEnabled() - { - return threshold <= LEVEL_WARN; - } - - public void error( String message ) - { - error( message, null ); - } - - public boolean isErrorEnabled() - { - return threshold <= LEVEL_ERROR; - } - - public void fatalError( String message ) - { - fatalError( message, null ); - } - - public boolean isFatalErrorEnabled() - { - return threshold <= LEVEL_FATAL; - } - - protected boolean isValidThreshold( int threshold ) - { - if ( threshold == LEVEL_DEBUG ) - { - return true; - } - if ( threshold == LEVEL_INFO ) - { - return true; - } - if ( threshold == LEVEL_WARN ) - { - return true; - } - if ( threshold == LEVEL_ERROR ) - { - return true; - } - if ( threshold == LEVEL_FATAL ) - { - return true; - } - if ( threshold == LEVEL_DISABLED ) - { - return true; - } - - return false; - } -}