From 19b1fdf5ee917bce20d77f51ea535eeb518ef041 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 28 Aug 2007 15:14:31 +0000 Subject: [PATCH] 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 --- src/uk/ac/vamsas/objects/utils/AppDataReference.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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