Browse Source

Do not make system be the default location

- it is too dangerous - noone reads manuals!



git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@639900 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 17 years ago
parent
commit
3a0ea500b3
1 changed files with 14 additions and 3 deletions
  1. +14
    -3
      fetch.xml

+ 14
- 3
fetch.xml View File

@@ -29,8 +29,8 @@

You can choose three locations, by going -Ddest=LOCATION on the command line
-Ddest=user user lib dir ${user.home}/.ant/lib
-Ddest=system ant lib dir ${ant.home}/lib --Default--
-Ddest=optional optional dir ${ant.home}/lib/optional (for Ant developers)
-Ddest=system ant lib dir ${ant.home}/lib
-Ddest=optional optional dir $${basedir}/lib/optional (for Ant developers)

You may also need to set proxy settings. On Java1.5, Ant tries to get
this from the OS, unless you use the -noproxy option.
@@ -63,7 +63,18 @@
<import file="get-m2.xml" />

<target name="pick-dest">
<property name="dest" value="system" />
<fail>
<condition>
<not>
<isset property="dest"/>
</not>
</condition>ERROR
Set -Ddest=LOCATION on the command line
-Ddest=user user lib dir ${user.home}/.ant/lib
-Ddest=system ant lib dir ${ant.home}/lib
-Ddest=optional optional dir $${basedir}/lib/optional (for Ant developers)
</fail>

<condition property="dest.dir"
value="${lib.dir}">
<equals arg1="${dest}" arg2="system" />


Loading…
Cancel
Save