Revision: 19538 http://sourceforge.net/p/gate/code/19538 Author: markagreenwood Date: 2016-08-22 11:10:08 +0000 (Mon, 22 Aug 2016) Log Message: ----------- made the groovy plugin a maven project, although I've so far failed to get it to play nicely with eclipse
Modified Paths: -------------- gate/branches/sawdust2/plugins/Groovy/.project gate/branches/sawdust2/plugins/pom.xml Added Paths: ----------- gate/branches/sawdust2/plugins/Groovy/pom.xml gate/branches/sawdust2/plugins/Groovy/src/main/ gate/branches/sawdust2/plugins/Groovy/src/main/java/ gate/branches/sawdust2/plugins/Groovy/src/main/java/gate/ gate/branches/sawdust2/plugins/Groovy/src/main/resources/ gate/branches/sawdust2/plugins/Groovy/src/main/resources/creole.xml gate/branches/sawdust2/plugins/Groovy/src/main/resources/gate/ gate/branches/sawdust2/plugins/Groovy/src/main/resources/gate/groovy/ gate/branches/sawdust2/plugins/Groovy/src/main/resources/gate/groovy/script-pr.png gate/branches/sawdust2/plugins/Groovy/src/main/resources/gate/groovy/scriptable-controller.png Removed Paths: ------------- gate/branches/sawdust2/plugins/Groovy/.classpath gate/branches/sawdust2/plugins/Groovy/build.xml gate/branches/sawdust2/plugins/Groovy/creole.xml gate/branches/sawdust2/plugins/Groovy/doc/ gate/branches/sawdust2/plugins/Groovy/lib/ gate/branches/sawdust2/plugins/Groovy/src/gate/ gate/branches/sawdust2/plugins/Groovy/src/main/java/gate/groovy/script-pr.png gate/branches/sawdust2/plugins/Groovy/src/main/java/gate/groovy/scriptable-controller.png Deleted: gate/branches/sawdust2/plugins/Groovy/.classpath =================================================================== --- gate/branches/sawdust2/plugins/Groovy/.classpath 2016-08-22 11:09:31 UTC (rev 19537) +++ gate/branches/sawdust2/plugins/Groovy/.classpath 2016-08-22 11:10:08 UTC (rev 19538) @@ -1,13 +0,0 @@ -<?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.6"/> - <classpathentry combineaccessrules="false" exported="true" kind="src" path="/GATE"/> - <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"> - <attributes> - <attribute name="minimal" value="true"/> - </attributes> - </classpathentry> - <classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/> - <classpathentry kind="output" path="build"/> -</classpath> Modified: gate/branches/sawdust2/plugins/Groovy/.project =================================================================== --- gate/branches/sawdust2/plugins/Groovy/.project 2016-08-22 11:09:31 UTC (rev 19537) +++ gate/branches/sawdust2/plugins/Groovy/.project 2016-08-22 11:10:08 UTC (rev 19538) @@ -6,13 +6,12 @@ </projects> <buildSpec> <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> + <name>org.eclipse.m2e.core.maven2Builder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> - <nature>org.eclipse.jdt.groovy.core.groovyNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures> </projectDescription> Deleted: gate/branches/sawdust2/plugins/Groovy/build.xml =================================================================== --- gate/branches/sawdust2/plugins/Groovy/build.xml 2016-08-22 11:09:31 UTC (rev 19537) +++ gate/branches/sawdust2/plugins/Groovy/build.xml 2016-08-22 11:10:08 UTC (rev 19538) @@ -1,117 +0,0 @@ -<project name="groovy" default="dist" basedir="."> - <description> - A plugin for Groovy integration - </description> - - <!-- Prevent Ant from warning about includeantruntime not being set --> - <property name="build.sysclasspath" value="ignore" /> - - <!-- set global properties for this build --> - <property name="src" location="src"/> - <property name="build" location="build"/> - <property name="dist" location="dist"/> - <property name="jar.location" location="groovy-gate.jar" /> - <property name="doc.dir" location="doc" /> - <property name="javadoc.dir" location="${doc.dir}/javadoc" /> - - <!-- set global properties for this build --> - <property environment="env"/> - <property file="build.properties" /> - <condition property="gate.home" value="${env.GATE_HOME}"> - <isset property="env.GATE_HOME" /> - </condition> - - <property name="gate.home" location="../.." /> - <property name="gate.jar" location="${gate.home}/bin/gate.jar" /> - <property name="gate.lib" location="${gate.home}/lib" /> - - <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc"> - <classpath> - <fileset dir="lib" includes="groovy-all*.jar"/> - </classpath> - </taskdef> - - - <path id="classpath"> - <pathelement location="${gate.jar}" /> - <fileset dir="${gate.lib}"> - <include name="**/*.jar" /> - <include name="**/*.zip" /> - </fileset> - <fileset dir="lib"> - <include name="*.jar"/> - </fileset> - </path> - - - <target name="init"> - <!-- Create the time stamp --> - <tstamp/> - <!-- Create the build directory structure used by compile --> - <mkdir dir="${build}"/> - </target> - - <target name="compile" depends="init" - description="compile the source " > - <!-- Compile the java and Groovy code from ${src} into ${build} --> - <groovyc srcdir="${src}" destdir="${build}"> - <classpath refid="classpath"/> - <javac debug="true" debuglevel="lines,source" source="1.6" target="1.6"> - </javac> - </groovyc> - </target> - - <target name="copy.resources" depends="init" - description="Copy non-source files from src to build"> - <copy todir="${build}"> - <fileset dir="${src}" excludes="**/*.java, **/*.groovy" /> - </copy> - </target> - - <!-- Build JavaDoc documentation --> - <target name="doc.prepare"> - <mkdir dir="${javadoc.dir}" /> - </target> - - <target name="javadoc" depends="doc.prepare"> - <javadoc destdir="${javadoc.dir}" packagenames="*" - classpathref="classpath" - encoding="UTF-8" - windowtitle="${plugin.name} JavaDoc" - source="1.6"> - <sourcepath> - <pathelement location="${src}" /> - </sourcepath> - <link href="http://docs.oracle.com/javase/6/docs/api/" /> - <link href="http://gate.ac.uk/gate/doc/javadoc/" /> - </javadoc> - </target> - - - <target name="dist" depends="compile, copy.resources" - description="generate the distribution" > - <!-- Create the distribution directory --> - <mkdir dir="${dist}/lib"/> - - <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> - <jar jarfile="${jar.location}" basedir="${build}"/> - </target> - - <target name="clean.classes" - description="clean up" > - <!-- Delete the ${build} and ${dist} directory trees --> - <delete dir="${build}"/> - <delete dir="${dist}"/> - </target> - - <target name="clean" depends="clean.classes" > - <!-- full clean also removes the generated JAR file --> - <delete file="${jar.location}" /> - </target> - - <!-- Targets used by the main GATE build file --> - <target name="build" depends="dist" /> - <target name="test" /> - <target name="distro.prepare" depends="clean.classes" /> -</project> - Deleted: gate/branches/sawdust2/plugins/Groovy/creole.xml =================================================================== --- gate/branches/sawdust2/plugins/Groovy/creole.xml 2016-08-22 11:09:31 UTC (rev 19537) +++ gate/branches/sawdust2/plugins/Groovy/creole.xml 2016-08-22 11:10:08 UTC (rev 19538) @@ -1,5 +0,0 @@ -<?xml version="1.0"?> -<CREOLE-DIRECTORY> - <JAR SCAN="true">groovy-gate.jar</JAR> - <JAR>lib/groovy-all-2.4.4.jar</JAR> -</CREOLE-DIRECTORY> Added: gate/branches/sawdust2/plugins/Groovy/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/Groovy/pom.xml (rev 0) +++ gate/branches/sawdust2/plugins/Groovy/pom.xml 2016-08-22 11:10:08 UTC (rev 19538) @@ -0,0 +1,66 @@ + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>base-plugin</artifactId> + <!-- this should be the version of GATE you wish to build against --> + <version>9.0-SNAPSHOT</version> + </parent> + + <!-- this is the description of this plugin --> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>groovy</artifactId> + <version>9.0-SNAPSHOT</version> + + <licenses> + <license> + <name>GNU Lesser General Public License (LGPL), Version 3</name> + <url>http://www.gnu.org/licenses/lgpl-3.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <organization> + <name>GATE</name> + <url>http://gate.ac.uk</url> + </organization> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.1</version> + <configuration> + <compilerId>groovy-eclipse-compiler</compilerId> + </configuration> + <dependencies> + <dependency> + <groupId>org.codehaus.groovy</groupId> + <artifactId>groovy-eclipse-compiler</artifactId> + <version>2.9.2-01</version> + </dependency> + <dependency> + <groupId>org.codehaus.groovy</groupId> + <artifactId>groovy-eclipse-batch</artifactId> + <version>2.4.3-01</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <!-- add any other libraries your plugin depends on. Any other GATE plugins + you depend on at compile time should use the provided scope --> + <dependency> + <groupId>org.codehaus.groovy</groupId> + <artifactId>groovy-all</artifactId> + <version>2.4.4</version> + </dependency> + </dependencies> + +</project> Deleted: gate/branches/sawdust2/plugins/Groovy/src/main/java/gate/groovy/script-pr.png =================================================================== (Binary files differ) Deleted: gate/branches/sawdust2/plugins/Groovy/src/main/java/gate/groovy/scriptable-controller.png =================================================================== (Binary files differ) Copied: gate/branches/sawdust2/plugins/Groovy/src/main/resources/creole.xml (from rev 19535, gate/branches/sawdust2/plugins/Groovy/creole.xml) =================================================================== --- gate/branches/sawdust2/plugins/Groovy/src/main/resources/creole.xml (rev 0) +++ gate/branches/sawdust2/plugins/Groovy/src/main/resources/creole.xml 2016-08-22 11:10:08 UTC (rev 19538) @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<CREOLE-DIRECTORY> + +</CREOLE-DIRECTORY> Copied: gate/branches/sawdust2/plugins/Groovy/src/main/resources/gate/groovy/script-pr.png (from rev 19535, gate/branches/sawdust2/plugins/Groovy/src/gate/groovy/script-pr.png) =================================================================== (Binary files differ) Copied: gate/branches/sawdust2/plugins/Groovy/src/main/resources/gate/groovy/scriptable-controller.png (from rev 19535, gate/branches/sawdust2/plugins/Groovy/src/gate/groovy/scriptable-controller.png) =================================================================== (Binary files differ) Modified: gate/branches/sawdust2/plugins/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/pom.xml 2016-08-22 11:09:31 UTC (rev 19537) +++ gate/branches/sawdust2/plugins/pom.xml 2016-08-22 11:10:08 UTC (rev 19538) @@ -47,5 +47,6 @@ <module>Tagger_NP_Chunking</module> <module>Stanford_CoreNLP</module> <module>JAPE_Plus</module> + <module>Groovy</module> </modules> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs