1 23 24 29 30 package com.sun.enterprise.deployment.backend; 31 32 import java.io.*; 33 import java.util.*; 34 import com.sun.enterprise.util.io.FileUtils; 35 36 41 42 abstract public class DeployableObjectInfo { 43 44 protected DeployableObjectInfo(File rootPath, String name) 45 { 46 this(rootPath, name, null); 47 } 48 49 51 protected DeployableObjectInfo(File rootPath, String name, File archive) 52 { 53 this.rootPath = rootPath; 54 this.name = name; 55 this.archive = archive; 56 } 57 58 60 65 public String toString() 66 { 67 StringBuffer sb = new StringBuffer ("*********** Archive Info Dump ***********\n"); 68 69 sb.append("Root Path: " + getRootPath() + '\n'); 70 sb.append("Name: " + getName() + '\n'); 71 72 if(archive != null) 73 sb.append("Original Archive: " + getArchive() + '\n'); 74 75 return sb.toString(); 76 } 77 78 80 83 public String getName() 84 { 85 return name; 86 } 87 88 89 91 94 public File getRootPath() 95 { 96 return rootPath; 97 } 98 99 101 File getArchive() 102 { 103 return archive; 104 } 105 106 108 private File rootPath; 109 private String name; 110 private File archive = null; 111 } 112 | Popular Tags |