You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Sibon Barman <si...@ss8.com> on 2001/01/19 15:28:16 UTC
question on an Ant property
I was looking at the build.xml that come with Ant. What does the following
property do:
<property name="build.compiler.emacs" value="on"/>
Also I saw there is no classpath defined in that script ---- does that mean
it gets the classpath from the os environment?
Cheers,
Sibon Barman
SS8 Networks, Inc.
Suite 500
495 March Road, Kanata,
Ontario K2K 3G1
*: (613)592-2100 ext:3281
*: sibon@ss8.com
Re: question on an Ant property
Posted by Stefan Bodewig <bo...@apache.org>.
Sibon Barman <si...@ss8.com> wrote:
> What does the following property do:
> <property name="build.compiler.emacs" value="on"/>
This is one of a couple of magic properties for Jikes. If you are
using jikes as your compiler (by setting yet another magic property
named build.compiler to jikes) this will enable jikes' +E switch
See
<http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/72/question_id/339>
and
<http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/72/question_id/742>.
> Also I saw there is no classpath defined in that script ---- does
> that mean it gets the classpath from the os environment?
Yes - well mostly. Ant 1.2 is not really consistent about that, some
tasks use the classpath of the environment, some don't. The current
CVS version is as inconsistent to be backwards compatible by default,
but you have a little bit of extra control.
There is a new magic property build.sysclasspath that you can set to a
couple of values:
"ignore" - Never use the os environment classpath for anything.
"only" - Always use the os environment classpath for anything, don't
use the explicit paths listed in the buildfile.
"first" - Prepend os environment classpath to any other classpath specified.
"last" - Append os environment classpath to any other classpath specified.
All this applies to tasks where you can specify a classpath. All other
tasks will use the classpath Ant has been invoked with and nothing
else.
Stefan