Y.L.
Y.L.

Reputation: 1314

what does this property in ant's build.xml mean?

In a project's build.xml there is a properity

<property name="ant.build.javac.source" value="1.7"/>

it is not used in other places in the build.xml, but if i modify it's value to 1.6, i will

get an error.

what does this properity mean?

i am in China, Google has been blocked here.....

Upvotes: 0

Views: 465

Answers (2)

SomeKittens
SomeKittens

Reputation: 39532

The value determines what version of the JDK is used to build the project. You probably get an error on 1.6 because it's not installed/doesn't support something you use in your project.

http://ant.apache.org/manual/javacprops.html

Upvotes: 1

Dave Newton
Dave Newton

Reputation: 160191

http://ant.apache.org/manual/javacprops.html

They define values for the javac (and javadoc) task since there are no default values.

This can cause problems in some circumstances, so magic properties were defined.

If you're trying to compile 1.7 source using a 1.6 compiler you'll have issues if you're using 1.7 constructs/etc.

Upvotes: 1

Related Questions