Revision: 19778
          http://sourceforge.net/p/gate/code/19778
Author:   markagreenwood
Date:     2016-11-24 09:51:59 +0000 (Thu, 24 Nov 2016)
Log Message:
-----------
mavenized another plugin

Modified Paths:
--------------
    gate/branches/sawdust2/plugins/Format_Twitter/.classpath
    gate/branches/sawdust2/plugins/Format_Twitter/.project
    
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/JSONTweetFormat.java
    
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/twitter/PopulationConfig.java
    
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/twitter/Tweet.java

Added Paths:
-----------
    gate/branches/sawdust2/plugins/Format_Twitter/src/main/
    gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/
    gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/
    gate/branches/sawdust2/plugins/Format_Twitter/src/main/resources/
    gate/branches/sawdust2/plugins/Format_Twitter/src/main/resources/creole.xml

Removed Paths:
-------------
    gate/branches/sawdust2/plugins/Format_Twitter/build.xml
    gate/branches/sawdust2/plugins/Format_Twitter/creole.xml
    gate/branches/sawdust2/plugins/Format_Twitter/src/gate/

Property Changed:
----------------
    gate/branches/sawdust2/plugins/Format_Twitter/

Index: gate/branches/sawdust2/plugins/Format_Twitter
===================================================================
--- gate/branches/sawdust2/plugins/Format_Twitter       2016-11-24 09:40:55 UTC 
(rev 19777)
+++ gate/branches/sawdust2/plugins/Format_Twitter       2016-11-24 09:51:59 UTC 
(rev 19778)

Property changes on: gate/branches/sawdust2/plugins/Format_Twitter
___________________________________________________________________
Modified: svn:ignore
## -1,4 +1 ##
-format-twitter.jar
-classes
-.settings
-doc
+target
Modified: gate/branches/sawdust2/plugins/Format_Twitter/.classpath
===================================================================
--- gate/branches/sawdust2/plugins/Format_Twitter/.classpath    2016-11-24 
09:40:55 UTC (rev 19777)
+++ gate/branches/sawdust2/plugins/Format_Twitter/.classpath    2016-11-24 
09:51:59 UTC (rev 19778)
@@ -1,7 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-       <classpathentry kind="src" path="src"/>
-       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
-       <classpathentry combineaccessrules="false" exported="true" kind="src" 
path="/GATE"/>
-       <classpathentry kind="output" path="classes"/>
+       <classpathentry kind="src" output="target/classes" path="src/main/java">
+               <attributes>
+                       <attribute name="optional" value="true"/>
+                       <attribute name="maven.pomderived" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry excluding="**" kind="src" output="target/classes" 
path="src/main/resources">
+               <attributes>
+                       <attribute name="maven.pomderived" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" output="target/test-classes" 
path="src/test/java">
+               <attributes>
+                       <attribute name="optional" value="true"/>
+                       <attribute name="maven.pomderived" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
+               <attributes>
+                       <attribute name="maven.pomderived" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="con" 
path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+               <attributes>
+                       <attribute name="maven.pomderived" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: gate/branches/sawdust2/plugins/Format_Twitter/.project
===================================================================
--- gate/branches/sawdust2/plugins/Format_Twitter/.project      2016-11-24 
09:40:55 UTC (rev 19777)
+++ gate/branches/sawdust2/plugins/Format_Twitter/.project      2016-11-24 
09:51:59 UTC (rev 19778)
@@ -10,8 +10,14 @@
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.m2e.core.maven2Builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>
        </natures>
 </projectDescription>

Deleted: gate/branches/sawdust2/plugins/Format_Twitter/build.xml
===================================================================
--- gate/branches/sawdust2/plugins/Format_Twitter/build.xml     2016-11-24 
09:40:55 UTC (rev 19777)
+++ gate/branches/sawdust2/plugins/Format_Twitter/build.xml     2016-11-24 
09:51:59 UTC (rev 19778)
@@ -1,93 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="gate.twitter-format" default="build" basedir=".">
-       <description>Twitter document format plugin for GATE</description>
-
-       <!-- Prevent Ant from warning about includeantruntime not being set -->
-       <property name="build.sysclasspath" value="ignore" />
-       <property environment="env" />
-       <property file="build.properties" />
-       <condition property="gate.home" value="${env.GATE_HOME}">
-               <isset property="env.GATE_HOME" />
-       </condition>
-       <property name="src.dir" value="src" />
-       <property name="classes.dir" value="classes" />
-       <property name="javadoc.dir" value="doc/javadoc" />
-       <property name="gate.home" location="../../" />
-       <property name="jar.location" value="format-twitter.jar" />
-
-       <fileset id="gatelib.classpath" dir="${gate.home}/lib">
-               <include name="*.jar" />
-               <include name="*.zip" />
-       </fileset>
-
-       <fileset id="gate.classpath" dir="${gate.home}/bin">
-               <include name="*.jar" />
-               <include name="*.zip" />
-       </fileset>
-
-       <path id="compile.classpath">
-               <fileset refid="gatelib.classpath" />
-               <fileset refid="gate.classpath" />
-       </path>
-
-
-       <target name="prepare">
-               <mkdir dir="${classes.dir}" />
-       </target>
-
-
-       <target name="compile" description="Compile Java sources" 
depends="prepare">
-               <javac srcdir="src" destdir="${classes.dir}" debug="true" 
source="1.7" target="1.7" debuglevel="lines,vars,source" deprecation="on" 
optimize="off" encoding="UTF-8" classpathref="compile.classpath" />
-       </target>
-
-
-
-       <!-- Create application JAR file -->
-       <target name="jar" depends="compile">
-               <jar destfile="${jar.location}" update="false" index="true" 
basedir="${classes.dir}/" />
-       </target>
-
-
-
-       <!-- Targets used by the main GATE build file:
-         build: build the plugin - just calls "jar" target
-         test : run the unit tests - there aren't any
-         distro.prepare: remove intermediate files that shouldn't be in the
-                         distribution
-  -->
-       <target name="build" depends="jar" />
-       <target name="test" />
-       <target name="distro.prepare" depends="clean.classes" />
-
-
-       <target name="clean.classes">
-               <delete dir="${classes.dir}" />
-       </target>
-
-       <target name="clean.jar">
-               <delete file="${jar.location}" />
-       </target>
-
-       <!-- Clean up - remove .class and .jar files -->
-       <target name="clean" depends="clean.classes, clean.jar" />
-
-
-       <!-- generate javadoc -->
-
-       <!-- Build JavaDoc documentation -->
-       <target name="doc.prepare">
-               <mkdir dir="${javadoc.dir}" />
-       </target>
-
-       <target name="javadoc" depends="doc.prepare" description="Create 
Javadoc API documentation">
-               <javadoc access="protected" destdir="${javadoc.dir}" 
classpathref="compile.classpath" Extdirs="${extDir}" Encoding="UTF-8" Use="yes" 
Windowtitle="GATE Twitter JavaDoc" docencoding="UTF-8" charset="UTF-8" 
source="1.7" useexternalfile="yes" breakiterator="true" linksource="yes">
-                       <fileset dir="${src.dir}" />
-                       <link href="http://docs.oracle.com/javase/6/docs/api/"; 
/>
-                       <link href="http://gate.ac.uk/gate/doc/javadoc/"; />
-               </javadoc>
-
-       </target>
-
-
-</project>

Deleted: gate/branches/sawdust2/plugins/Format_Twitter/creole.xml
===================================================================
--- gate/branches/sawdust2/plugins/Format_Twitter/creole.xml    2016-11-24 
09:40:55 UTC (rev 19777)
+++ gate/branches/sawdust2/plugins/Format_Twitter/creole.xml    2016-11-24 
09:51:59 UTC (rev 19778)
@@ -1,4 +0,0 @@
-<?xml version="1.0"?>  
-<CREOLE-DIRECTORY>  
-  <JAR SCAN="true">format-twitter.jar</JAR>
-</CREOLE-DIRECTORY> 

Modified: 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/JSONTweetFormat.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Format_Twitter/src/gate/corpora/JSONTweetFormat.java
 2016-11-24 02:22:42 UTC (rev 19775)
+++ 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/JSONTweetFormat.java
       2016-11-24 09:51:59 UTC (rev 19778)
@@ -11,14 +11,19 @@
  */
 package gate.corpora;
 
-import gate.AnnotationSet;
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.StringUtils;
+
 import gate.DocumentContent;
 import gate.GateConstants;
 import gate.Resource;
 import gate.corpora.twitter.PreAnnotation;
 import gate.corpora.twitter.Tweet;
 import gate.corpora.twitter.TweetStreamIterator;
-import gate.corpora.twitter.TweetUtils;
 import gate.creole.ResourceInstantiationException;
 import gate.creole.metadata.AutoInstance;
 import gate.creole.metadata.CreoleResource;
@@ -26,15 +31,7 @@
 import gate.util.InvalidOffsetException;
 import gate.util.Out;
 
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import org.apache.commons.lang.StringUtils;
 
-
 /** Document format for handling JSON tweets: either one 
  *  object {...} or a list [{tweet...}, {tweet...}, ...].
  *  

Modified: 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/twitter/PopulationConfig.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Format_Twitter/src/gate/corpora/twitter/PopulationConfig.java
        2016-11-24 02:22:42 UTC (rev 19775)
+++ 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/twitter/PopulationConfig.java
      2016-11-24 09:51:59 UTC (rev 19778)
@@ -12,9 +12,6 @@
 package gate.corpora.twitter;
 
 
-import gate.Gate;
-import gate.gui.MainFrame;
-import gate.swing.XJFileChooser;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.io.File;
@@ -24,12 +21,17 @@
 import java.net.URL;
 import java.util.Arrays;
 import java.util.List;
+
 import org.apache.log4j.Logger;
+
 import com.thoughtworks.xstream.XStream;
 import com.thoughtworks.xstream.io.xml.PrettyPrintWriter;
 import com.thoughtworks.xstream.io.xml.StaxDriver;
 
+import gate.Gate;
+import gate.swing.XJFileChooser;
 
+
 public class PopulationConfig   {
   public static final String RESOURCE_CODE = "twitter.population.config";
 

Modified: 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/twitter/Tweet.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Format_Twitter/src/gate/corpora/twitter/Tweet.java
   2016-11-24 02:22:42 UTC (rev 19775)
+++ 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/twitter/Tweet.java
 2016-11-24 09:51:59 UTC (rev 19778)
@@ -11,24 +11,22 @@
  */
 package gate.corpora.twitter;
 
-import gate.Factory;
-import gate.FeatureMap;
-import gate.corpora.RepositioningInfo;
-import gate.util.Strings;
 import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
-import java.util.Map;
 import java.util.Set;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-import org.apache.commons.lang.StringEscapeUtils;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.node.ObjectNode;
 
+import gate.Factory;
+import gate.FeatureMap;
+import gate.corpora.RepositioningInfo;
+import gate.util.Strings;
 
+
 public class Tweet {
   private String string;
   private long start;

Copied: 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/resources/creole.xml 
(from rev 19775, gate/branches/sawdust2/plugins/Format_Twitter/creole.xml)
===================================================================
--- gate/branches/sawdust2/plugins/Format_Twitter/src/main/resources/creole.xml 
                        (rev 0)
+++ gate/branches/sawdust2/plugins/Format_Twitter/src/main/resources/creole.xml 
2016-11-24 09:51:59 UTC (rev 19778)
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>  
+<CREOLE-DIRECTORY>  
+
+</CREOLE-DIRECTORY> 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to