1 18 19 package org.apache.batik; 20 21 27 public final class Version { 28 public static final String LABEL_DEVELOPMENT_BUILD 29 = "development.build"; 30 31 37 public static String getVersion() { 38 String tagName = "$Name: batik-1_6 $"; 39 if (tagName.startsWith("$Name:")) { 40 tagName = tagName.substring(6, tagName.length()-1); 41 } else { 42 tagName = ""; 43 } 44 45 if(tagName.trim().intern().equals("")){ 46 tagName = LABEL_DEVELOPMENT_BUILD; 47 } 48 49 return tagName; 50 } 51 } 52 | Popular Tags |