You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by xa...@apache.org on 2007/06/23 01:05:32 UTC
svn commit: r549990 -
/incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyArtifactReport.java
Author: xavier
Date: Fri Jun 22 18:05:31 2007
New Revision: 549990
URL: http://svn.apache.org/viewvc?view=rev&rev=549990
Log:
clean code
Modified:
incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyArtifactReport.java
Modified: incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyArtifactReport.java
URL: http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyArtifactReport.java?view=diff&rev=549990&r1=549989&r2=549990
==============================================================================
--- incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyArtifactReport.java (original)
+++ incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyArtifactReport.java Fri Jun 22 18:05:31 2007
@@ -134,7 +134,8 @@
for (int i = 0; i < dependencies.length; i++) {
IvyNode dependency = dependencies[i];
- if (dependency.getModuleRevision() == null || dependency.isCompletelyEvicted()) {
+ if (dependency.getModuleRevision() == null
+ || dependency.isCompletelyEvicted()) {
continue;
}
@@ -189,7 +190,8 @@
return saxHandler;
}
- private void startModule(TransformerHandler saxHandler, IvyNode dependency) throws SAXException {
+ private void startModule(TransformerHandler saxHandler, IvyNode dependency)
+ throws SAXException {
AttributesImpl moduleAttrs = new AttributesImpl();
moduleAttrs.addAttribute(null, "organisation", "organisation", "CDATA", dependency
.getModuleId().getOrganisation());
@@ -241,7 +243,7 @@
Artifact artifact) throws SAXException {
ArtifactOrigin origin = cache.getSavedArtifactOrigin(artifact);
File archiveInCacheFile = cache.getArchiveFileInCache(artifact, origin, false);
- StringBuffer archiveInCachePathWithSlashes = new StringBuffer(1000);
+ StringBuffer archiveInCachePathWithSlashes = new StringBuffer();
replaceFileSeparatorWithSlash(archiveInCacheFile, archiveInCachePathWithSlashes);
saxHandler.startElement(null, "cache-location", "cache-location", new AttributesImpl());
@@ -253,7 +255,7 @@
private void writeRetrieveLocation(TransformerHandler saxHandler, String artifactDestPath)
throws SAXException {
artifactDestPath = removeLeadingPath(getProject().getBaseDir(), new File(artifactDestPath));
- StringBuffer artifactDestPathWithSlashes = new StringBuffer(1000);
+ StringBuffer artifactDestPathWithSlashes = new StringBuffer();
replaceFileSeparatorWithSlash(new File(artifactDestPath), artifactDestPathWithSlashes);
saxHandler.startElement(null, "retrieve-location", "retrieve-location",