You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Peng Yu <pe...@gmail.com> on 2012/09/12 15:21:14 UTC

Case insensitive attributes?

Hi,

~/linux/test/ant/lang/project/target/javac/destdir$ ant -version
Apache Ant(TM) version 1.8.4 compiled on May 22 2012

I have the following build.xml. ant works no matter whether
includeAntRuntime or includeantruntime is used. I recall that XML
should be case sensitive. Why it is not case sensitive to ant?

<?xml version="1.0"?>
<project name="firstbuild" default="compile">	
  <target name="builddir">
    <mkdir dir="build" />
  </target>
  <target name="compile" depends="builddir">
    <javac srcdir="." destdir="build" includeAntRuntime="false" />
  </target>
</project>

-- 
Regards,
Peng

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Case insensitive attributes?

Posted by Andreas Krey <a....@gmx.de>.
On Wed, 12 Sep 2012 16:21:55 +0000, Peter Reilly wrote:
> Because it is not case sensitive.
> 
> The code does this by hand.

What is the exact semantics in cases like:

  <exec
     executable="/bin/sh"
     failonerror="true"
     failOnError="false"
     FailOnError="maybe">...?

No, it does not complain in any way (1.7.0). The behaviour seems
to depend on the order of the 'same' attributes.

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Case insensitive attributes?

Posted by Peter Reilly <pe...@gmail.com>.
Because it is not case sensitive.

The code does this by hand.

Peter


On Wed, Sep 12, 2012 at 2:21 PM, Peng Yu <pe...@gmail.com> wrote:
> Hi,
>
> ~/linux/test/ant/lang/project/target/javac/destdir$ ant -version
> Apache Ant(TM) version 1.8.4 compiled on May 22 2012
>
> I have the following build.xml. ant works no matter whether
> includeAntRuntime or includeantruntime is used. I recall that XML
> should be case sensitive. Why it is not case sensitive to ant?
>
> <?xml version="1.0"?>
> <project name="firstbuild" default="compile">
>   <target name="builddir">
>     <mkdir dir="build" />
>   </target>
>   <target name="compile" depends="builddir">
>     <javac srcdir="." destdir="build" includeAntRuntime="false" />
>   </target>
> </project>
>
> --
> Regards,
> Peng
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org