Adding header using ant.concat in gradle not working


(rajesh.eq) #1

I am trying to concatenate files and finally add header and footer to the concatenated file using ant.concat inside gradle script. Though the concatenated file is created header and footer is missing in the output file.

ant.concat(destfile: “output.txt”, force: “true”){

header(filtering: “no”, trimleading: “yes”){

“header text here”

}

fileset(dir: “$buildDir”, includes: “*.txt”, casesensitive: “no”)

footer(filtering: “no”, trimleading: “yes”){

“footer text here”

} }


(rajesh.eq) #2

ant.concat(destfile: “output.txt”, force: “true”){

header(filtering: “no”, trimleading: “yes”){

“header text here”

}

fileset(dir: “$buildDir”, includes: “*.txt”, casesensitive: “no”)

footer(filtering: “no”, trimleading: “yes”){

“footer text here”

}

}


(rajesh.eq) #3

ant.concat(destfile: “output.txt”, force: “true”){

header(filtering: “no”, trimleading: “yes”){

“header text here”

}

fileset(dir: “$buildDir”, includes: “*.txt”, casesensitive: “no”)

footer(filtering: “no”, trimleading: “yes”){

“footer text here”

}

}