DO NOT REPLY [Bug 32390] - Timestamp support for signjar

2004-11-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32390.
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=32390





--- Additional Comments From [EMAIL PROTECTED]  2004-11-26 07:08 ---
Created an attachment (id=13544)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=13544action=view)
Adds TSA funtcionality to SignJar task

Here's a patch that should address the issue.  I've tested the individual
method that I've added (note junit test included).  Unfortunately the actual
signing of the jar fails because of some arcane .keystore issues.

I'd love to track this down and pove to myself that the changes in the patch
work as proposed, unfortunately I've run out of time - got to go teach, so I'm
uploading this as a basis for someone else to take forward (sorry about that).

I think it will work, if you can correctly configure the keystore etc.  See
code for additional info.

Kev

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30987] - [PATCH] signjar new preservelastmodified attribute

2004-11-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30987.
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=30987





--- Additional Comments From [EMAIL PROTECTED]  2004-11-26 10:05 ---
I cannot access CVS via http because http tunneling is not allowed on my
corporate proxy. Have tried with WinCVS, if someone knows an alternative I'm
open to suggestions.

I've modified the testcase and the docs, and have prepared a zip file with just
the modified files. If someone could follow these steps:

1) cvs co -P -D 1 sept 2004
2) unzip the new attachment over it
3) cvs diff -u 

That would prepare the requested patch. I've tried to make a diff with no cvs
access, but I'm working on solaris, so no diff -u but only diff -c is
available. It has been a pain to work with no mediums.

Can someone unzip it and check the changes? 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30987] - [PATCH] signjar new preservelastmodified attribute

2004-11-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30987.
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=30987


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #12590|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2004-11-26 10:11 ---
Created an attachment (id=13545)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=13545action=view)
zip file with just the modified files


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



cvs commit: ant/src/etc/testcases/taskdefs signjar.xml

2004-11-26 Thread peterreilly
peterreilly2004/11/26 01:52:06

  Modified:.WHATSNEW CONTRIBUTORS
   docs/manual/CoreTasks signjar.html
   src/main/org/apache/tools/ant/taskdefs SignJar.java
   src/testcases/org/apache/tools/ant/taskdefs SignJarTest.java
   src/etc/testcases/taskdefs signjar.xml
  Log:
  add new preservelastmodified attribute to signjar
  PR: 30987
  Obtained from: Ignacio Coloma
  
  Revision  ChangesPath
  1.688 +3 -0  ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.687
  retrieving revision 1.688
  diff -u -r1.687 -r1.688
  --- WHATSNEW  22 Nov 2004 10:07:22 -  1.687
  +++ WHATSNEW  26 Nov 2004 09:52:05 -  1.688
  @@ -92,6 +92,9 @@
   * Added isSigned condition and task, and signedselector selector
 Bugzilla report 32126.
   
  +* Added preserveLastModified attribute to signjar task.
  +  Bugzilla report 30987.
  +
   Changes from Ant 1.6.2 to current Ant 1.6 CVS version
   =
   
  
  
  
  1.40  +1 -0  ant/CONTRIBUTORS
  
  Index: CONTRIBUTORS
  ===
  RCS file: /home/cvs/ant/CONTRIBUTORS,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- CONTRIBUTORS  19 Nov 2004 09:07:08 -  1.39
  +++ CONTRIBUTORS  26 Nov 2004 09:52:05 -  1.40
  @@ -74,6 +74,7 @@
   Haroon Rafique
   Hiroaki Nakamura
   Holger Engels
  +Ignacio Coloma
   Ingenonsya France
   Ingmar Stein
   Irene Rusman
  
  
  
  1.12  +6 -0  ant/docs/manual/CoreTasks/signjar.html
  
  Index: signjar.html
  ===
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/signjar.html,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- signjar.html  9 Feb 2004 21:50:05 -   1.11
  +++ signjar.html  26 Nov 2004 09:52:06 -  1.12
  @@ -92,6 +92,12 @@
style of standard java memory specs (e.g. 128m = 128 
MBytes)/td
   td valign=top align=centerNo/td
 /tr
  +  tr
  +td valign=toppreservelastmodified/td
  +td valign=topGive the signed file the same last modified
  +  time as the original jar file./td
  +td valign=top align=centerNo; default false./td
  +  /tr
   /table
   h3Parameters as nested elements/h3
   table border=1 cellpadding=2 cellspacing=0
  
  
  
  1.40  +20 -0 ant/src/main/org/apache/tools/ant/taskdefs/SignJar.java
  
  Index: SignJar.java
  ===
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/SignJar.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- SignJar.java  22 Nov 2004 11:42:53 -  1.39
  +++ SignJar.java  26 Nov 2004 09:52:06 -  1.40
  @@ -66,6 +66,7 @@
   protected boolean verbose;
   protected boolean internalsf;
   protected boolean sectionsonly;
  +protected boolean preserveLastModified;
   
   /** The maximum amount of memory to use for Jar signer */
   private String maxMemory;
  @@ -237,6 +238,7 @@
   return;
   }
   
  +long lastModified = jarSource.lastModified();
   final ExecTask cmd = (ExecTask) getProject().createTask(exec);
   cmd.setExecutable(JavaEnvUtils.getJdkExecutable(jarsigner));
   
  @@ -302,6 +304,15 @@
   cmd.setFailonerror(true);
   cmd.setTaskName(getTaskName());
   cmd.execute();
  +
  +// restore the lastModified attribute
  +if (preserveLastModified) {
  +if (jarTarget != null) {
  +jarTarget.setLastModified(lastModified);
  +} else {
  +jarSource.setLastModified(lastModified);
  +}
  +}
   }
   
   protected boolean isUpToDate(File jarFile, File signedjarFile) {
  @@ -344,6 +355,15 @@
   } catch (IOException e) {
   return false;
   }
  +}
  +
  +/**
  + * true to indicate that the signed jar modification date remains the 
same as the original.
  + * Defaults to false
  + * @param preserveLastModified if true preserve the last modified time
  + */
  +public void setPreserveLastModified(boolean preserveLastModified) {
  +this.preserveLastModified = preserveLastModified;
   }
   }
   
  
  
  
  1.9   +4 -0  
ant/src/testcases/org/apache/tools/ant/taskdefs/SignJarTest.java
  
  Index: SignJarTest.java
  ===
  RCS file: 
/home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/SignJarTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- SignJarTest.java  9 

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

2004-11-26 Thread peterreilly
peterreilly2004/11/26 02:07:59

  Modified:src/main/org/apache/tools/ant/taskdefs SignJar.java
  Log:
  make the preserveLastModified field private
  
  Revision  ChangesPath
  1.41  +1 -1  ant/src/main/org/apache/tools/ant/taskdefs/SignJar.java
  
  Index: SignJar.java
  ===
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/SignJar.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- SignJar.java  26 Nov 2004 09:52:06 -  1.40
  +++ SignJar.java  26 Nov 2004 10:07:59 -  1.41
  @@ -66,7 +66,7 @@
   protected boolean verbose;
   protected boolean internalsf;
   protected boolean sectionsonly;
  -protected boolean preserveLastModified;
  +private   boolean preserveLastModified;
   
   /** The maximum amount of memory to use for Jar signer */
   private String maxMemory;
  
  
  

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



DO NOT REPLY [Bug 30987] - [PATCH] signjar new preservelastmodified attribute

2004-11-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30987.
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=30987


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2004-11-26 11:10 ---
Commited the changes.
Made a change to the unit test to make sure that the preservelastmodified
attribute is used, the original test may have given false positives due
to filesystem time resolutions.
Thanks.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30987] - [PATCH] signjar new preservelastmodified attribute

2004-11-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30987.
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=30987





--- Additional Comments From [EMAIL PROTECTED]  2004-11-26 11:16 ---
I've just seen the changes in the testcase. Looks good :) Thanks, everyone. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32405] New: - Make ant.home a built-in property

2004-11-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32405.
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=32405

   Summary: Make ant.home a built-in  property
   Product: Ant
   Version: unspecified
  Platform: PC
OS/Version: All
Status: NEW
  Severity: critical
  Priority: P2
 Component: Core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


in several projects i've needed to know the installation dir of ant inside the
build script. Most often this is due to some ant jar file being present in a
classpath or fileset. Today this must be resolved using properties, that each of
the developers define to point at their particular ant installation. As some
IDEs come with a bundled ant package so you sometimes run from their version and
sometimes from the command line makes this even more cumbersome. please, let us
know where the ant directories are.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32114] - javadoc package specifications

2004-11-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32114.
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=32114





--- Additional Comments From [EMAIL PROTECTED]  2004-11-26 12:46 ---
Our doclet is a very slight modification of the standard doclet that simply
knows to include or exclude classes from the javadoc (and inheritance hierarchy
by pulling down methods from hidden classes into visible specializations)
so that we can describe our classes in a manner appropriate for public use. We
also want to include the package.html for those packages that contain visible
classes.

I didn't write our doclet so can't say for sure whether we can do what you
suggest. Having the ability in Ant to specify packages via the set of packages
for the selected classes or via a selector seems like a generally useful feature
anyway.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32405] - Make ant.home a built-in property

2004-11-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32405.
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=32405


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2004-11-26 12:55 ---
If not set on the command line, the ant.home property is set as a JVM property
by the Ant launcher code. The Ant project object should then pick it up and make
it available as an Ant property.

If some IDEs are not setting ant.home correctly, that is a bug in the IDE
integration and should be taken up with the IDE project or vendor.

There are some Ant operations (notably some modes of exec) which require
ant.home to be set correctly, so this is not an optional thing to do when
integrating Ant.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui/core ProjectManager.java

2004-11-26 Thread bodewig
bodewig 2004/11/26 04:33:31

  Modified:src/java/org/apache/tools/ant/gui/acs
ACSDtdDefinedElement.java ACSFactory.java
ACSIntrospectedElement.java
   src/java/org/apache/tools/ant/gui/core ProjectManager.java
  Log:
  Make it compile on JDK 1.5
  
  Revision  ChangesPath
  1.6   +8 -8  
ant-antidote/src/java/org/apache/tools/ant/gui/acs/ACSDtdDefinedElement.java
  
  Index: ACSDtdDefinedElement.java
  ===
  RCS file: 
/home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/acs/ACSDtdDefinedElement.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ACSDtdDefinedElement.java 28 Sep 2003 13:02:59 -  1.5
  +++ ACSDtdDefinedElement.java 26 Nov 2004 12:33:31 -  1.6
  @@ -1,7 +1,7 @@
   /*
* The Apache Software License, Version 1.1
*
  - * Copyright (c) 1999, 2000 The Apache Software Foundation.  All rights
  + * Copyright (c) 1999, 2000, 2004 The Apache Software Foundation.  All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
  @@ -184,15 +184,15 @@
   
   DOMAttributes old = (DOMAttributes) getNamedValues();
   
  -Enumeration enum = old.propertyNames();
  -while(enum.hasMoreElements()) {
  -String name = (String) enum.nextElement();
  +Enumeration en = old.propertyNames();
  +while(en.hasMoreElements()) {
  +String name = (String) en.nextElement();
   removeAttribute(name);
   }
   
  -enum = attributes.propertyNames();
  -while(enum.hasMoreElements()) {
  -String key = (String) enum.nextElement();
  +en = attributes.propertyNames();
  +while(en.hasMoreElements()) {
  +String key = (String) en.nextElement();
   setAttribute(key, attributes.getProperty(key));
   }
   
  
  
  
  1.7   +8 -8  
ant-antidote/src/java/org/apache/tools/ant/gui/acs/ACSFactory.java
  
  Index: ACSFactory.java
  ===
  RCS file: 
/home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/acs/ACSFactory.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ACSFactory.java   10 Feb 2003 14:34:56 -  1.6
  +++ ACSFactory.java   26 Nov 2004 12:33:31 -  1.7
  @@ -1,7 +1,7 @@
   /*
* The Apache Software License, Version 1.1
*
  - * Copyright (c) 2000 - 2003 The Apache Software Foundation.  All rights
  + * Copyright (c) 2000 - 2004 The Apache Software Foundation.  All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
  @@ -114,9 +114,9 @@
   _taskClassMap.load(org.apache.tools.ant.taskdefs.Ant.class.
 getResourceAsStream(defaults.properties));
   _taskClassMap.setProperty(property, antPropertyName);
  -Enumeration enum = _taskClassMap.propertyNames();
  -while(enum.hasMoreElements()) {
  -String name = (String) enum.nextElement();
  +Enumeration en = _taskClassMap.propertyNames();
  +while(en.hasMoreElements()) {
  +String name = (String) en.nextElement();
   
   // Directly collect Introspection Info for nown types
   analyzeClass(_taskClassMap.getProperty(name));
  @@ -134,9 +134,9 @@
   
((ClassInfo)_classInfoMap.get(antProjectName))._subelements.putAll(tempElementClassMap);
   
((ClassInfo)_classInfoMap.get(antTargetName))._subelements.put(property,antPropertyName);
   
((ClassInfo)_classInfoMap.get(antProjectName))._subelements.put(property,antPropertyName);
  -enum = _elementClassMap.propertyNames();
  -while(enum.hasMoreElements()) {
  -String name = (String) enum.nextElement();
  +en = _elementClassMap.propertyNames();
  +while(en.hasMoreElements()) {
  +String name = (String) en.nextElement();
   
   // Directly collect Introspection Info for nown types
   analyzeClass(_elementClassMap.getProperty(name));
  
  
  
  1.4   +8 -8  
ant-antidote/src/java/org/apache/tools/ant/gui/acs/ACSIntrospectedElement.java
  
  Index: ACSIntrospectedElement.java
  ===
  RCS file: 
/home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/acs/ACSIntrospectedElement.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ACSIntrospectedElement.java   28 Sep 2003 13:02:59 -  1.3
  +++ ACSIntrospectedElement.java   26 Nov 2004 12:33:31 -  1.4
  @@ -1,7 +1,7 @@
   /*
* The Apache Software License, Version 1.1
*
  - * Copyright 

cvs commit: ant/docs/manual/CoreTasks conditions.html

2004-11-26 Thread peterreilly
peterreilly2004/11/26 05:42:43

  Modified:docs/manual/CoreTasks conditions.html
  Log:
  add doc for issigned condition
  
  Revision  ChangesPath
  1.23  +31 -1 ant/docs/manual/CoreTasks/conditions.html
  
  Index: conditions.html
  ===
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/conditions.html,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- conditions.html   23 Jan 2004 16:41:13 -  1.22
  +++ conditions.html   26 Nov 2004 13:42:43 -  1.23
  @@ -325,7 +325,37 @@
   td valign=top align=centerNo/td
 /tr
   /table
  -
  +  h4issigned/h4
  +  p
  +Test whether a jarfile is signed.
  +If the name of the
  +signature is passed, the file is checked for presence of that
  +particular signature; otherwise the file is checked for the
  +existence of any signature
  +  /p
  +  p
  +This condition has been added in Apache Ant 1.7.
  +  /p
  +  table border=1 cellpadding=2 cellspacing=0
  +  tr
  +td valign=topbAttribute/b/td
  +td valign=topbDescription/b/td
  +td align=center valign=topbRequired/b/td
  +  /tr
  +  tr
  +td valign=topfile/td
  +td valign=top
  +  The jarfile that is to be tested for the presence
  +  of a signature.
  +/td
  +td valign=top align=centerYes/td
  +  /tr
  +  tr
  +td valign=topname/td
  +td valign=top The signature name to check for./td
  +td valign=top align=centerNo/td
  +  /tr
  +  /table
   h4typefound/h4
   
   pTest whether a given type is defined, and that
  
  
  

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



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

2004-11-26 Thread stevel
stevel  2004/11/26 05:58:26

  Modified:src/main/org/apache/tools/ant/types XMLCatalog.java
  Log:
  changed error message to explain what was missing.
  
  Revision  ChangesPath
  1.42  +1 -1  ant/src/main/org/apache/tools/ant/types/XMLCatalog.java
  
  Index: XMLCatalog.java
  ===
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/XMLCatalog.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- XMLCatalog.java   5 Nov 2004 15:13:32 -   1.41
  +++ XMLCatalog.java   26 Nov 2004 13:58:26 -  1.42
  @@ -539,7 +539,7 @@
   catalogResolver = new InternalResolver();
   if (getCatalogPath() != null
getCatalogPath().list().length != 0) {
  -log(Warning: catalogpath listing external catalogs
  +log(Warning: XML resolver not found; external 
catalogs
   +  will be ignored, Project.MSG_WARN);
   }
   log(Failed to load Apache resolver:  + ex, 
Project.MSG_DEBUG);
  
  
  

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



proposed new condition - isfileselected

2004-11-26 Thread Peter Reilly
Hi, I would like to add a new condition - isfileselected.
This is a condition that uses an embedded selector and
checks if a file passes the selector:
Example usages:
isfileselected file=a.xml
  date datetime=06/28/2000 2:02 pm when=equal/
/isfileselected
isfileselected file=a.xml
  or
 date datetime=06/28/2000 2:02 pm when=equal/
 size value=100 units=M when=more/
   /or
/isfileselected
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: proposed new condition - isfileselected

2004-11-26 Thread Jan . Materne
Sounds good - you make the whole selector framework accessible to 
the rest of tasks :)

Jan

 -Ursprüngliche Nachricht-
 Von: Peter Reilly [mailto:[EMAIL PROTECTED]
 Gesendet am: Freitag, 26. November 2004 15:39
 An: Ant Developers List
 Betreff: proposed new condition - isfileselected
 
 Hi, I would like to add a new condition - isfileselected.
 This is a condition that uses an embedded selector and
 checks if a file passes the selector:
 
 Example usages:
 isfileselected file=a.xml
date datetime=06/28/2000 2:02 pm when=equal/
 /isfileselected
 
 isfileselected file=a.xml
or
   date datetime=06/28/2000 2:02 pm when=equal/
   size value=100 units=M when=more/
 /or
 /isfileselected
 
 Peter
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: AW: proposed new condition - isfileselected

2004-11-26 Thread Antoine Levy-Lambert
Sounds good for me too.
Have a nice week-end.
Antoine.
[EMAIL PROTECTED] wrote:
Sounds good - you make the whole selector framework accessible to 
the rest of tasks :)

Jan
 

-Ursprüngliche Nachricht-
Von: Peter Reilly [mailto:[EMAIL PROTECTED]
Gesendet am: Freitag, 26. November 2004 15:39
An: Ant Developers List
Betreff: proposed new condition - isfileselected
Hi, I would like to add a new condition - isfileselected.
This is a condition that uses an embedded selector and
checks if a file passes the selector:
Example usages:
isfileselected file=a.xml
  date datetime=06/28/2000 2:02 pm when=equal/
/isfileselected
isfileselected file=a.xml
  or
 date datetime=06/28/2000 2:02 pm when=equal/
 size value=100 units=M when=more/
   /or
/isfileselected
Peter
   


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