applied LGPLv3 and source code formatting.
[vamsas.git] / src / uk / ac / vamsas / test / simpleclient / TestSessionURN.java
index e0759e2..b7434d3 100644 (file)
@@ -1,29 +1,49 @@
-package uk.ac.vamsas.test.simpleclient;
-
-import java.io.File;
-
-import uk.ac.vamsas.client.simpleclient.SessionUrn;
-
-/**
- * Tests simple client sessionURN creation 
- * 
- *
- */
-public class TestSessionURN {
-  
-  public static void main (String [] arg) throws Exception
-  {
-    String file = null;
-   if (arg == null || arg.length ==0)
-     file = ".";
-     else
-       file = arg[0];
-        File f = new File (file);
-        SessionUrn urn = new SessionUrn(f);
-        System.out.println("urn "+urn.getSessionUrn());
-        System.out.println("urn  file "+ urn.asFile().getAbsolutePath());
-        System.out.println("urn  file  exists?"+ urn.asFile().exists());
-  }
-
-}
+/*\r
+ * This file is part of the Vamsas Client version 0.1. \r
+ * Copyright 2009 by Jim Procter, Iain Milne, Pierre Marguerite, \r
+ *  Andrew Waterhouse and Dominik Lindner.\r
+ * \r
+ * Earlier versions have also been incorporated into Jalview version 2.4 \r
+ * since 2008, and TOPALi version 2 since 2007.\r
+ * \r
+ * The Vamsas Client is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU Lesser General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *  \r
+ * The Vamsas Client is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU Lesser General Public License for more details.\r
+ * \r
+ * You should have received a copy of the GNU Lesser General Public License\r
+ * along with the Vamsas Client.  If not, see <http://www.gnu.org/licenses/>.\r
+ */\r
+package uk.ac.vamsas.test.simpleclient;\r
+\r
+import java.io.File;\r
+\r
+import uk.ac.vamsas.client.simpleclient.SessionUrn;\r
+\r
+/**\r
+ * Tests simple client sessionURN creation\r
+ * \r
+ * \r
+ */\r
+public class TestSessionURN {\r
+\r
+  public static void main(String[] arg) throws Exception {\r
+    String file = null;\r
+    if (arg == null || arg.length == 0)\r
+      file = ".";\r
+    else\r
+      file = arg[0];\r
+\r
+    File f = new File(file);\r
+    SessionUrn urn = new SessionUrn(f);\r
+    System.out.println("urn " + urn.getSessionUrn());\r
+    System.out.println("urn  file " + urn.asFile().getAbsolutePath());\r
+    System.out.println("urn  file  exists?" + urn.asFile().exists());\r
+  }\r
+\r
+}\r