ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohith Ashok <roh...@disinfo.net>
Subject ExecTask support multiple output Encodings
Date Fri, 30 Jan 2004 02:20:57 GMT
Hi,

I'm working with Ant on z/OS, and I'm running ant with the following parms:
-Dfile.encoding=ISO-8859-1
-Xnoargsconversion

as a result Ant is running in "ASCII" mode, on the normally EBCDIC system.

When I use the ExecTask, the output stream of the subprocess
is EBCDIC, as it choses the system's encoding. Would a submission that included
the addition of an outputEncoding attribute on the ExecTask be entertained,
such that if the attribute exists a different Output stream is created. 

If that is not acceptable, could the:
    private ByteArrayOutputStream baos = null;

in ExecTask be made protected, as opposed to private, such that a class could
easily extend the ExecTask, and not have to rewrite the prepareExec to call a
new runExecute, since the one in ExecTask is final and could instead just
override the createHandler() method and change the  ByteArrayOutputStream in
the parent class.

If either solution is found acceptable, I can submit the code, if I'm going
about this the entirely wrong way, please let me know.

regards
Rohith

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message