Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ant-dev] build.compiler problem in Eclipse

I had the same problem and then found the workaround of either add the

build.compiler property in the build file or set the property as an argument

when running Ant from Eclipse.  But I am looking for a generic way to 

run Ant in and outside Eclipse.

 

Is there a way to tell from the build file whether it is running inside or out of

Eclipse, so that we can set the property conditionally?

 

Thanks,

Bianca

-----Original Message-----
From: platform-ant-dev-admin@xxxxxxxxxxx
[mailto:platform-ant-dev-admin@xxxxxxxxxxx]On Behalf Of Maddison, David
Sent: Thursday, November 15, 2001 5:38 PM
To: 'platform-ant-dev@xxxxxxxxxxx'
Subject: RE: [platform-ant-dev] Compiler Problem


Yeeha! Thanks mark that fixed the problem!

BTW is this documented somewhere?  It would be nice if it worked without
amending the build script so that it works in and outside eclipse.

Thanks again,

Dave

>>  -----Original Message-----
>>  From: Mark Ayad [mailto:mayad@xxxxxxxxxx]
>>  Sent: 15 November 2001 16:22
>>  To: platform-ant-dev@xxxxxxxxxxx
>>  Subject: RE: [platform-ant-dev] Compiler Problem
>> 
>> 
>>  David
>> 
>>   <!-- set global properties for this build -->
>>   <property name="build.compiler"
>>  value="org.eclipse.pde.internal.core.JDTCompilerAdapter"/>
>> 
>>   Well it worked for me.
>> 
>>   Regards
>> 
>>   Mark
>> 
>> 
>>  -----Original Message-----
>>  From: platform-ant-dev-admin@xxxxxxxxxxx
>>  [mailto:platform-ant-dev-admin@xxxxxxxxxxx]On Behalf Of
>>  Maddison, David
>>  Sent: Thursday, November 15, 2001 5:05 PM
>>  To: 'platform-ant-dev@xxxxxxxxxxx'
>>  Subject: [platform-ant-dev] Compiler Problem
>> 
>> 
>>  Love the ANT integration, however whenever I try and run my
>>  build.xml file
>>  the ant console reports:
>> 
>>  BuildException:
>>  D:\programfiles\eclipse\workspace\Test\build.xml:13: Cannot
>>  use classic compiler, as it is not available A common
>>  solution is to set the
>>  environment variable JAVA_HOME to your jdk directory..
>> 
>>  However the JAVA_HOME variable is set (WinNT), I've even
>>  got the build file
>>  to echo the value.  The ant script works outside of eclipse.
>> 
>>  Am I doing something wrong or is this a known problem?
>> 
>>  Thanks,
>>  David Maddison <<<< D&B >>>>
>> 




Join the world’s largest e-mail service with MSN Hotmail. Click Here

Back to the top