| 1 28 29 package com.idaremedia.antx.mktemp; 30 31 import java.io.File ; 32 33 import org.apache.tools.ant.BuildException; 34 import org.apache.tools.ant.types.PropertySet; 35 import org.apache.tools.ant.types.Reference; 36 37 import com.idaremedia.antx.helpers.InnerString; 38 import com.idaremedia.antx.starters.StringItemListHandle; 39 40 70 71 public final class MkTempFile extends MkTempObject 72 { 73 76 public MkTempFile() 77 { 78 super(); 79 } 80 81 82 87 public void addLine(InnerString line) 88 { 89 require_(line!=null,"addLn- nonzro ln"); 90 getPrototypeLinesNoNull().add(line); 91 } 92 93 94 99 public void addLines(StringItemListHandle lines) 100 { 101 require_(lines!=null,"addLns- nonzro lns"); 102 getPrototypeLinesNoNull().add(lines); 103 } 104 105 106 113 public final void setLines(Reference ref) 114 { 115 StringItemListHandle lines = new StringItemListHandle(ref); 116 getPrototypeLinesNoNull().add(lines); 117 } 118 119 120 125 public void addConfiguredPropertySet(PropertySet propertyset) 126 { 127 require_(propertyset!=null,"addPropSet- nonzro pset"); 128 getPrototypeLinesNoNull().add(propertyset); 129 } 130 131 132 138 public void execute() throws BuildException 139 { 140 verifyInProject_("exec"); 141 142 File newFile = createFile(getInDir()); 143 144 saveFinalPath(newFile,true); 145 } 146 } 147 148 149 | Popular Tags |