-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upstream: b=master,r=8be2942c4424be5b2cb40d15cc316d8b9fd72d43,t=2016-…
…03-08-0448-45717
- Loading branch information
1 parent
12afe90
commit 85b3e53
Showing
52 changed files
with
11,232 additions
and
11,915 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21,981 changes: 10,257 additions & 11,724 deletions
21,981
components/nexus-core/nexus-work_IS_UNDEFINED/logs/nexus.log
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...nents/nexus-core/src/main/java/org/sonatype/nexus/proxy/item/uid/IsInternalAttribute.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Sonatype Nexus (TM) Open Source Version | ||
* Copyright (c) 2008-present Sonatype, Inc. | ||
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, | ||
* which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. | ||
* | ||
* Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks | ||
* of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the | ||
* Eclipse Foundation. All other trademarks are the property of their respective owners. | ||
*/ | ||
package org.sonatype.nexus.proxy.item.uid; | ||
|
||
import org.sonatype.nexus.proxy.item.RepositoryItemUid; | ||
|
||
/** | ||
* Repository-item UID-attribute indicating if item is internal. | ||
* | ||
* @since 2.13 | ||
*/ | ||
public class IsInternalAttribute | ||
implements Attribute<Boolean> | ||
{ | ||
@Override | ||
public Boolean getValueFor(final RepositoryItemUid subject) { | ||
String path = subject.getPath(); | ||
return path != null && path.startsWith("/.nexus"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
components/nexus-core/src/main/java/org/sonatype/nexus/util/io/AutoClosableIterable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Sonatype Nexus (TM) Open Source Version | ||
* Copyright (c) 2008-present Sonatype, Inc. | ||
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, | ||
* which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. | ||
* | ||
* Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks | ||
* of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the | ||
* Eclipse Foundation. All other trademarks are the property of their respective owners. | ||
*/ | ||
package org.sonatype.nexus.util.io; | ||
|
||
import java.io.Closeable; | ||
import java.util.Collections; | ||
import java.util.Iterator; | ||
|
||
/** | ||
* {@link AutoCloseable} {@link Iterable}. | ||
* | ||
* @since 2.13 | ||
*/ | ||
public interface AutoClosableIterable<T> | ||
extends Closeable, AutoCloseable, Iterable<T> | ||
{ | ||
/** | ||
* Helper to create {@link AutoClosableIterable}. | ||
*/ | ||
class Factory | ||
{ | ||
private Factory() { | ||
// empty | ||
} | ||
|
||
private static final AutoClosableIterable EMPTY_ITERABLE = new AutoClosableIterable<Object>() | ||
{ | ||
@Override | ||
public void close() { | ||
// empty | ||
} | ||
|
||
@Override | ||
public Iterator<Object> iterator() { | ||
return Collections.emptyIterator(); | ||
} | ||
}; | ||
|
||
/** | ||
* Create empty/nop iterable. | ||
*/ | ||
@SuppressWarnings("unchecked") | ||
public static <T> AutoClosableIterable<T> emptyIterable() { | ||
return EMPTY_ITERABLE; | ||
} | ||
} | ||
} |
Oops, something went wrong.