Re: java task question

2007-01-26 Thread Peter Reilly
On 1/26/07, Leo <[EMAIL PROTECTED]> wrote: Hi, I have recently started to use Ant on Eclipse IDE. I am trying to run a file called HelloWorld located in the jse.core package. The build.xml is located at: C:\dev\eclipse\workspace32\jse-core\build.xml HelloWorld.java and HelloWorld.cla

java task question

2007-01-26 Thread Leo
Hi, I have recently started to use Ant on Eclipse IDE. I am trying to run a file called HelloWorld located in the jse.core package. The build.xml is located at: C:\dev\eclipse\workspace32\jse-core\build.xml HelloWorld.java and HelloWorld.class is located at: C:\dev\eclipse\workspace3

Re: java task question for ant 1.6.5

2006-10-27 Thread Peter Reilly
On 10/27/06, Dominique Devienne <[EMAIL PROTECTED]> wrote: On 10/27/06, Jeff Holt <[EMAIL PROTECTED]> wrote: > The reason I don't want to use is that I have to qualify the > executable path. Otherwise, for some yet unknown reason, ant executes > /usr/bin/java rather than the one in the PATH. And

RE: java task question for ant 1.6.5

2006-10-27 Thread Jeff Holt
Yes, java.home works. I see that I am definitely not the first person to experience it. Thanks, Dom. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 4:15 PM To: Ant Users List Subject: Re: java task question for ant 1.6.5 On 10/27/06

Re: java task question for ant 1.6.5

2006-10-27 Thread Dominique Devienne
On 10/27/06, Jeff Holt <[EMAIL PROTECTED]> wrote: The reason I don't want to use is that I have to qualify the executable path. Otherwise, for some yet unknown reason, ant executes /usr/bin/java rather than the one in the PATH. And, of course, /usr/bin/java, is not appropriate. Both and have

RE: java task question for ant 1.6.5

2006-10-27 Thread Jeff Holt
looked but didn't see where I had to change anything else. I just assumed jre is a built in property namespace. Bad assumption? -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 3:24 PM To: Ant Users List Subject: Re: java task questio

Re: java task question for ant 1.6.5

2006-10-27 Thread Dominique Devienne
On 10/27/06, Jeff Holt <[EMAIL PROTECTED]> wrote: To make my build script a bit less susceptible to environmental errors, I'd like to rewrite the following task: Simply replace ${env.JAVA_HOME} by ${jre.home}, and it will use the same JRE or JDK used by Ant itself. is better than + in this c

RE: java task question for ant 1.6.5

2006-10-27 Thread Jeff Holt
Ah, yes. I forgot all about that one. It probably will do the trick. Thanks, Matt. -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 2:57 PM To: Ant Users List Subject: Re: java task question for ant 1.6.5 You might look at using ant-contrib&#

Re: java task question for ant 1.6.5

2006-10-27 Thread Matt Benson
You might look at using ant-contrib's task with . -Matt --- Jeff Holt <[EMAIL PROTECTED]> wrote: > To make my build script a bit less susceptible to > environmental errors, > I'd like to rewrite the following task: > > > > > > > > > > > >

java task question for ant 1.6.5

2006-10-27 Thread Jeff Holt
To make my build script a bit less susceptible to environmental errors, I'd like to rewrite the following task: Here is something that probably conveys what I want: