Concepts and Types - Conceptsbuild.sysclasspathbuild.sysclasspathThe value of the build.sysclasspath propertycontrols how the system classpath, i.e. the classpath in effect whenApache Ant is run, affects the behavior of classpaths in Ant.The default behavior varies from task to task. The values and their meanings are:value | meaning |
---|
only | Only the system classpath is used and classpaths specified in build files,etc are ignored. This situation could be considered as the person runningthe build file knows more about the environment than the person writing thebuild file. | ignore | The system classpath is ignored. This situation is the reverse of theabove. The person running the build trusts the build file writer to get thebuild file right. This mode is recommended for portable scripts. | last | The classpath is concatenated to any specified classpaths at the end. Thisis a compromise, where the build file writer has priority. | first | Any specified classpaths are concatenated to the system classpath. This isthe other form of compromise where the build runner has priority. |
Since Ant 1.7 the value of this property also affects thebootclasspath settings--it combines the bootclasspath that has beenspecified for a task with the bootclasspath of the Java VM runningAnt. If the property has not been set, it defaults to "ignore" inthis case. |