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