From: jprocter Date: Tue, 28 Aug 2007 15:14:31 +0000 (+0000) Subject: more rar friendly appdata reference name and uniqueness check, X-Git-Tag: Release_0.2~74 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=19b1fdf5ee917bce20d77f51ea535eeb518ef041;p=vamsas.git more rar friendly appdata reference name and uniqueness check, git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@446 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/objects/utils/AppDataReference.java b/src/uk/ac/vamsas/objects/utils/AppDataReference.java index d982e1f..b1cf4f2 100644 --- a/src/uk/ac/vamsas/objects/utils/AppDataReference.java +++ b/src/uk/ac/vamsas/objects/utils/AppDataReference.java @@ -146,15 +146,14 @@ public class AppDataReference { * @param entry base application reference to make unique */ public static String uniqueAppDataReference(VamsasDocument dest,String base) { - String urn = new String(base); - + String urn = base.replace('/','.').replace('\\','.').replace(':', '_'); + int v = 1; for (int i=0, j=dest.getApplicationDataCount(); i