[cal10n-dev] [GIT] Compiler assisted localization library branch, master, updated. e3551bfd202a35a9dcc796b992317d3ed2570935

added by portage for gitosis-gentoo git-noreply at pixie.qos.ch
Tue Sep 1 11:31:53 CEST 2009


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  e3551bfd202a35a9dcc796b992317d3ed2570935 (commit)
      from  db09bae6b785034f075548b611fbee3f0ff7f8c2 (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=e3551bfd202a35a9dcc796b992317d3ed2570935
http://github.com/ceki/cal10n/commit/e3551bfd202a35a9dcc796b992317d3ed2570935

commit e3551bfd202a35a9dcc796b992317d3ed2570935
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Tue Sep 1 11:26:52 2009 +0200

    - Cleaned up System.out residues
    - Removed cruft

diff --git a/cal10n-api/src/main/java/ch/qos/cal10n/verifier/MessageCodeVerifier.java b/cal10n-api/src/main/java/ch/qos/cal10n/verifier/MessageCodeVerifier.java
index 2be14a8..0146e1f 100644
--- a/cal10n-api/src/main/java/ch/qos/cal10n/verifier/MessageCodeVerifier.java
+++ b/cal10n-api/src/main/java/ch/qos/cal10n/verifier/MessageCodeVerifier.java
@@ -49,14 +49,10 @@ public class MessageCodeVerifier implements IMessageCodeVerifier {
     this.enumTypeAsStr = enumClass.getName();
   }
 
-  public MessageCodeVerifier() {
-    System.out.println("lkkkkkkkkkkkkkk="+this.getClass().getClassLoader());
-  }
   @SuppressWarnings("unchecked")
   public MessageCodeVerifier(String enumTypeAsStr) {
     this.enumTypeAsStr = enumTypeAsStr;
     String errMsg = "Failed to find enum class [" + enumTypeAsStr + "]";
-    System.out.println("lkkkkkkkkkkkkkk="+this.getClass().getClassLoader());
     try {
       this.enumType = (Class<? extends Enum<?>>) Class.forName(enumTypeAsStr);
     } catch (ClassNotFoundException e) {
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 29d18ad..7b6760a 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,12 +22,10 @@
 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;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.List;
 import java.util.Locale;
 import java.util.Set;
@@ -87,16 +85,18 @@ public class VerifyMojo extends AbstractMojo {
    */
   private ArtifactRepository localRepository;
 
-
   public void execute() throws MojoExecutionException, MojoFailureException {
 
     if (enumTypes == null) {
-      throw new MojoFailureException(
-          "Missing <enumTypes> element. Please see " + MISSING_ENUM_TYPES);
+      throw new MojoFailureException("Missing <enumTypes> element. Please see "
+          + MISSING_ENUM_TYPES);
     }
     for (String enumTypeAsStr : enumTypes) {
       IMessageCodeVerifier imcv = getMessageCodeVerifierInstance(enumTypeAsStr);
-      getLog().info("Checking all resource bundles for enum type [" + enumTypeAsStr + "]");
+      getLog()
+          .info(
+              "Checking all resource bundles for enum type [" + enumTypeAsStr
+                  + "]");
       checkAllLocales(imcv);
     }
   }
@@ -144,10 +144,9 @@ public class VerifyMojo extends AbstractMojo {
       throws MojoExecutionException {
     String errMsg = "Failed to instantiate MessageCodeVerifier class";
     try {
-
       ThisFirstClassLoader thisFirstClassLoader = (ThisFirstClassLoader) buildClassLoader();
-      //Class<?> cla = thisFirstClassLoader.loadClass(Cal10nConstants.MessageCodeVerifier_FQCN, true);
-      Class<?> cla = Class.forName(Cal10nConstants.MessageCodeVerifier_FQCN, true, thisFirstClassLoader);
+      Class<?> cla = Class.forName(Cal10nConstants.MessageCodeVerifier_FQCN,
+          true, thisFirstClassLoader);
       Constructor<?> cons = cla.getConstructor(String.class);
       IMessageCodeVerifier imcv = (IMessageCodeVerifier) cons
           .newInstance(enumClassAsStr);
@@ -167,7 +166,6 @@ public class VerifyMojo extends AbstractMojo {
     classpathURLList.addAll(getDirectDependencies());
     ClassLoader parentCL = this.getClass().getClassLoader();
     URL[] classpathURLArray = classpathURLList.toArray(new URL[] {});
-    System.out.println("classpathURLArray="+Arrays.toString(classpathURLArray));
     return new ThisFirstClassLoader(classpathURLArray, parentCL);
   }
 
@@ -176,13 +174,12 @@ public class VerifyMojo extends AbstractMojo {
     for (Artifact a : projectArtifacts) {
       String pathOfArtifact = localRepository.getBasedir() + "/"
           + localRepository.pathOf(a);
-       File artifactAsFile = new File(pathOfArtifact);
-      if(!artifactAsFile.exists()) {
-        getLog().error("Artifact ["+artifactAsFile+"] could not be located");
+      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 = artifactAsFile.toURI().toURL();
         urlList.add(url);
       } catch (MalformedURLException e) {

-----------------------------------------------------------------------

Summary of changes:
 .../qos/cal10n/verifier/MessageCodeVerifier.java   |    4 ---
 .../java/ch/qos/cal10n/plugins/VerifyMojo.java     |   27 +++++++++-----------
 2 files changed, 12 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
Compiler assisted localization library


More information about the cal10n-dev mailing list