| 1 |
<!DOCTYPE html> |
| 2 |
<!-- |
| 3 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 |
contributor license agreements. See the NOTICE file distributed with |
| 5 |
this work for additional information regarding copyright ownership. |
| 6 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 |
(the "License"); you may not use this file except in compliance with |
| 8 |
the License. You may obtain a copy of the License at |
| 9 |
|
| 10 |
https://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
|
| 12 |
Unless required by applicable law or agreed to in writing, software |
| 13 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
See the License for the specific language governing permissions and |
| 16 |
limitations under the License. |
| 17 |
--> |
| 18 |
<html lang="en"> |
| 19 |
|
| 20 |
<head> |
| 21 |
<link rel="stylesheet" type="text/css" href="stylesheets/style.css"> |
| 22 |
<title>Properties controlling javac</title> |
| 23 |
</head> |
| 24 |
|
| 25 |
<body> |
| 26 |
|
| 27 |
<p>The <var>source</var> and <var>target</var> attributes |
| 28 |
of <code><javac></code> don't have any default values for |
| 29 |
historical reasons. Since the underlying <kbd>javac</kbd> |
| 30 |
compiler defaults depends on the JDK you use, you may encounter |
| 31 |
build files that don't explicitly set those attributes and that will |
| 32 |
no longer compile using a newer JDK. If you cannot change the build |
| 33 |
file, Apache Ant provides two properties that help you setting |
| 34 |
default values for these attributes. If the attributes have been |
| 35 |
set explicitly, the properties listed here will be ignored.</p> |
| 36 |
|
| 37 |
<h2 id="source">ant.build.javac.source</h2> |
| 38 |
|
| 39 |
<p><em>Since Ant 1.7</em></p> |
| 40 |
|
| 41 |
<p>Provides a default value for <code><javac></code>'s |
| 42 |
and <code><javadoc></code>'s <var>source</var> attribute.</p> |
| 43 |
|
| 44 |
<h2 id="target">ant.build.javac.target</h2> |
| 45 |
|
| 46 |
<p><em>Since Ant 1.7</em></p> |
| 47 |
|
| 48 |
<p>Provides a default value |
| 49 |
for <code><javac></code>'s <var>target</var> attribute.</p> |
| 50 |
|
| 51 |
</body> |
| 52 |
</html> |