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" );
* 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;
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$
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",
}
- 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;
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" );
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;
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;
import java.util.Iterator;
import java.util.Map;
-import junit.framework.AssertionFailedError;
-
public class HashcodesIndexPopulator
implements IndexPopulator
{
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",
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" );
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;
"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. -->
<%@ 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}"
<%@ 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}"
<%@ 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>
<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>
</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}">
<version>2.0</version>
<configuration>
<check>
- <!-- TODO! raise to 85/100 -->
+ <!-- TODO: raise to 85/100 -->
<totalLineRate>77</totalLineRate>
<totalBranchRate>95</totalBranchRate>
</check>