Maven Standard System Properties: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 5: | Line 5: | ||
=Standard System Properties= | =Standard System Properties= | ||
== | ==Exposed Directly== | ||
==project.build.directory== | These are directly accessible from Ant: | ||
===basedir=== | |||
===project.basedir=== | |||
===project.build.directory=== | |||
===project.version=== | |||
==Exposed As <tt>refid</tt>s== | |||
To access from Ant, use: | |||
<pre> | |||
.... | |||
<configuration> | |||
<tasks> | |||
<property name="maven.test.classpath" refid="maven.test.classpath"/> | |||
... | |||
</pre> | |||
===maven.compile.classpath=== | |||
===maven.runtime.classpath=== | |||
===maven.test.classpath=== | |||
===maven.plugin.classpath=== | |||
=Organizatorium= | |||
<font color=red> | |||
!!!Inaccessible from Ant | |||
{{project.version}} | |||
For an example of how to forward this to Ant, see [Antrun plugin|MavenAntrunPlugin]. | |||
!!!Displaying Various Classpath Values at Runtime | |||
Ant can be also used to display various classpath values at runtime, see how to do that also here: [Antrun plugin|MavenAntrunPlugin#DisplayingVariousClasspathValuesAtRuntime]. | |||
</font> |
Revision as of 17:49, 7 November 2016
Internal
Standard System Properties
Exposed Directly
These are directly accessible from Ant:
basedir
project.basedir
project.build.directory
project.version
Exposed As refids
To access from Ant, use:
.... <configuration> <tasks> <property name="maven.test.classpath" refid="maven.test.classpath"/> ...
maven.compile.classpath
maven.runtime.classpath
maven.test.classpath
maven.plugin.classpath
Organizatorium
!!!Inaccessible from Ant
For an example of how to forward this to Ant, see [Antrun plugin|MavenAntrunPlugin].
!!!Displaying Various Classpath Values at Runtime
Ant can be also used to display various classpath values at runtime, see how to do that also here: [Antrun plugin|MavenAntrunPlugin#DisplayingVariousClasspathValuesAtRuntime].