Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 37764 invoked from network); 13 Jan 2005 23:09:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jan 2005 23:09:36 -0000 Received: (qmail 42050 invoked by uid 500); 13 Jan 2005 23:09:34 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 41998 invoked by uid 500); 13 Jan 2005 23:09:34 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 41985 invoked by uid 500); 13 Jan 2005 23:09:34 -0000 Received: (qmail 41980 invoked by uid 99); 13 Jan 2005 23:09:34 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 13 Jan 2005 15:09:34 -0800 Received: (qmail 37728 invoked by uid 1365); 13 Jan 2005 23:09:33 -0000 Date: 13 Jan 2005 23:09:33 -0000 Message-ID: <20050113230933.37727.qmail@minotaur.apache.org> From: stevel@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/docs/manual/CoreTypes selectors.html X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N stevel 2005/01/13 15:09:33 Modified: docs/manual running.html docs/manual/CoreTypes selectors.html Log: doc updates; especially command line options, why we hate CLASSPATH and ant.file.* I have declared a policy on what we will name new properties. Is this a good formal policy to have? Revision Changes Path 1.30 +47 -13 ant/docs/manual/running.html Index: running.html =================================================================== RCS file: /home/cvs/ant/docs/manual/running.html,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- running.html 19 Nov 2004 09:07:08 -0000 1.29 +++ running.html 13 Jan 2005 23:09:32 -0000 1.30 @@ -106,6 +106,8 @@ -s <file> the filesystem and use it -nice number A niceness value for the main thread: 1 (lowest) to 10 (highest); 5 is the default + -nouserlib Run ant without using the jar files from ${user.home}/.ant/lib + -noclasspath Run ant without using CLASSPATH

For more information about -logger and -listener see @@ -122,26 +124,29 @@ ${user.home}/.ant/lib. This arrangement allows the Ant installation to be shared by many users while still allowing each user to deploy additional jars. Such additional jars could be support jars for Ant's optional tasks or jars -containing third-party tasks to be used in the build. It also allows the main Ant -installation to be locked down which will please system adminstrators. +containing third-party tasks to be used in the build. It also allows the main Ant installation to be locked down which will please system adminstrators.

Additional directories to be searched may be added by using the -lib option. The -lib option specifies a search path. Any jars or classes in the directories of the path will be added to Ant's classloader. The order in which jars are -added to the classpath is as follows +added to the classpath is as follows:-

  • -lib jars in the order specified by the -lib elements on the command line
  • -
  • jars from ${user.home}/.ant/lib
  • +
  • jars from ${user.home}/.ant/lib (unless -nouserlib is set)
  • jars from ANT_HOME/lib

Note that the CLASSPATH environment variable is passed to Ant using a -lib -option. Ant itself is started with a very minimalistic classpath. +option. Ant itself is started with a very minimalistic classpath. +Ant should work perfectly well with an empty CLASSPATH environment variable, +something the the -noclasspath option actually enforces. We get many more support calls related to classpath problems (especially quoting problems), than +we like. +

@@ -213,14 +218,14 @@

Java System Properties

-

Some of Ants core classes ant tasks can be configured via system properties.

-

So here the result of a search through the codebase. Because system properties are +

Some of Ant's core classes ant tasks can be configured via system properties.

+

Here is the result of a search through the codebase. Because system properties are available via Project instance, I searched for them with a

       grep -r -n "getPropert" * > ..\grep.txt
   
command. After that I filtered out the often-used but not-so-important values (most of them -read-only values): path.separator, ant.home, basedir, user.dir, os.name, ant.file, +read-only values): path.separator, ant.home, basedir, user.dir, os.name, line.separator, java.home, java.version, java.version, user.home, java.class.path
And I filtered out the getPropertyHelper access.

@@ -231,11 +236,31 @@ - + + + + + + + + + + + + + + @@ -269,7 +294,7 @@ @@ -373,7 +398,7 @@ - + @@ -400,6 +425,15 @@
ant.executor.classclassname; default is org.apache.tools.ant.helper.DefaultExecutorclassname; default is org. apache. tools. ant. helper. DefaultExecutor Since Ant 1.6.3 Ant will delegate Target invocation to the org.apache.tools.ant.Executor implementation specified here.
ant.fileread only: full filename of the build fileThis is set to the name of the build file. In + + <import>-ed files, this is set to the containing build file. +
ant.file.*read only: full filename of the build file of Ant projects + This is set to the name of a file by project; + this lets you determine the location of + <import>-ed files, +
ant.input.properties filename (required)ant.regexp.regexpimpl classname classname for a RegExp implementation; if not set Ant tries to - find another (Jdk14, Oro...); + find another (JDK14+, Apache Oro...); RegExp-Mapper "Choice of regular expression implementation"
org.apache.tools.ant.ProjectHelper classname (optional, default 'org. apache. tools. ant. ProjectHelper')classname (optional, default 'org.apache.tools.ant.ProjectHelper') specifies the classname to use as ProjectHelper. The class must extend org.apache.tools.ant.ProjectHelper.
+

+If new properties get added (it happens), expect them to appear under the +"ant." and "org.apache.tools.ant" prefixes, unless the developers have a +very good reason to use another prefix. Accordingly, please avoid using +properties that begin with these prefixes, to reduce the risk that future +Ant releases break your build file. +

+ +

Cygwin Users

The Unix launch script that come with Ant works correctly with Cygwin. You should not have any problems launching Ant form the Cygwin shell. It is important @@ -413,7 +447,7 @@

OS/2 Users

-

The OS/2 lanuch script was developed so as it can perform complex task. It has two parts: +

The OS/2 launch script was developed so as it can perform complex tasks. It has two parts: ant.cmd which calls Ant and antenv.cmd which sets environment for Ant. Most often you will just call ant.cmd using the same command line options as described above. The behaviour can be modified by a number of ways explained below.

@@ -476,7 +510,7 @@

-

Copyright © 2000-2004 The Apache Software Foundation. All rights +

Copyright © 2000-2005 The Apache Software Foundation. All rights Reserved.

1.30 +5 -5 ant/docs/manual/CoreTypes/selectors.html Index: selectors.html =================================================================== RCS file: /home/cvs/ant/docs/manual/CoreTypes/selectors.html,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- selectors.html 2 Dec 2004 23:50:03 -0000 1.29 +++ selectors.html 13 Jan 2005 23:09:32 -0000 1.30 @@ -260,7 +260,7 @@

Depth Selector

The <depth> tag selects files based on - how many directy levels deep they are in relation to the base + how many directory levels deep they are in relation to the base directory of the fileset.

@@ -759,7 +759,7 @@

- + @@ -792,7 +792,7 @@ - + - + @@ -1319,7 +1319,7 @@ Programming Selectors in Ant.


-

Copyright © 2002-2004 The Apache Software +

Copyright © 2002-2005 The Apache Software Foundation. All rights Reserved.

--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org
Algorithm's
Algorithm options
Name Description
Cache's
Cache options
propertyfile Use the java.util.Properties class and its possibility @@ -804,7 +804,7 @@
Comparator's
Comparator options
equal Very simple object comparison.