clarify comments

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@574886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2007-09-12 11:04:48 +00:00
parent 17f229020f
commit 184cf0176b
8 changed files with 28 additions and 28 deletions

View File

@ -182,7 +182,7 @@ public abstract class AbstractIndexerTestCase
filename.append( "." );
// TODO: use the ArtifactExtensionMapping object!
// TODO: use the ArtifactExtensionMapping object
if ( "maven-plugin".equals( artifact.getType() ) || "maven-archetype".equals( artifact.getType() ) )
{
filename.append( "jar" );

View File

@ -19,6 +19,7 @@ package org.apache.maven.archiva.indexer.search;
* under the License.
*/
import junit.framework.AssertionFailedError;
import org.apache.maven.archiva.indexer.bytecode.BytecodeRecord;
import org.apache.maven.archiva.indexer.bytecode.BytecodeRecordLoader;
import org.apache.maven.archiva.model.ArchivaArtifact;
@ -28,10 +29,8 @@ import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import junit.framework.AssertionFailedError;
/**
* BytecodeIndexPopulator
* BytecodeIndexPopulator
*
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
* @version $Id$
@ -46,8 +45,8 @@ public class BytecodeIndexPopulator
Map dumps = new HashMap();
// archiva-common-1.0.jar.txt
dumps.put( "archiva-common", createArchivaArtifact( "org.apache.maven.archiva", "archiva-common", "1.0", "",
"jar" ) );
dumps.put( "archiva-common",
createArchivaArtifact( "org.apache.maven.archiva", "archiva-common", "1.0", "", "jar" ) );
// continuum-webapp-1.0.3-SNAPSHOT.war.txt
dumps.put( "continuum-webapp", createArchivaArtifact( "org.apache.maven.continuum", "continuum-webapp",
@ -80,8 +79,8 @@ public class BytecodeIndexPopulator
}
private ArchivaArtifact createArchivaArtifact( String groupId, String artifactId, String version,
String classifier, String type )
private ArchivaArtifact createArchivaArtifact( String groupId, String artifactId, String version, String classifier,
String type )
{
ArchivaArtifact artifact = new ArchivaArtifact( groupId, artifactId, version, classifier, type );
return artifact;
@ -119,7 +118,7 @@ public class BytecodeIndexPopulator
filename.append( "." );
// TODO: use the ArtifactExtensionMapping object!
// TODO: use the ArtifactExtensionMapping object
if ( "maven-plugin".equals( artifact.getType() ) || "maven-archetype".equals( artifact.getType() ) )
{
filename.append( "jar" );
@ -134,7 +133,8 @@ public class BytecodeIndexPopulator
if ( !dumpFile.exists() )
{
throw new AssertionFailedError( "Dump file " + dumpFile.getAbsolutePath() + " does not exist (should it?)." );
throw new AssertionFailedError(
"Dump file " + dumpFile.getAbsolutePath() + " does not exist (should it?)." );
}
return dumpFile;

View File

@ -1,5 +1,6 @@
package org.apache.maven.archiva.indexer.search;
import junit.framework.AssertionFailedError;
import org.apache.maven.archiva.indexer.hashcodes.HashcodesRecord;
import org.apache.maven.archiva.indexer.hashcodes.HashcodesRecordLoader;
import org.apache.maven.archiva.model.ArchivaArtifact;
@ -9,8 +10,6 @@ import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import junit.framework.AssertionFailedError;
public class HashcodesIndexPopulator
implements IndexPopulator
{
@ -20,8 +19,8 @@ public class HashcodesIndexPopulator
Map dumps = new HashMap();
// archiva-common-1.0.jar.txt
dumps.put( "archiva-common", createArchivaArtifact( "org.apache.maven.archiva", "archiva-common", "1.0", "",
"jar" ) );
dumps.put( "archiva-common",
createArchivaArtifact( "org.apache.maven.archiva", "archiva-common", "1.0", "", "jar" ) );
// continuum-webapp-1.0.3-SNAPSHOT.war.txt
dumps.put( "continuum-webapp", createArchivaArtifact( "org.apache.maven.continuum", "continuum-webapp",
@ -85,7 +84,7 @@ public class HashcodesIndexPopulator
filename.append( "." );
// TODO: use the ArtifactExtensionMapping object!
// TODO: use the ArtifactExtensionMapping object
if ( "maven-plugin".equals( artifact.getType() ) || "maven-archetype".equals( artifact.getType() ) )
{
filename.append( "jar" );
@ -100,14 +99,15 @@ public class HashcodesIndexPopulator
if ( !dumpFile.exists() )
{
throw new AssertionFailedError( "Dump file " + dumpFile.getAbsolutePath() + " does not exist (should it?)." );
throw new AssertionFailedError(
"Dump file " + dumpFile.getAbsolutePath() + " does not exist (should it?)." );
}
return dumpFile;
}
private ArchivaArtifact createArchivaArtifact( String groupId, String artifactId, String version,
String classifier, String type )
private ArchivaArtifact createArchivaArtifact( String groupId, String artifactId, String version, String classifier,
String type )
{
ArchivaArtifact artifact = new ArchivaArtifact( groupId, artifactId, version, classifier, type );
return artifact;

View File

@ -22,7 +22,7 @@
"http://www.opensymphony.com/xwork/xwork-1.1.dtd">
<xwork>
<!-- TODO: better error handling for exceptions needed! -->
<!-- TODO: better error handling for exceptions needed [MRM-490] -->
<include file="webwork-default.xml"/>
<!-- Include plexus-security xwork configurations. -->

View File

@ -21,7 +21,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
<%-- TODO: paginate! --%>
<%-- TODO: paginate [MRM-491] --%>
<c:forEach items="${dependencies}" var="dependency">
<h3 class="artifact-title">
<my:showArtifactTitle groupId="${dependency.groupId}" artifactId="${dependency.artifactId}"

View File

@ -21,7 +21,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
<%-- TODO: paginate! --%>
<%-- TODO: paginate [MRM-491] --%>
<c:forEach items="${dependees}" var="project">
<h3 class="artifact-title">
<my:showArtifactTitle groupId="${project.groupId}" artifactId="${project.artifactId}"

View File

@ -21,7 +21,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="archiva" uri="http://maven.apache.org/archiva" %>
<%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
<%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
<html>
<head>
@ -96,7 +96,7 @@
<ww:url action="showArtifactDependencyTree">
<ww:param name="groupId" value="%{groupId}"/>
<ww:param name="artifactId" value="%{artifactId}"/>
<ww:param name="version" value="%{version}"/>
<ww:param name="version" value="%{version}"/>
</ww:url>
</c:set>
<my:currentWWUrl url="${url}">Dependency Tree</my:currentWWUrl>
@ -132,12 +132,12 @@
</span>
</div>
<div class="sidebar3">
<archiva:downloadArtifact groupId="${model.groupId}" artifactId="${model.artifactId}" version="${model.version}" />
</div>
<div class="sidebar3">
<archiva:downloadArtifact groupId="${model.groupId}" artifactId="${model.artifactId}" version="${model.version}"/>
</div>
<%-- TODO: perhaps using ajax? --%>
<%-- TODO: panels? this is ugly as is! --%>
<%-- TODO: panels? this is ugly as is --%>
<div id="tabArea">
<c:choose>
<c:when test="${dependencies != null}">

View File

@ -761,7 +761,7 @@
<version>2.0</version>
<configuration>
<check>
<!-- TODO! raise to 85/100 -->
<!-- TODO: raise to 85/100 -->
<totalLineRate>77</totalLineRate>
<totalBranchRate>95</totalBranchRate>
</check>