
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Compiler assisted localization library". The branch, master has been updated via db09bae6b785034f075548b611fbee3f0ff7f8c2 (commit) from c6d309e74d99dd5788af73b512a2d60aeae6bef6 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://git.qos.ch/gitweb/?p=cal10n.git;a=commit;h=db09bae6b785034f075548b611... http://github.com/ceki/cal10n/commit/db09bae6b785034f075548b611fbee3f0ff7f8c... commit db09bae6b785034f075548b611fbee3f0ff7f8c2 Author: Ceki Gulcu <ceki@qos.ch> Date: Tue Sep 1 11:21:32 2009 +0200 Trying to find a OS independent way of constructing the artifact URL. This version works on Windows diff --git a/maven-cal10n-plugin/src/main/java/ch/qos/cal10n/plugins/VerifyMojo.java b/maven-cal10n-plugin/src/main/java/ch/qos/cal10n/plugins/VerifyMojo.java index bdfe8fb..29d18ad 100644 --- a/maven-cal10n-plugin/src/main/java/ch/qos/cal10n/plugins/VerifyMojo.java +++ b/maven-cal10n-plugin/src/main/java/ch/qos/cal10n/plugins/VerifyMojo.java @@ -22,6 +22,7 @@ package ch.qos.cal10n.plugins; import java.io.File; +import java.io.IOException; import java.lang.reflect.Constructor; import java.net.MalformedURLException; import java.net.URL; @@ -173,13 +174,16 @@ public class VerifyMojo extends AbstractMojo { List<URL> getDirectDependencies() { ArrayList<URL> urlList = new ArrayList<URL>(); for (Artifact a : projectArtifacts) { - String urlAsStr = localRepository.getUrl(); //returns a bogus URL - //String pathOfArtifact = localRepository.getBasedir() + "/" - // + localRepository.pathOf(a); - urlAsStr += "/"+localRepository.pathOf(a); + String pathOfArtifact = localRepository.getBasedir() + "/" + + localRepository.pathOf(a); + File artifactAsFile = new File(pathOfArtifact); + if(!artifactAsFile.exists()) { + getLog().error("Artifact ["+artifactAsFile+"] could not be located"); + } try { //URL url = new URL("file://" + pathOfArtifact); - URL url = new URL(urlAsStr); + //URL url = new URL(urlAsStr); + URL url = artifactAsFile.toURI().toURL(); urlList.add(url); } catch (MalformedURLException e) { getLog().info("Failed to build URL", e); ----------------------------------------------------------------------- Summary of changes: .../java/ch/qos/cal10n/plugins/VerifyMojo.java | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) hooks/post-receive -- Compiler assisted localization library