Changeset 5214
- Timestamp:
- 08/08/08 18:02:49 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/groovyforms/src/org/openmrs/module/groovyforms/util/GroovyFormsUtil.groovy
r5212 r5214 216 216 static File moveJSPIntoContextPath(String id, ServletContext context) { 217 217 def sb = new StringBuilder() 218 def src = getViewFile(id).newInputStream()219 218 def realPath = context.getRealPath("") 220 219 sb << realPath << "${File.separator}WEB-INF${File.separator}view${File.separator}module${File.separator}groovyforms${File.separator}forms${File.separator}$id" … … 224 223 } 225 224 sb << "${File.separator}form.jsp" 226 f = new File(sb.toString()) 227 def dst = f.newOutputStream() 228 OpenmrsUtil.copyFile src, dst 225 f = new File(sb.toString()) << getViewFile(id).text 229 226 f 230 227 }