cvs commit: ant/docs/manual/OptionalTasks xmlvalidate.html

2004-06-11 Thread antoine
antoine 2004/06/11 15:49:10

  Modified:docs/manual/OptionalTasks Tag: ANT_16_BRANCH
xmlvalidate.html
  Log:
  Merge from HEAD
  PR: 29187
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.10.2.5  +15 -0 ant/docs/manual/OptionalTasks/xmlvalidate.html
  
  Index: xmlvalidate.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/xmlvalidate.html,v
  retrieving revision 1.10.2.4
  retrieving revision 1.10.2.5
  diff -u -r1.10.2.4 -r1.10.2.5
  --- xmlvalidate.html  11 Jun 2004 15:30:33 -  1.10.2.4
  +++ xmlvalidate.html  11 Jun 2004 22:49:10 -  1.10.2.5
  @@ -25,6 +25,21 @@
  elements, containing string properties
   
   
  +Warning : JAXP creates by default a non namespace aware parser.
  +The "http://xml.org/sax/features/namespaces"; feature is set
  +by default to false by the JAXP implementation used by ant. To 
validate
  +a document containing namespaces,
  +set the namespaces feature to true explicitly by nesting the 
following element:
  +
  +  
  +
  +If you are using for instance a xsi:noNamespaceSchemaLocation 
attribute in your XML files,
  +you will need this namespace support feature.
  +
  +If you are using a parser not generated by JAXP, by using the 
classname attribute of xmlvalidate, this warning
  +may not apply.
  +
  +
   Parameters
   
 
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/docs/manual/OptionalTasks xmlvalidate.html

2004-06-11 Thread antoine
antoine 2004/06/11 15:47:23

  Modified:docs/manual/OptionalTasks xmlvalidate.html
  Log:
  Try to explain why one needs to set the namespaces feature to true
  when validating documents
  PR: 29187
  
  Revision  ChangesPath
  1.14  +15 -0 ant/docs/manual/OptionalTasks/xmlvalidate.html
  
  Index: xmlvalidate.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/xmlvalidate.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- xmlvalidate.html  11 Jun 2004 15:29:27 -  1.13
  +++ xmlvalidate.html  11 Jun 2004 22:47:23 -  1.14
  @@ -24,6 +24,21 @@
  elements, containing string properties
   
   
  +Warning : JAXP creates by default a non namespace aware parser.
  +The "http://xml.org/sax/features/namespaces"; feature is set
  +by default to false by the JAXP implementation used by ant. To 
validate
  +a document containing namespaces,
  +set the namespaces feature to true explicitly by nesting the 
following element:
  +
  +  
  +
  +If you are using for instance a xsi:noNamespaceSchemaLocation 
attribute in your XML files,
  +you will need this namespace support feature.
  +
  +If you are using a parser not generated by JAXP, by using the 
classname attribute of xmlvalidate, this warning
  +may not apply.
  +
  +
   Parameters
   
 
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 29187] - xmlvalidate schema validation not working

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29187

xmlvalidate schema validation not working





--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 22:10 ---
Michael Glavassevich writes [3] :

> Glancing at the source code for XMLValidateTask and JAXPUtils a non-namespace
> aware JAXP SAXParser is being created and used.

> JAXP says the default [for the namespaces feature] is false [1]. 
> SAX says the default is true [2]. 
> There isn't a bug here. It's just a conflict between the two specs,
> which often burns users who assume that SAX and JAXP are consistent.

[1]
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParserFactory.html#setNamespaceAware(boolean)
[2] http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html 
[3] http://issues.apache.org/jira/browse/XERCESJ-979

I will add to the documentation of the xmlvalidate task a sentence like :
warning - the namespaces feature defaults to false if you do not specify your
own parser class.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant CONTRIBUTORS

2004-06-11 Thread mbenson
mbenson 2004/06/11 14:20:59

  Modified:.Tag: ANT_16_BRANCH CONTRIBUTORS
  Log:
  Re "ant" script
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.1.2.16  +1 -0  ant/CONTRIBUTORS
  
  Index: CONTRIBUTORS
  ===
  RCS file: /home/cvs/ant/CONTRIBUTORS,v
  retrieving revision 1.1.2.15
  retrieving revision 1.1.2.16
  diff -u -r1.1.2.15 -r1.1.2.16
  --- CONTRIBUTORS  11 Jun 2004 16:38:56 -  1.1.2.15
  +++ CONTRIBUTORS  11 Jun 2004 21:20:59 -  1.1.2.16
  @@ -153,6 +153,7 @@
   Pierre Dittgen
   R Handerson
   Rami Ojares
  +Randy Watler
   Raphael Pierquin
   Richard Evans
   Rick Beton
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/src/script ant

2004-06-11 Thread mbenson
mbenson 2004/06/11 14:20:37

  Modified:src/script Tag: ANT_16_BRANCH ant
  Log:
  Sync from HEAD.
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.38.2.6  +169 -40   ant/src/script/ant
  
  Index: ant
  ===
  RCS file: /home/cvs/ant/src/script/ant,v
  retrieving revision 1.38.2.5
  retrieving revision 1.38.2.6
  diff -u -r1.38.2.5 -r1.38.2.6
  --- ant   9 Feb 2004 22:12:46 -   1.38.2.5
  +++ ant   11 Jun 2004 21:20:36 -  1.38.2.6
  @@ -14,23 +14,64 @@
   #   See the License for the specific language governing permissions and
   #   limitations under the License.
   
  -# load system-wide ant configuration
  -if [ -f "/etc/ant.conf" ] ; then
  -  . /etc/ant.conf
  -fi
  +# Extract launch and ant arguments, (see details below).
  +ant_exec_args=
  +no_config=false
  +use_jikes_default=false
  +ant_exec_debug=false
  +show_help=false
  +for arg in "$@" ; do
  +  if [ "$arg" = "--noconfig" ] ; then
  +no_config=true
  +  elif [ "$arg" = "--usejikes" ] ; then
  +use_jikes_default=true
  +  elif [ "$arg" = "--execdebug" ] ; then
  +ant_exec_debug=true
  +  elif [ my"$arg" = my"--h"  -o my"$arg" = my"--help"  ] ; then
  +show_help=true
  +ant_exec_args="$ant_exec_args -h"
  +  else
  +if [  my"$arg" = my"-h"  -o  my"$arg" = my"-help" ] ; then
  +  show_help=true
  +fi
  +ant_exec_args="$ant_exec_args \"$arg\""
  +  fi
  +done
   
  -# provide default values for people who don't use RPMs
  -if [ -z "$rpm_mode" ] ; then
  -  rpm_mode=false;
  -fi
  +# Source/default ant configuration
  +if $no_config ; then
  +  rpm_mode=false
  +  usejikes=$use_jikes_default
  +else
  +  # load system-wide ant configuration
  +  if [ -f "/etc/ant.conf" ] ; then
  +. /etc/ant.conf
  +  fi
   
  -if [ -z "$usejikes" ] ; then
  -  usejikes=false;
  +  # load user ant configuration
  +  if [ -f "$HOME/.ant/ant.conf" ] ; then
  +. $HOME/.ant/ant.conf
  +  fi
  +  if [ -f "$HOME/.antrc" ] ; then
  +. "$HOME/.antrc"
  +  fi
  +
  +  # provide default configuration values
  +  if [ -z "$rpm_mode" ] ; then
  +rpm_mode=false
  +  fi
  +  if [ -z "$usejikes" ] ; then
  +usejikes=$use_jikes_default
  +  fi
   fi
   
  -# load user ant configuration
  -if [ -f "$HOME/.antrc" ] ; then
  -  . "$HOME/.antrc"
  +# Setup Java environment in rpm mode
  +if $rpm_mode ; then
  +  if [ -f /usr/share/java-utils/java-functions ] ; then
  +. /usr/share/java-utils/java-functions
  +set_jvm
  +set_javacmd
  +  fi
   fi
   
   # OS specific support.  $var _must_ be set to either true or false.
  @@ -109,29 +150,60 @@
 exit 1
   fi
   
  -# in rpm_mode get ant/optional/xml parser&api from JAVALIBDIR
  -if $rpm_mode; then
  -  JAVALIBDIR=/usr/share/java
  -  for i in ant ant-optional jaxp_parser xml_apis
  -  do
  -if [ -z "$LOCALCLASSPATH" ] ; then
  -  LOCALCLASSPATH="$JAVALIBDIR/$i.jar"
  -else
  -  LOCALCLASSPATH="$JAVALIBDIR/$i.jar:$LOCALCLASSPATH"
  +# Build local classpath using just the launcher in non-rpm mode or
  +# use the Jpackage helper in rpm mode with basic and default jars
  +# specified in the ant.conf configuration. Because the launcher is
  +# used, libraries linked in ANT_HOME will also be include, but this
  +# is discouraged as it is not java-version safe. A user should
  +# request optional jars and their dependencies via the OPT_JAR_LIST
  +# variable
  +if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then
  +  LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher 
jaxp_parser_impl xml-commons-apis)"
  +  # If the user requested to try to add some other jars to the classpath
  +  if [ -n "$OPT_JAR_LIST" ] ; then
  +_OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)"
  +if [ -n "$_OPTCLASSPATH" ] ; then 
  +  LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH"
   fi
  -  done
  +  fi
   
  -  # in rpm mode ant/lib is in /usr/share/java/ant
  -  ANT_LIB="${JAVALIBDIR}/ant"
  -fi
  +  # Explicitly add javac path to classpath, assume JAVA_HOME set
  +  # properly in rpm mode
  +  if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
  +LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar"
  +  fi
  +  if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then
  +LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip"
  +  fi
  +
  +  # if CLASSPATH_OVERRIDE env var is set, LOCALCLASSPATH will be
  +  # user CLASSPATH first and ant-found jars after.
  +  # In that case, the user CLASSPATH will override ant-found jars
  +  #
  +  # if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour
  +  # with ant-found jars first and user CLASSPATH after
  +  if [ -n "$CLASSPATH" ] ; then
  +# merge local and specified classpath 
  +if [ -z "$LOCALCLASSPATH" ] ; then 
  +  LOCALCLASSPATH="$CLASSPATH"
  +elif [ -n "$CLASSPATH_OVERRIDE" ] ; then
  +  LOCALCLASSPA

cvs commit: ant CONTRIBUTORS

2004-06-11 Thread mbenson
mbenson 2004/06/11 13:13:28

  Modified:.CONTRIBUTORS
  Log:
  Added Randy Watler for script submissions.
  
  Revision  ChangesPath
  1.23  +1 -0  ant/CONTRIBUTORS
  
  Index: CONTRIBUTORS
  ===
  RCS file: /home/cvs/ant/CONTRIBUTORS,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- CONTRIBUTORS  4 Jun 2004 15:40:22 -   1.22
  +++ CONTRIBUTORS  11 Jun 2004 20:13:28 -  1.23
  @@ -155,6 +155,7 @@
   Pierre Dittgen
   R Handerson
   Rami Ojares
  +Randy Watler
   Raphael Pierquin
   Richard Evans
   Rick Beton
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 26757] - sshexec hangs

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=26757

sshexec hangs





--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 19:25 ---
this did not fix it. Task never reaches the disconnect() method.
I played some with jsch and believe it is indeed a jsch problem. Contacted jsch
maintainer with a fix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 26757] - sshexec hangs

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=26757

sshexec hangs





--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 16:51 ---
Please test the attached patch. I just added after line 199...

session.disconnect();


Note: Both patches are the same. I accidentilly hit the refresh button in my 
browser after attaching the patch, so it uploaded it again.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 26757] - sshexec hangs

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=26757

sshexec hangs





--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 16:47 ---
Created an attachment (id=11830)
Patch to disconnect session explicitely when done

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 26757] - sshexec hangs

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=26757

sshexec hangs





--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 16:46 ---
Created an attachment (id=11829)
Patch to disconnect session explicitely when done

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant CONTRIBUTORS WHATSNEW TODO

2004-06-11 Thread mbenson
mbenson 2004/06/11 09:38:56

  Modified:src/main/org/apache/tools/ant Tag: ANT_16_BRANCH Target.java
   .Tag: ANT_16_BRANCH CONTRIBUTORS WHATSNEW TODO
  Log:
  Merge Target.getIf/Unless() + Target Location from HEAD
  PR: 28599, 29320
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.46.2.7  +40 -0 ant/src/main/org/apache/tools/ant/Target.java
  
  Index: Target.java
  ===
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Target.java,v
  retrieving revision 1.46.2.6
  retrieving revision 1.46.2.7
  diff -u -r1.46.2.6 -r1.46.2.7
  --- Target.java   10 Jun 2004 08:15:49 -  1.46.2.6
  +++ Target.java   11 Jun 2004 16:38:56 -  1.46.2.7
  @@ -42,6 +42,8 @@
   private List dependencies = null;
   /** Children of this target (tasks and data types). */
   private List children = new ArrayList();
  +/** Since Ant 1.6.2 */
  +private Location location = Location.UNKNOWN_LOCATION;
   
   /** Project this target belongs to. */
   private Project project;
  @@ -74,6 +76,24 @@
   }
   
   /**
  + * Sets the location of this target's definition.
  + *
  + * @param location   Location
  + */
  +public void setLocation(Location location) {
  +this.location = location;
  +}
  +
  +/**
  + * Get the location of this target's definition.
  + *
  + * @return Location
  + */
  +public Location getLocation() {
  +return location;
  +}
  +
  +/**
* Sets the list of targets this target is dependent on.
* The targets themselves are not resolved at this time.
*
  @@ -227,6 +247,16 @@
   }
   
   /**
  + * Returns the "if" property condition of this target.
  + *
  + * @return the "if" property condition or null if no
  + * "if" condition had been defined.
  + */
  +public String getIf() {
  +return ("".equals(ifCondition) ? null : ifCondition);
  +}
  +
  +/**
* Sets the "unless" condition to test on execution. This is the
* name of a property to test for existence - if the property
* is set, the task will not execute. The property goes
  @@ -241,6 +271,16 @@
*/
   public void setUnless(String property) {
   this.unlessCondition = (property == null) ? "" : property;
  +}
  +
  +/**
  + * Returns the "unless" property condition of this target.
  + *
  + * @return the "unless" property condition or null
  + * if no "unless" condition had been defined.
  + */
  +public String getUnless() {
  +return ("".equals(unlessCondition) ? null : unlessCondition);
   }
   
   /**
  
  
  
  No   revision
  No   revision
  1.1.2.15  +2 -1  ant/CONTRIBUTORS
  
  Index: CONTRIBUTORS
  ===
  RCS file: /home/cvs/ant/CONTRIBUTORS,v
  retrieving revision 1.1.2.14
  retrieving revision 1.1.2.15
  diff -u -r1.1.2.14 -r1.1.2.15
  --- CONTRIBUTORS  4 Jun 2004 07:47:59 -   1.1.2.14
  +++ CONTRIBUTORS  11 Jun 2004 16:38:56 -  1.1.2.15
  @@ -20,9 +20,10 @@
   Charles Hudak
   Charlie Hubbard
   Chris Povirk
  +Christoph Wilhelms
  +Christophe Labouisse
   Christopher A. Longo
   Christopher Charlier
  -Christoph Wilhelms
   Conor MacNeill
   Costin Manolache
   Craeg Strong
  
  
  
  1.503.2.103 +5 -4  ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.503.2.102
  retrieving revision 1.503.2.103
  diff -u -r1.503.2.102 -r1.503.2.103
  --- WHATSNEW  10 Jun 2004 09:12:46 -  1.503.2.102
  +++ WHATSNEW  11 Jun 2004 16:38:56 -  1.503.2.103
  @@ -97,8 +97,7 @@
   
   * JDependTask did not close an output file. Bugzilla Report 28557.
   
  -* Using  could break XmlLogger. Bugzilla Report 28993
  -.
  +* Using  could break XmlLogger. Bugzilla Report 28993.
   
   *  no longer requires keytool to be in your PATH.  Bugzilla
 Report 29382.
  @@ -148,8 +147,6 @@
   
   * New attribute "negate" on  to invert selection criteria.
   
  -* Target now supports a Location member.  Bugzilla Report 28599.
  -
   * New "pattern" attribute for  selector.
   
   *  has a new forkmode attribute that controls the number of
  @@ -185,6 +182,10 @@
   * Add implicit nested element to . Bugzilla Report 25633.
   
   * Add deleteonexit attribute to .
  +
  +* Target now supports a Location member.  Bugzilla Report 28599.
  +
  +* Added Target.getIf/Unless().  Bugzilla Report 29320.
   
   Changes from Ant 1.6.0 to Ant 1.6.1
   =
  
  
  
  1.3.2.13  +0 -4  ant/Attic/TODO
  
  Index: TODO
  =

cvs commit: ant/docs/manual/OptionalTasks xmlvalidate.html

2004-06-11 Thread antoine
antoine 2004/06/11 08:30:33

  Modified:docs/manual/OptionalTasks Tag: ANT_16_BRANCH
xmlvalidate.html
  Log:
  Merge from HEAD
  PR: 29187
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.10.2.4  +58 -6 ant/docs/manual/OptionalTasks/xmlvalidate.html
  
  Index: xmlvalidate.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/xmlvalidate.html,v
  retrieving revision 1.10.2.3
  retrieving revision 1.10.2.4
  diff -u -r1.10.2.3 -r1.10.2.4
  --- xmlvalidate.html  24 Feb 2004 14:29:37 -  1.10.2.3
  +++ xmlvalidate.html  11 Jun 2004 15:30:33 -  1.10.2.4
  @@ -22,6 +22,7 @@
 These can be any number of
 http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description";>http://xml.org/sax/features/
 or other features that your parser may support.
  +   elements, containing string properties
   
   
   Parameters
  @@ -93,11 +94,13 @@
   The 
   element is used to perform entity resolution.
   attribute
  -The  element is used to set SAX Parser features.
  -There can be any number of attributes set, as defined here:
  - http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description";>http://xml.org/sax/features/
  -A feature essentialy changes the mode of the parser.
  -
  +The  element is used to set parser features.
  +Features usable with the xerces parser are defined here :
  + http://xml.apache.org/xerces-j/features.html";>Setting 
features
  +
  +SAX features are defined here:
  + http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description";>http://xml.org/sax/features/
  + 
   
   
 Attribute
  @@ -117,6 +120,31 @@
   
   
   
  +property
  +The  element is used to set properties.
  +These properties are defined here for the xerces XML parser implementation :
  + http://xml.apache.org/xerces-j/properties.html";>XML Parser 
properties
  +Properties can be used to set the schema used to validate the XML file.
  +
  +
  +
  +  Attribute
  +  Description
  +  Required
  +
  +  
  +name
  +The name of the feature
  +Yes
  +  
  +  
  +value
  +The string value of the property
  +Yes
  +  
  +
  +
  +
   
   Examples
   
  @@ -166,9 +194,33 @@
 
 
 
  +  
  +
  +
  +Validate all .xml files in xml directory with the parser configured to 
perform schema validation. Note: The parser must support the
  +http://apache.org/xml/features/validation/schema feature.
  +
  +
  +
  +
  +
  +
  +   
  +
  +
  +
  +
  +  
  +  
  +  
   
   
  -Validate all .xml files in xml directory with the parser configured to 
perform schema validation. Note: The parser must support the 
http://apache.org/xml/features/validation/schema feature. 
  +
  +Validate the file xml/endpiece-noSchema.xml against the schema xml/doc.xsd.
   
   
   Copyright © 2001-2002,2004 The Apache Software 
Foundation. All rights
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/docs/manual/OptionalTasks xmlvalidate.html

2004-06-11 Thread antoine
antoine 2004/06/11 08:29:27

  Modified:docs/manual/OptionalTasks xmlvalidate.html
  Log:
  Add the feature   http://xml.org/sax/features/namespaces"; 
value="true"/>
  to the examples
  PR: 29187
  
  Revision  ChangesPath
  1.13  +58 -6 ant/docs/manual/OptionalTasks/xmlvalidate.html
  
  Index: xmlvalidate.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/xmlvalidate.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- xmlvalidate.html  24 Feb 2004 14:27:51 -  1.12
  +++ xmlvalidate.html  11 Jun 2004 15:29:27 -  1.13
  @@ -21,6 +21,7 @@
 These can be any number of
 http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description";>http://xml.org/sax/features/
 or other features that your parser may support.
  +   elements, containing string properties
   
   
   Parameters
  @@ -92,11 +93,13 @@
   The 
   element is used to perform entity resolution.
   attribute
  -The  element is used to set SAX Parser features.
  -There can be any number of attributes set, as defined here:
  - http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description";>http://xml.org/sax/features/
  -A feature essentialy changes the mode of the parser.
  -
  +The  element is used to set parser features.
  +Features usable with the xerces parser are defined here :
  + http://xml.apache.org/xerces-j/features.html";>Setting 
features
  +
  +SAX features are defined here:
  + http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description";>http://xml.org/sax/features/
  + 
   
   
 Attribute
  @@ -116,6 +119,31 @@
   
   
   
  +property
  +The  element is used to set properties.
  +These properties are defined here for the xerces XML parser implementation :
  + http://xml.apache.org/xerces-j/properties.html";>XML Parser 
properties
  +Properties can be used to set the schema used to validate the XML file.
  +
  +
  +
  +  Attribute
  +  Description
  +  Required
  +
  +  
  +name
  +The name of the feature
  +Yes
  +  
  +  
  +value
  +The string value of the property
  +Yes
  +  
  +
  +
  +
   
   Examples
   
  @@ -165,9 +193,33 @@
 
 
 
  +  
  +
  +
  +Validate all .xml files in xml directory with the parser configured to 
perform schema validation. Note: The parser must support the
  +http://apache.org/xml/features/validation/schema feature.
  +
  +
  +
  +
  +
  +
  +   
  +
  +
  +
  +
  +  
  +  
  +  
   
   
  -Validate all .xml files in xml directory with the parser configured to 
perform schema validation. Note: The parser must support the 
http://apache.org/xml/features/validation/schema feature. 
  +
  +Validate the file xml/endpiece-noSchema.xml against the schema xml/doc.xsd.
   
   
   Copyright © 2001-2002,2004 The Apache Software 
Foundation. All rights
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 29461] - Cygwin & path to build file

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29461

Cygwin & path to build file

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 14:38 ---
It would, most likely, quickly become a maintenance nightmare if new cygpath 
calls had to be added every time a command-line option with a file or path was 
added.  I think the rule here is that it is the user's responsibility to 
specify arguments to the "ant" script in the convention of the local platform.  
The only things the startup scripts should have to deal with are things 
discovered from the environment, e.g. CLASSPATH, ANT_HOME (if not preset).

Closing as requested...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 26757] - sshexec hangs

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=26757

sshexec hangs





--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 14:22 ---
according to the developer of jsch this is not a jsch bug.
Here is his email:

Hi,

This is not a bug of jsch. That comes from the usage of jsch by Ant.
JSch allows you to run simultaneously multiple exec channels on
the single ssh session.  I guess that, in that problem, ssh session has 
been kept and sshexec task should explicitly disconnect that 
session at the end of exec operation.


Thanks,
--
ymnk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant TODO

2004-06-11 Thread antoine
antoine 2004/06/11 07:20:14

  Modified:.Tag: ANT_16_BRANCH TODO
  Log:
  xml validation with schema can work,
  if one sets 3 features to true : validation, namespaces and validation/schema
  will add this to our documentation for the xmlvalidate task
  PR: 29187
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.3.2.12  +0 -2  ant/Attic/TODO
  
  Index: TODO
  ===
  RCS file: /home/cvs/ant/Attic/TODO,v
  retrieving revision 1.3.2.11
  retrieving revision 1.3.2.12
  diff -u -r1.3.2.11 -r1.3.2.12
  --- TODO  10 Jun 2004 09:19:02 -  1.3.2.11
  +++ TODO  11 Jun 2004 14:20:14 -  1.3.2.12
  @@ -19,8 +19,6 @@
   
   * merge " differentiates between empty & up-to-date" from HEAD [Matt]
   
  -* Fix the Xml validation with schema [Antoine]
  -
   * Fix or at least document support for tomcat 5.0 jsp
   
   * gcj support in Path.addJavaRuntime [Stefan]
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27923] - JspC fails to compile with Tomcat Jasper 5.0

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27923

JspC fails to compile with Tomcat Jasper 5.0

[EMAIL PROTECTED] changed:

   What|Removed |Added

 OS/Version|Windows XP  |All

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27923] - JspC fails to compile with Tomcat Jasper 5.0

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27923

JspC fails to compile with Tomcat Jasper 5.0

[EMAIL PROTECTED] changed:

   What|Removed |Added

 OS/Version|Linux   |Windows XP

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[PATCH] Changes to manual to include link to Surround SCM integration

2004-06-11 Thread Matt Harp
Hello all,

I am submitting the following two patches to the Ant documentation.

1. Changes to external.xml to add Surround SCM to the list of external
tasks. It is listed under a new anchor heading called "Source Control"

2. Changes to tasksoverview.html to add Surround SCM to the list of Source
Control tasks.


A while back I had thought of submitting the actualy code to Apache, but
people on this list preferred that we maintain the code and I just submit
documentation patches. We have finally gotten our new website up and running
si I am begining the submission process to get our tasks listed in the
manual so Ant users know where to go to download the tasks and view help on
them.

I've read a bunch of pages on submission guidlines, but I'm not really clear
on where it goes from here. Do people vote on this? They are very minor
changes and no source code is being submitted so I hope all goes smoothly.
If I need to do anything further, please let me know.

Also, will I be notified directly when the patch is officialy part of Ant?

Thanks,

matt
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

DO NOT REPLY [Bug 29187] - xmlvalidate schema validation not working

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29187

xmlvalidate schema validation not working

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 13:24 ---
OK.
I have filed a bug in JIRA concerning Xerces Java 2.
See :
http://nagoya.apache.org/jira/browse/XERCESJ-979
Will also update the examples in the documentation of the xmlvalidate task, to
bring the people to the right track, and prevent this from being a FAQ on the
user list.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 29187] - xmlvalidate schema validation not working

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29187

xmlvalidate schema validation not working

[EMAIL PROTECTED] changed:

   What|Removed |Added

 AssignedTo|xerces-j-dev@xml.apache.org |[EMAIL PROTECTED]
  Component|Schema-Structures   |Optional Tasks
Product|Xerces-J|Ant
Version|unspecified |1.6.1



--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 12:54 ---
Actually, xerces Java 2 has moved to Jira, so I am going to close this bug in
ant/Bugzilla and move it to Jira

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 29187] - xmlvalidate schema validation not working

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29187

xmlvalidate schema validation not working

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||xerces-j-dev@xml.apache.org
 AssignedTo|[EMAIL PROTECTED]  |xerces-j-dev@xml.apache.org
  Component|Optional Tasks  |Schema-Structures
Product|Ant |Xerces-J
Version|1.6.1   |unspecified



--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 12:49 ---
You need to add this attribute to the attributes you are using in the
xmlvalidate task. This feature seems to be necessary for xerces to use the
xsi:noNamespaceSchemaLocation attribute.
  http://xml.org/sax/features/namespaces"; value="true"/>

But the documentation of xerces says :
http://xml.apache.org/xerces-j/features.html
that the namespaces feature is set to true by default.
Is this a documentation bug, a code bug, or is there something special about xml
validation leading to a different default for this feature.

So I am going to reassign this bug report to the xerces java group.

Antoine

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: ant/src/main/org/apache/tools/ant/dispatch DispatchUtils.java DispatchTask.java

2004-06-11 Thread Magesh Umasankar
From:   umagesh () apache ! org
Date:   2004-06-10 18:01:47

> umagesh 2004/06/10 11:01:47
>
>  Modified:src/main/org/apache/tools/ant Task.java TaskAdapter.java
>UnknownElement.java
>   src/main/org/apache/tools/ant/dispatch DispatchTask.java
>  Added:   src/main/org/apache/tools/ant/dispatch DispatchUtils.java
>  Log:
>  Tasks extending from oata.Task and implementing Dispatchable are not
dispatchable.

Typo in log message which should actually read:
"Tasks extending from oata.Task and implementing Dispatchable are *now*
dispatchable."

Cheers,
Magesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Herbert Dirks/Kreissparkasse Wittmund/de istaußer Haus.

2004-06-11 Thread Herbert . Dirks
Ich werde ab  06.06.2004 nicht im Büro sein. Ich kehre zurück am
28.06.2004.

Bitte wenden Sie sich an Herrn Heiko Sieling
([EMAIL PROTECTED]) oder Martin Ullrich
([EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 29522] New: - JspC pass incorrect verbose parameter for newest jasper compiler

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29522

JspC pass incorrect verbose parameter for newest jasper compiler

   Summary: JspC pass incorrect verbose parameter for newest jasper
compiler
   Product: Ant
   Version: 1.6.1
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Optional Tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


In the newest jasper compilers, format of argument that specifies verbose mode 
is changed. Now just "-v" can be passed, without verbose level as it was 
before. But JasperC still pass this argument as "-v#". So, newest jasper 
compilers produce error. To solve this problem JasperC must be modified, to 
remove passing verbose level.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Possiblity to add an external tool

2004-06-11 Thread Jan . Materne
I´ll add the two (DTDDoc, J2ME Polish) at the weekend.
But send the infos about DTDDoc as Stefan told...

Jan



> -Original Message-
> From: Robert Virkus [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 10, 2004 6:50 PM
> To: [EMAIL PROTECTED]
> Cc: Stefan Champailler
> Subject: Re: Possiblity to add an external tool
> 
> 
> Hi  Stefan:
> 
> In theory this is described at 
> http://ant.apache.org/faq.html#adding-external-tasks
> 
> I am still awaiting the inclusion of my task (J2ME Polish) though...
> 
> Best regards,
>Robert
> 
> On Thursday 10 June 2004 14:13, Stefan Champailler wrote:
> > Dear all,
> >
> > I have a made a little and, from what I've seen, useful 
> tool to document
> > XML DTD's. You can find it at 
http://dtddoc.sourceforge.net. It's been used
> for a year now and I'd like it to show up on
> http://ant.apache.org/external.html. If it's possible, what should I do ?
>
> Thanks,
>
> Stefan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Robert Virkus
Enough Software
Vor dem Steintor 218
D-28203 Bremen
Germany
www.enough.de
[EMAIL PROTECTED]

SAY NO TO SOFTWARE PATENTS:
http://www.ffii.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cvs commit: ant/src/main/org/apache/tools/ant Task.java

2004-06-11 Thread peterreilly
peterreilly2004/06/11 02:04:24

  Modified:src/main/org/apache/tools/ant Tag: ANT_16_BRANCH Task.java
  Log:
  sync
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.50.2.9  +1 -0  ant/src/main/org/apache/tools/ant/Task.java
  
  Index: Task.java
  ===
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Task.java,v
  retrieving revision 1.50.2.8
  retrieving revision 1.50.2.9
  diff -u -r1.50.2.8 -r1.50.2.9
  --- Task.java 10 Jun 2004 09:12:46 -  1.50.2.8
  +++ Task.java 11 Jun 2004 09:04:24 -  1.50.2.9
  @@ -367,6 +367,7 @@
   ex.setLocation(getLocation());
   }
   reason = ex;
  +throw ex;
   } catch (Exception ex) {
   reason = ex;
   BuildException be = new BuildException(ex);
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 29461] - Cygwin & path to build file

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29461

Cygwin & path to build file





--- Additional Comments From [EMAIL PROTECTED]  2004-06-11 08:35 ---
Well, I am currently working with GT3.2, the deprecated one. I finally managed
to change the ant wrapper script to convert absolute file paths and made the ant
build scripts work. However, I ran into another build problem when compiling
some C/C++ code. I searched the web for a hint or solution and discovered what
is causing the problem: GT3.2 relies on IPv6 which Cygwin doesn't handle. This
problem is slightly harder to fix on the fly, that's why I finally gave up to
build GT3.2 on Cygwin. Anyway, at least, I learned some shell scripting and I'm
looking forward to do some experiments with GT4.

I had time to reconsider my position and would like to undo this bug report (or
even feature request) due to the mentioned problems. The Cygwin support as
implemented in the wrapper scripts so far should satisfy all programmers who
prefer the cygwin shell to the windows cmd.exe.

The other side is: programmers who intermingle different approaches for building
an application and make a platform-independent tool platform-dependent should
probably rethink the organisation of their applications build process.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: File Includer

2004-06-11 Thread Rami Ojares

> The way to resolve your requirement is providing
> a different task (useful on its own right) that
> given a fileset it adjust the lastmodified of a target
> file to be the latest date of the files in the fileset.
> 
> Do you think this two things will solve your problem?

I will have a shot at it.

- rami

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: ant/src/main/org/apache/tools/ant Task.java

2004-06-11 Thread Peter Reilly
Opps, thanks.
Peter
[EMAIL PROTECTED] wrote:
umagesh 2004/06/10 10:32:14
 Modified:src/main/org/apache/tools/ant Task.java
 Log:
 Tests are failing...
 
 Revision  ChangesPath
 1.59  +1 -0  ant/src/main/org/apache/tools/ant/Task.java
 
 Index: Task.java
 ===
 RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Task.java,v
 retrieving revision 1.58
 retrieving revision 1.59
 diff -u -r1.58 -r1.59
 --- Task.java	10 Jun 2004 09:11:51 -	1.58
 +++ Task.java	10 Jun 2004 17:32:14 -	1.59
 @@ -367,6 +367,7 @@
  ex.setLocation(getLocation());
  }
  reason = ex;
 +throw ex;
  } catch (Exception ex) {
  reason = ex;
  BuildException be = new BuildException(ex);
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]