Is there any task in ant to simulate this simple code of java , reading
one file and extracting content to write into another... in integrate
this small java code , I will have to do lot of work.. was wondering if
its possible through ant itself
BufferedReader in = new BufferedReader(new
FileReader("C:\\WrapperCabInstaller.log"));
BufferedWriter out = new BufferedWriter(new
FileWriter("C:\\Cab_version_information.log"));
String str;
while ((str = in.readLine()) != null) {
if(str.indexOf("[java] Cab") != -1){
System.out.println(str);
out.write(str);
out.newLine();
}
else if(str.indexOf("version") != -1)
{
System.out.println(str);
out.write(str);
out.newLine();
}