ANT :use ant send mail in java code occur erro

2006-12-11 Thread heliquan
Hi, I use ant in java code to send e-mail,but some error I can't find the solution. In java code ,I had new a "org.apache.tools.ant.taskdefs.email.EmailTask" class object to send email, but occur an "454 5.7.3 Client was not authenticated."excption. The java code like this: Project

Re: Access source file from mapper

2006-12-11 Thread Matt Benson
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: > > I did not find anything :-(. I was just hoping > there would be a trick somewhere. > > Maybe this is too weird, but this could possibly > work: Right; the problem is that a is, in longhand, a "filename mapper." NAME being the key. Mappers

Re: ant javac version question

2006-12-11 Thread Scot P. Floess
You can certainly specify which JDK to use in the task. However, that may not fix your runtime issue...if an older version of the JDK is used to run against it... Yes, specifying may help... Again, you need to ensure the VM being used when running against the compiled class is the correct

Re: Access source file from mapper

2006-12-11 Thread Dominique Devienne
I did not find anything :-(. I was just hoping there would be a trick somewhere. Maybe this is too weird, but this could possibly work: 1) Write a custom FileSelector that builds a map of "source file relative name"s (like the ones seen by the mapper) to "File"s map. Either id that selector, or

Re: ant javac version question

2006-12-11 Thread glenn opdycke-hansen
Right, I know that jdk 1.4.2 works. I suspect that some other jdk version is creeping into the class/jar file. I specified JAVA_HOME for the 1.4.2 jdk. I also suggested to the developer to change the path. (I heard that that did not work) java -version also states that 1.4.2 will be used. Is the

Re: Access source file from mapper

2006-12-11 Thread Patrick Martin
Hello, On 12/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >1. I miss the source folder. As an example task: > > > > >Here, the variable "source" would be something matched by >*.JPG. It does not include the folder C:\B. mmmh ... that works for me: f

Re: ant javac version question

2006-12-11 Thread Scot P. Floess
Well there is your problem...the JVM you are trying to use to run (not compile) does not support the version that was compiled. Meaning...let's say you compiled using the JDK 1.5 but attempted to run using the JDK 1.2.2 - you'd get the error listed. Somehow you are compiling with a newer JDK

Re: ant javac version question

2006-12-11 Thread glenn opdycke-hansen
Replies below. On 12/11/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: What type of exceptions are you getting? java.lang.Exception: Error in [ProcessDefinitions/Shared/Logging/MaskLogData.process/MaskPayload] BW-JAVA-100030 Unable to obtain information for method [maskElementsInPayload] from t

Re: ant javac version question

2006-12-11 Thread Scot P. Floess
What type of exceptions are you getting? If you use the class file outside the jar file...does that work? Is your harddrive full? glenn opdycke-hansen wrote: We are seeing that the javac can produce an unusable .class file. One PC will build the java source OK, but the other PC does not. The

ant javac version question

2006-12-11 Thread glenn opdycke-hansen
We are seeing that the javac can produce an unusable .class file. One PC will build the java source OK, but the other PC does not. The resulting JAR file has a different size and there are exceptions when the other jar is used. We set JAVA_HOME to the jdk (1.4.2_13) on both PCs. Has anyone seen

Re: Recursive Property Expansion

2006-12-11 Thread Dominique Devienne
On 12/8/06, Jack J. Woehr <[EMAIL PROTECTED]> wrote: Hmm, it just seems like five years ago. It was actually 2004. It's still there in http://issues.apache.org/bugzilla/show_bug.cgi? id=29347 > Sometime in 2001 we were all discussing recursive property expansion: Welcome back Jack. I've kept y

AW: Access source file from mapper

2006-12-11 Thread Jan.Materne
>1. I miss the source folder. As an example task: > > > > >Here, the variable "source" would be something matched by >*.JPG. It does not include the folder C:\B. mmmh ... that works for me: f = new java.io.File(source); project.log(

Re: Access source file from mapper

2006-12-11 Thread Patrick Martin
Hello, That's basically what I tried actually, but I am facing an issue where the line jpgFile = new java.io.File(source); does not reference the file I want because: 1. I miss the source folder. As an example task: Here, the variable "source" would be something matched by *.JPG. It does not