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.

sysclasspath.html 2.5 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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>build.sysclasspath</title>
  20. </head>
  21. <body>
  22. <h2><a name="sysclasspath">build.sysclasspath</a></h2>
  23. <p>The value of the build.sysclasspath property
  24. control how the system classpath, ie. the classpath in effect when
  25. Ant is run, affects the behaviour of classpaths in Ant.
  26. The default behavior varies from Ant to Ant task.</p>
  27. The values and their meanings are:
  28. <table cellspacing="20">
  29. <tr>
  30. <th align="left" valign="top">only</th>
  31. <td>Only the system classpath is used and classpaths specified in build files,
  32. etc are ignored. This situation could be considered as the person running
  33. the build file knows more about the environment than the person writing the
  34. build file
  35. </td>
  36. </tr>
  37. <tr>
  38. <th align="left" valign="top">ignore</th>
  39. <td>
  40. The system classpath is ignored. This situation is the reverse of the
  41. above. The person running the build trusts the build file writer to get the
  42. build file right
  43. </td>
  44. </tr>
  45. <tr>
  46. <th align="left" valign="top">last</th>
  47. <td>
  48. The classpath is concatenated to any specified classpaths at the end. This
  49. is a compromise, where the build file writer has priority.
  50. </td>
  51. </tr>
  52. <tr>
  53. <th align="left" valign="top">first</th>
  54. <td>
  55. Any specified classpaths are concatenated to the system classpath. This is
  56. the other form of compromise where the build runner has priority.
  57. </td>
  58. </tr>
  59. </table>
  60. <p><em>Since Ant 1.7</em> the value of this property also affects the
  61. bootclasspath settings--it combines the bootclasspath that has been
  62. specified for a task with the bootclasspath of the Java VM running
  63. Ant. If the property has not been set, it defaults to "ignore" in
  64. this case.</p>
  65. </body>
  66. </html>