Revision: 19314
          http://sourceforge.net/p/gate/code/19314
Author:   markagreenwood
Date:     2016-05-13 08:39:44 +0000 (Fri, 13 May 2016)
Log Message:
-----------
don't hard code the local maven repo to my home directory (you idiot)

Modified Paths:
--------------
    gate/branches/sawdust2/src/main/java/gate/Plugin.java

Added Paths:
-----------
    gate/branches/sawdust2/src/main/resources/gate/resources/version.txt

Modified: gate/branches/sawdust2/src/main/java/gate/Plugin.java
===================================================================
--- gate/branches/sawdust2/src/main/java/gate/Plugin.java       2016-05-13 
01:22:12 UTC (rev 19313)
+++ gate/branches/sawdust2/src/main/java/gate/Plugin.java       2016-05-13 
08:39:44 UTC (rev 19314)
@@ -1,14 +1,6 @@
 package gate;
 
-import gate.Gate.ResourceInfo;
-import gate.creole.metadata.CreoleResource;
-import gate.util.asm.AnnotationVisitor;
-import gate.util.asm.ClassReader;
-import gate.util.asm.ClassVisitor;
-import gate.util.asm.Opcodes;
-import gate.util.asm.Type;
-import gate.util.asm.commons.EmptyVisitor;
-
+import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.Serializable;
@@ -55,9 +47,16 @@
 import org.jdom.Element;
 import org.jdom.JDOMException;
 import org.jdom.input.SAXBuilder;
-import org.jdom.output.Format;
-import org.jdom.output.XMLOutputter;
 
+import gate.Gate.ResourceInfo;
+import gate.creole.metadata.CreoleResource;
+import gate.util.asm.AnnotationVisitor;
+import gate.util.asm.ClassReader;
+import gate.util.asm.ClassVisitor;
+import gate.util.asm.Opcodes;
+import gate.util.asm.Type;
+import gate.util.asm.commons.EmptyVisitor;
+
 public abstract class Plugin {
   
   protected static final Logger log = Logger.getLogger(Plugin.class);
@@ -138,9 +137,6 @@
     try {
       org.jdom.Document creoleDoc = getCreoleXML();
       
-      XMLOutputter xmlOut = new XMLOutputter(Format.getPrettyFormat());
-      System.out.println(xmlOut.outputString(creoleDoc));
-      
       final Map<String, ResourceInfo> resInfos = new LinkedHashMap<String, 
ResourceInfo>();
       List<Element> jobsList = new ArrayList<Element>();
       List<String> jarsToScan = new ArrayList<String>();
@@ -509,7 +505,8 @@
       // LocalRepository localRepo = new
       // LocalRepository("target/local-repo");
       LocalRepository localRepo =
-              new LocalRepository("/home/mark/.m2/repository/");
+              new 
LocalRepository(System.getProperty("user.home")+File.separator+".m2"+File.separator+"repository/");
+      System.out.println(localRepo);
       repoSystemSession.setLocalRepositoryManager(getRepositorySystem()
               .newLocalRepositoryManager(repoSystemSession, localRepo));
 

Added: gate/branches/sawdust2/src/main/resources/gate/resources/version.txt
===================================================================
--- gate/branches/sawdust2/src/main/resources/gate/resources/version.txt        
                        (rev 0)
+++ gate/branches/sawdust2/src/main/resources/gate/resources/version.txt        
2016-05-13 08:39:44 UTC (rev 19314)
@@ -0,0 +1 @@
+${project.version}
\ No newline at end of file

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


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to