Sponsored Content
Top Forums Shell Programming and Scripting Output encoding in copy with ant is not working Post 302893392 by anand_bh on Wednesday 19th of March 2014 06:02:01 AM
Old 03-19-2014
Output encoding in copy with ant is not working

Not sure whether I can post 'ant' related question here.
There is a requirement to convert files to UTF-8 format.

So, I tried this simple ant script.

Code:
<project name="try_copy" basedir="." default="copy_this">

        <target name="copy_this">
        <copy file="myfile.txt" tofile="mycopy.txt" encoding="ASCII" outputencoding="UTF-8" />
        </target>

</project>

But even after this, output encoding is not UTF-8 in output file.

What am I doing wrong?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I want to copy the text output from a 'nohup.out' file.

Hello, I have a nohup.out file that, when executed, outputs a spreadsheet file with four-to-seven columns of number. I want to copy this output (in its entirety), so that I could then paste it on excel@ , or Notepad@. Please help, thanks. (3 Replies)
Discussion started by: Iamthe great
3 Replies

2. UNIX for Dummies Questions & Answers

Copy Command in Script Not Working

Hi, I have about enough UNIX knowledge to fill a thimble, but when a co-worker left I inherited an interface that runs Informatica on a UNIX box. I like UNIX, but my lack of skill is a real hindrance right now and I need to be able to archive the 9 csv files that are put in a directory by the FTP... (10 Replies)
Discussion started by: JeffR
10 Replies

3. UNIX for Advanced & Expert Users

Functionality of ant build and ant deploy unix commands

I have made some code changes in the corresponding java file for date formatting purpose so that it supports upgraded sybase version from 12.6 to 12.7 and have build the code and deployed using the following UNIX commands. ant build ant deploy. "ant build" executes the build.xml which is... (1 Reply)
Discussion started by: vmpcit
1 Replies

4. Windows & DOS: Issues & Discussions

ANT: Telnet is not working

I am trying the below ANT telnet task: <telnet userid="appldev" password="techm123" server="${BT_Server}"> <read>/u01/appldev/devappl/po/11.5.0/reports</read> <!--write>cd /u01/appldev/devappl/po/11.5.0/reports/</write--> <write>ls</write> <read... (0 Replies)
Discussion started by: Dip
0 Replies

5. Shell Programming and Scripting

How to find the file encoding and updating the file encoding?

Hi, I am beginner to Unix. My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8. Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies

6. Shell Programming and Scripting

Need help to check the copy % from following output

I have a scenario where I need to wait for the copy to be 100% in the following output There can be multiple devices in the copy session so I need to wait till everything becomes 100%, also we can look for the protected tracks t0 become 0 opey # symclone -sid 822 -v -f... (2 Replies)
Discussion started by: rajsan
2 Replies

7. Shell Programming and Scripting

Nifty (and non-working) File Copy Using ls

Greetings :) Got a basic one to muddle through tonight; and hoping for a smidgen of help 'long the way ;) Here 'tis:ls ./dir1/ | grep -i .jpg | xargs cp -f ./dir1/$1 ../../dir2/$1Simple enough; and to this amateur eye, it looks like things should work pretty well. But, of course, it tanks... (10 Replies)
Discussion started by: LinQ
10 Replies

8. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

9. Solaris

View file encoding then change encoding.

Hi all!! I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m expecting / looking an output as UTF8 or ANSI / ASCII Is there command to display the files encoding? Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies
ant-phone(1)							 ANT Manual Pages						      ant-phone(1)

NAME
ant-phone - an interactive ISDN telephone application SYNOPSIS
ant-phone [options] DESCRIPTION
ant-phone is part of ANT (ANT is Not a Telephone). It let's you make and receive telephone calls and talk via sound devices. It uses CAPI 2.0 as ISDN interface. OPTIONS
ant-phone accepts the following options: -h, --help Show summary of options -v, --version Print version information -r, --cleanup Remove stale socket file left by accident by a previous run of ANT. You only need this option if ANT says: "local bind: Address already in use" -d, --debug[=debuglevel] Print additional runtime debugging data to stdout, debuglevel = 1..4 -i, --soundin=device ALSA device name for input (recording), default: "default" -o, --soundout=device ALSA device name for output (playback), default: "default" -m, --msn=msn identifying MSN (for outgoing calls), 0 for master MSN of this termination/port, default: 0 -l, --msns=msns MSNs to listen on, semicolon-separated list or '*', default: * -c, --call=number Make a running instance of ANT make a call to the specified number, useful for calling from an external address book application -s, --sleep Shut down CAPI connection to prepare for removal of broken kernel modules, which don't survive suspend/restore. -w, --wakeup Restore CAPI connection after ISDN modules loaded again. The connection will be also restored by dialing a number, but before the connection is restored, you won't be able to accept calls. NOTES
If the used sound devices (arguments of --soundin and --soundout) are equal, a full duplex sound device is needed. FILES
~/.ant-phone/history the last dialed numbers ~/.ant-phone/options user specific options file ~/.ant-phone/callerid saved history of incoming and outgoing calls ~/.ant-phone/recordings/* recordings of recorded phone calls BUGS
Caller ID stores hangup reason localized. This will break, if someone uses letters outside of English alphabet for translation of hangup reasons. AUTHORS
ANT was developed by Roland Stigge <stigge@antcom.de>, based on ideas from IVCALL, Copyright 2002 Lennart Poettering. G.711 handling by Sun Microsystems. Contributions by Joerg Mayer <jmayer@loplof.de>, Lars Volkhardt <Lars.Volkhardt@uni-konstanz.de>, Ivan Schreter <schreter@gmx.net>. Version 0.1.0 27 April 2003 ant-phone(1)
All times are GMT -4. The time now is 03:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy