Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 70065 invoked from network); 5 Sep 2008 15:10:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2008 15:10:35 -0000 Received: (qmail 58092 invoked by uid 500); 5 Sep 2008 15:10:33 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 57738 invoked by uid 500); 5 Sep 2008 15:10:32 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 57727 invoked by uid 99); 5 Sep 2008 15:10:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2008 08:10:32 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2008 15:09:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kbcwl-0003dq-EI for dev@ant.apache.org; Fri, 05 Sep 2008 08:10:03 -0700 Message-ID: <19333329.post@talk.nabble.com> Date: Fri, 5 Sep 2008 08:10:03 -0700 (PDT) From: rjack2 To: dev@ant.apache.org Subject: Re: File Name wiht NLS Special Characters In-Reply-To: <19202928.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: rjack2@gmail.com References: <19152318.post@talk.nabble.com> <19158562.post@talk.nabble.com> <19202928.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Folks, After Stefan pointed out that Ant has it's own Apt task I seem to have this working. I've created a target that includes the apt tasks below. I had to break my "Beans" out individually because my web methods throws "Exception" and the task can not seem to overwrite the generated Exception. Additionall= y we use UTF-8 encoding for our source files. =09 =09 =09=09 =09=09 =09 =09 =09 =09 =09 =09=09 =09=09 =09 =09 =09 Thanks for your help and hopefully this may help others. Robert Jackson rjack2 wrote: >=20 > This seems to be a problem because apt uses the command line interface to > the OS. I wonder if there is a way to run the annotations using javac 1.= 6 > rather than apt. >=20 > It looks like a part of the problem is the windows "codepage" apparently= =20 > onl all of our=20 > machines are defaulted to 437.=20 >=20 > Wehn I run this code with the codepage changed to cp1252. It seems to > work.=20 > Still now sure why I have to wrap it in a "for" loop. >=20 > REM Change code page to 1252 > chcp 1252 >=20 > cd /d "C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\c2s= " >=20 >=20 > for /F "delims=3D" %%a in ('dir /b *_Bean.java') do ( > echo FileName=3D%%a > =20 > C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\classes\P3= 06\c2s\jaxws > /q > =09C:\jdk1.6.0.04\bin\apt.exe %%a -d ..... >=20 >=20 > rjack2 wrote: >>=20 >>=20 >>=20 >> Stefan Bodewig wrote: >>>=20 >>> On Mon, 25 Aug 2008, wrote: >>>=20 >>>> Folks, >>>>=20 >>>> I'm trying to run the Jax-ws APT ant task on file with a NLS name: >>>>=20 >>>> S_BASIC_=C3=83=C3=91=C3=91=C3=96=C3=8F=C3=91G_Bean.java >>>=20 >>> I don't think you are asking on the correct list. There may be people >>> on the user list who use the same task (I don't even know it) and can >>> help. >>>=20 >>> Since I don't know how the task is implemented, I can only guess. If >>> you run Ant in verbose mode, does it give you any hint on how it >>> invokes apt? Does it use a command line or does it invoke it via a >>> Java API inside the Ant process? If the former is used, does the same >>> command line work if you use it outside of Ant? >>>=20 >>> Stefan >>>=20 >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org >>> For additional commands, e-mail: dev-help@ant.apache.org >>>=20 >>>=20 >>>=20 >>=20 >> Now that you mention it, that' probably the problem. Apt and Wsgen both >> appear to use the command line. Dos seems to pass them back he wrong fil= e >> name unless I use something like S_*_Bean.java. Apt also seems to have >> problems reading the NLS characters in the file name. >>=20 >> Regards, >>=20 >> Robert Jackson >>=20 >>=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/File-Name-wiht--NLS-Spe= cial-Characters-tp19152318p19333329.html Sent from the Ant - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org