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. Additionally we use UTF-8 encoding for our source files.
<apt encoding="UTF-8" includes="c2s\S_VIEWS_NOIM_EX_ÃÑÑÖÏÑG_Bean.java" target="1.5" source="1.5" srcdir="C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\" destdir="C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\classes\P303"> <classpath> <path refid="classpath.jaxws"></path> <path refid="classpath.base"></path> <pathelement location="C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\"></pathelement> </classpath> </apt> <apt encoding="UTF-8" includes="c2s\S_VIEWS_IM_EX_ÃÑÑÖÏÑG_Bean.java" target="1.5" source="1.5" srcdir="C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\" destdir="C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\classes\P303"> <classpath> <path refid="classpath.jaxws"></path> <path refid="classpath.base"></path> <pathelement location="C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\"></pathelement> </classpath> </apt> Thanks for your help and hopefully this may help others. Robert Jackson rjack2 wrote: > > 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. > > It looks like a part of the problem is the windows "codepage" apparently > onl all of our > machines are defaulted to 437. > > Wehn I run this code with the codepage changed to cp1252. It seems to > work. > Still now sure why I have to wrap it in a "for" loop. > > REM Change code page to 1252 > chcp 1252 > > cd /d "C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\c2s" > > > for /F "delims=" %%a in ('dir /b *_Bean.java') do ( > echo FileName=%%a > > C:\downloads\data\CA\projects\gen_8_projects\COOP07ex.ief\java\classes\P306\c2s\jaxws > /q > C:\jdk1.6.0.04\bin\apt.exe %%a -d ..... > > > rjack2 wrote: >> >> >> >> Stefan Bodewig wrote: >>> >>> On Mon, 25 Aug 2008, <[EMAIL PROTECTED]> wrote: >>> >>>> Folks, >>>> >>>> I'm trying to run the Jax-ws APT ant task on file with a NLS name: >>>> >>>> S_BASIC_ÃÑÑÖÏÑG_Bean.java >>> >>> 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. >>> >>> 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? >>> >>> Stefan >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> 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 file >> name unless I use something like S_*_Bean.java. Apt also seems to have >> problems reading the NLS characters in the file name. >> >> Regards, >> >> Robert Jackson >> >> > > -- View this message in context: http://www.nabble.com/File-Name-wiht--NLS-Special-Characters-tp19152318p19333329.html Sent from the Ant - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]