Gzip can take parameters, as described here. I would like to gzip some files from maven using ant-run, but the documentation does not explain how to pass parameters.
Is this possible, and if yes, how to proceed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since ant gzip task does not provide the necessary attributes for you to pass your arguments, you shall use the exec task :
In addition to this, since you want portability you should use conditional execution depending on the os. If you need more help let me know.