ant/docs/manual/javacprops.html

40 lines
1.2 KiB
HTML
Raw Normal View History

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<link rel="stylesheet" type="text/css" href="stylesheets/style.css">
<title>Properties controlling javac</title>
</head>
<body>
<p>The source and target attributes of <code>&lt;javac&gt;</code>
don't have any default values for historical reasons. Since the
underlying javac compiler's default depends on the JDK you use, you
may encounter build files that don't explicitly set those attributes
and that will no longer compile using a newer JDK. If you cannot
change the build file, Ant provides two properties that help you
setting default values for these attributes. If the attributes have
been set explicitly, the properties listed here will be ignored.</p>
<h2><a name="source">ant.build.javac.source</a></h2>
<p><em>Since Ant 1.7</em></p>
<p>Provides a default value for <code>&lt;javac&gt;</code>'s and
<code>&lt;javadoc&gt;</code>'s source attribute.</p>
<h2><a name="target">ant.build.javac.target</a></h2>
<p><em>Since Ant 1.7</em></p>
<p>Provides a default value for <code>&lt;javac&gt;</code>'s target
attribute.</p>
<hr>
<p align="center">Copyright &copy; 2006 The Apache Software Foundation. All rights
Reserved.</p>
</body>
</html>