You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

javacprops.html 1.9 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Language" content="en-us">
  18. <link rel="stylesheet" type="text/css" href="stylesheets/style.css">
  19. <title>Properties controlling javac</title>
  20. </head>
  21. <body>
  22. <p>The <var>source</var> and <var>target</var> attributes
  23. of <code>&lt;javac&gt;</code> don't have any default values for
  24. historical reasons. Since the underlying <kbd>javac</kbd>
  25. compiler defaults depends on the JDK you use, you may encounter
  26. build files that don't explicitly set those attributes and that will
  27. no longer compile using a newer JDK. If you cannot change the build
  28. file, Apache Ant provides two properties that help you setting
  29. default values for these attributes. If the attributes have been
  30. set explicitly, the properties listed here will be ignored.</p>
  31. <h2 id="source">ant.build.javac.source</h2>
  32. <p><em>Since Ant 1.7</em></p>
  33. <p>Provides a default value for <code>&lt;javac&gt;</code>'s
  34. and <code>&lt;javadoc&gt;</code>'s <var>source</var> attribute.</p>
  35. <h2 id="target">ant.build.javac.target</h2>
  36. <p><em>Since Ant 1.7</em></p>
  37. <p>Provides a default value
  38. for <code>&lt;javac&gt;</code>'s <var>target</var> attribute.</p>
  39. </body>
  40. </html>