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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 source and target attributes of <code>&lt;javac&gt;</code>
  23. don't have any default values for historical reasons. Since the
  24. underlying javac compiler's default depends on the JDK you use, you
  25. may encounter build files that don't explicitly set those attributes
  26. and that will no longer compile using a newer JDK. If you cannot
  27. change the build file, Ant provides two properties that help you
  28. setting default values for these attributes. If the attributes have
  29. been set explicitly, the properties listed here will be ignored.</p>
  30. <h2><a name="source">ant.build.javac.source</a></h2>
  31. <p><em>Since Ant 1.7</em></p>
  32. <p>Provides a default value for <code>&lt;javac&gt;</code>'s and
  33. <code>&lt;javadoc&gt;</code>'s source attribute.</p>
  34. <h2><a name="target">ant.build.javac.target</a></h2>
  35. <p><em>Since Ant 1.7</em></p>
  36. <p>Provides a default value for <code>&lt;javac&gt;</code>'s target
  37. attribute.</p>
  38. </body>
  39. </html>