1 28 29 package com.caucho.make; 30 31 import com.caucho.Version; 32 import com.caucho.vfs.PersistentDependency; 33 34 import java.util.logging.Logger ; 35 36 39 public class VersionDependency implements PersistentDependency { 40 private final static Logger log 41 = Logger.getLogger(VersionDependency.class.getName()); 42 43 private String _version; 44 45 48 public VersionDependency(String version) 49 { 50 _version = version; 51 } 52 53 56 public VersionDependency() 57 { 58 _version = Version.FULL_VERSION; 59 } 60 61 64 public boolean isModified() 65 { 66 return ! Version.FULL_VERSION.equals(_version); 67 } 68 69 72 public String getJavaCreateString() 73 { 74 return ("new com.caucho.make.VersionDependency(" + 75 "\"" + _version + "\")"); 76 } 77 } 78 | Popular Tags |