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.2 KiB

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