start rewriting to remove ant dependency

This commit is contained in:
John Bintz 2009-12-14 15:50:18 -05:00
parent dfaca096a9
commit 9ba79ef3cf
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
class PureMVCGen
def PureMVCGen.filter(template_file, target_file, properties)
if File.exists?(template_file)
ofh = File.new(target_file, 'w')
File.readlines(tempalte_file).each do |line|
properties.each { |p,v| line.gsub!("@#{p}@", v) }
ofh.puts line
end
ofh.close
end
end
def PureMVCGen.read_properties
end
end