Revision: 19998
http://sourceforge.net/p/gate/code/19998
Author: markagreenwood
Date: 2017-01-26 18:20:17 +0000 (Thu, 26 Jan 2017)
Log Message:
-----------
helps if I check in changes once I've fixed things!
Modified Paths:
--------------
gate/branches/sawdust2/Test-Utils/src/main/java/gate/test/GATEPluginTestCase.java
Modified:
gate/branches/sawdust2/Test-Utils/src/main/java/gate/test/GATEPluginTestCase.java
===================================================================
---
gate/branches/sawdust2/Test-Utils/src/main/java/gate/test/GATEPluginTestCase.java
2017-01-26 18:04:47 UTC (rev 19997)
+++
gate/branches/sawdust2/Test-Utils/src/main/java/gate/test/GATEPluginTestCase.java
2017-01-26 18:20:17 UTC (rev 19998)
@@ -14,17 +14,10 @@
package gate.test;
-import gate.Gate;
-import gate.creole.Plugin;
-import gate.Gate.ResourceInfo;
-import gate.util.Files;
-import gate.util.asm.ClassReader;
-
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.MalformedURLException;
-import java.net.URISyntaxException;
import java.net.URL;
import java.util.HashSet;
import java.util.Properties;
@@ -34,6 +27,11 @@
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
+import gate.Gate;
+import gate.Gate.ResourceInfo;
+import gate.creole.Plugin;
+import gate.util.Files;
+import gate.util.asm.ClassReader;
import junit.framework.TestCase;
public class GATEPluginTestCase extends TestCase {
@@ -72,12 +70,7 @@
String version) throws MalformedURLException {
super(group, artifact, version);
this.creoleFile = creoleFile;
- try {
- this.baseURL = (new URL(creoleFile.toURI().toURL(), ".")).toURI();
- } catch(URISyntaxException e) {
- //this should be impossible
- throw new RuntimeException(e);
- }
+ this.baseURL = (new URL(creoleFile.toURI().toURL(),
"."));
}
@Override
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs