You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2013/08/28 21:39:57 UTC

svn commit: r1518339 - in /uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper: CopyFromApacheDist.java ParseDateTime.java

Author: schor
Date: Wed Aug 28 19:39:56 2013
New Revision: 1518339

URL: http://svn.apache.org/r1518339
Log:
[UIMA-3233] fix annotations and fix wrong cast causing Date conversion to fail.

Modified:
    uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/CopyFromApacheDist.java
    uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/ParseDateTime.java

Modified: uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/CopyFromApacheDist.java
URL: http://svn.apache.org/viewvc/uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/CopyFromApacheDist.java?rev=1518339&r1=1518338&r2=1518339&view=diff
==============================================================================
--- uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/CopyFromApacheDist.java (original)
+++ uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/CopyFromApacheDist.java Wed Aug 28 19:39:56 2013
@@ -40,8 +40,7 @@ import org.apache.maven.plugins.annotati
  * else, download the requested artifact from archive.apache.org/dist/uima/
  * 
  */
-@Mojo( name = "copy-from-apache-dist")
-@Execute( goal = "copy-from-apache-dist", phase = LifecyclePhase.VALIDATE)
+@Mojo( name = "copy-from-apache-dist", defaultPhase = LifecyclePhase.VALIDATE)
 
 public class CopyFromApacheDist extends AbstractMojo {
   private static final int MAXRETRIES = 6;

Modified: uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/ParseDateTime.java
URL: http://svn.apache.org/viewvc/uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/ParseDateTime.java?rev=1518339&r1=1518338&r2=1518339&view=diff
==============================================================================
--- uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/ParseDateTime.java (original)
+++ uima/build/trunk/uima-build-helper-maven-plugin/src/main/java/org/apache/uima/buildhelper/ParseDateTime.java Wed Aug 28 19:39:56 2013
@@ -38,8 +38,8 @@ import org.apache.maven.project.MavenPro
  * Users specify the property name and the format of the parsing; multiple sets
  * of these can be configured to represent the same time.
  */
-@Mojo(name = "parse-date-time")
-@Execute(goal = "parse-date-time", phase = LifecyclePhase.VALIDATE)
+@Mojo(defaultPhase = LifecyclePhase.VALIDATE, name = "parse-date-time")
+
 public class ParseDateTime extends AbstractMojo {
   /**
    * Collection of parseSpecs. Each parseSpec has a name - the property name,
@@ -61,7 +61,7 @@ public class ParseDateTime extends Abstr
     
     for (int i = 0; i < parseSpecs.length; i++) {
       ParseSpec ps = parseSpecs[i]; 
-      String v = MessageFormat.format("{0,date," + ps.getFormat() + "}", (Object)now);
+      String v = MessageFormat.format("{0,date," + ps.getFormat() + "}", (Object[]) now);
       if (getLog().isDebugEnabled()) {
         getLog().debug("Setting property " +
             ps.getName() +