mirror of
https://github.com/apache/archiva.git
synced 2025-03-07 17:11:00 +00:00
Moved from Plexus-Util StringUtils to Lang StringUtils. replace, split and join should just have had performance improvements (probably won't be noticed). isEmpty no longer trims, but usually people don't expect that so that's a semi bugfix. I've also switched a couple of \!isEmpty's to isNotEmpty.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@481446 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9edce822a7
commit
8f58ff7664
archiva-cli
archiva-configuration
pom.xml
src/main/java/org/apache/maven/archiva/configuration
archiva-core
pom.xml
src/main/java/org/apache/maven/archiva
archiva-discoverer
pom.xml
src/main/java/org/apache/maven/archiva/discoverer
archiva-indexer
pom.xml
src/main/java/org/apache/maven/archiva/indexer/lucene
archiva-reports-standard
archiva-webapp
pom.xml
pom.xmlsrc/main/java/org/apache/maven/archiva/web
@ -20,6 +20,10 @@
|
||||
<artifactId>plexus-cli</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -8,7 +8,7 @@
|
||||
import org.apache.maven.archiva.discoverer.DiscovererException;
|
||||
import org.codehaus.plexus.PlexusContainer;
|
||||
import org.codehaus.plexus.tools.cli.AbstractCli;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
|
@ -40,6 +40,10 @@
|
||||
<version>1.2_Java1.3</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -20,7 +20,7 @@
|
||||
import org.apache.maven.archiva.configuration.io.xpp3.ConfigurationXpp3Writer;
|
||||
import org.codehaus.plexus.logging.AbstractLogEnabled;
|
||||
import org.codehaus.plexus.util.IOUtil;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -16,7 +16,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
@ -56,6 +56,10 @@
|
||||
<artifactId>plexus-taskqueue</artifactId>
|
||||
<version>1.0-alpha-4-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -21,7 +21,7 @@
|
||||
import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
|
||||
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
|
@ -30,7 +30,7 @@
|
||||
import org.apache.maven.wagon.ResourceDoesNotExistException;
|
||||
import org.apache.maven.wagon.proxy.ProxyInfo;
|
||||
import org.codehaus.plexus.logging.AbstractLogEnabled;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
@ -230,7 +230,7 @@ private static ProxiedRepositoryGroup parseRepositoryId( String path, Map groups
|
||||
private static ProxyInfo createWagonProxy( Proxy proxy )
|
||||
{
|
||||
ProxyInfo proxyInfo = null;
|
||||
if ( proxy != null && !StringUtils.isEmpty( proxy.getHost() ) )
|
||||
if ( proxy != null && StringUtils.isNotEmpty( proxy.getHost() ) )
|
||||
{
|
||||
proxyInfo = new ProxyInfo();
|
||||
proxyInfo.setHost( proxy.getHost() );
|
||||
|
@ -50,5 +50,9 @@
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-model</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
2
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/DefaultArtifactDiscoverer.java
2
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/DefaultArtifactDiscoverer.java
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
4
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/DefaultMetadataDiscoverer.java
4
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/DefaultMetadataDiscoverer.java
@ -26,7 +26,7 @@
|
||||
import org.apache.maven.artifact.repository.metadata.RepositoryMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.SnapshotArtifactRepositoryMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
|
||||
|
||||
import java.io.File;
|
||||
@ -162,7 +162,7 @@ private RepositoryMetadata buildMetadata( Metadata m, String metadataPath )
|
||||
String tmpDir = (String) it.next();
|
||||
|
||||
Artifact artifact = null;
|
||||
if ( !StringUtils.isEmpty( metaVersion ) )
|
||||
if ( StringUtils.isNotEmpty( metaVersion ) )
|
||||
{
|
||||
artifact = artifactFactory.createProjectArtifact( metaGroupId, metaArtifactId, metaVersion );
|
||||
}
|
||||
|
@ -63,6 +63,10 @@
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-repository-metadata</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -23,7 +23,7 @@
|
||||
import org.apache.maven.archiva.indexer.record.MinimalArtifactIndexRecord;
|
||||
import org.apache.maven.archiva.indexer.record.MinimalIndexRecordFields;
|
||||
import org.apache.maven.archiva.indexer.record.RepositoryIndexRecord;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.util.Arrays;
|
||||
|
@ -23,7 +23,7 @@
|
||||
import org.apache.maven.archiva.indexer.record.RepositoryIndexRecord;
|
||||
import org.apache.maven.archiva.indexer.record.StandardArtifactIndexRecord;
|
||||
import org.apache.maven.archiva.indexer.record.StandardIndexRecordFields;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.util.Arrays;
|
||||
|
@ -66,6 +66,10 @@
|
||||
<groupId>org.apache.maven.archiva</groupId>
|
||||
<artifactId>archiva-discoverer</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -26,7 +26,7 @@
|
||||
import org.apache.maven.artifact.repository.metadata.Snapshot;
|
||||
import org.apache.maven.artifact.repository.metadata.Versioning;
|
||||
import org.codehaus.plexus.util.FileUtils;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
@ -219,6 +219,10 @@
|
||||
<artifactId>webdav</artifactId>
|
||||
<version>0.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -24,7 +24,7 @@
|
||||
import org.apache.maven.archiva.indexer.RepositoryArtifactIndexFactory;
|
||||
import org.apache.maven.archiva.indexer.RepositoryIndexException;
|
||||
import org.apache.maven.archiva.indexer.RepositoryIndexSearchException;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codehaus.plexus.xwork.action.PlexusActionSupport;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -46,7 +46,7 @@
|
||||
import org.apache.maven.shared.dependency.tree.DependencyTree;
|
||||
import org.apache.maven.shared.dependency.tree.DependencyTreeBuilder;
|
||||
import org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
|
||||
import org.codehaus.plexus.xwork.action.PlexusActionSupport;
|
||||
|
||||
|
2
archiva-webapp/src/main/java/org/apache/maven/archiva/web/servlet/repository/RepositoryAccess.java
2
archiva-webapp/src/main/java/org/apache/maven/archiva/web/servlet/repository/RepositoryAccess.java
@ -34,7 +34,7 @@
|
||||
import org.codehaus.plexus.security.system.SecuritySystem;
|
||||
import org.codehaus.plexus.security.ui.web.filter.authentication.HttpAuthenticator;
|
||||
import org.codehaus.plexus.util.FileUtils;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
5
pom.xml
5
pom.xml
@ -341,6 +341,11 @@
|
||||
<artifactId>plexus-security-keys-jdo</artifactId>
|
||||
<version>${plexus-security.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<reporting>
|
||||
|
Loading…
x
Reference in New Issue
Block a user