I took a look into the sources.

In xml-commons-1.0.b2\java\src\org\apache\env\WhichJar.properties is a list
with
the "official" values. And for Ant is

# Used by org.apache.env.WhichJar
# Format:   NNNN.jarname.jar=description
#  Where:   NNNN is actual size in bytes of jarname.jar
#           from an *officially shipped* version

# jakarta-ant releases
330479.ant.jar=from jakarta-ant-1.2-bin
295934.ant.jar=from jakarta-ant-1.3-bin
417114.ant.jar=from jakarta-ant-1.4.1b1-bin


Not very actual ...



That file is loaded by WhichJar in 
        private static void loadJarTable(Properties table, String tableURL)
The only way to update these values I see is to update the jar.

I extracted the org/apache/env/WhichJar.properties to c:\ with
pathinformation,
edited it by adding the two lines
        # test by Jan Mat�rne
        732922.ant.jar=Apache Ant version 1.6alpha compiled on October 7
2002
(not indented) and put it back into the jar (with pathinfos). So the
original
was overwritten and the result is:
        #---- BEGIN: Ant.hashinfo
        ant.jar.unknown=c:\seu\jdk14\jre\lib\ext\ant.jar does not exist
        Ant.version=Apache Ant version 1.6alpha compiled on October 7 2002
        ant.jar.path=c:\seu\ant16\lib\ant.jar
        ant.jar.shipped-version=Apache Ant version 1.6alpha compiled on
October 7 2002
        #----   END: Ant.hashinfo


Only for test. That file should be updated on Apache server.


Jan Mat�rne

-----Urspr�ngliche Nachricht-----
Von: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 23. Januar 2003 17:19
An: 'Ant Users List'
Betreff: RE: Which task

Thanks Jan and Stefan. That ought to become a FAQ ;-)

Now, after downloading the indicated ZIP, and extracting which.jar from it,
and putting it in $ANT_HOME/lib, I get the output below... How come it says:

ant.jar.ok-present=not from an official release, size:717666

When it is in fact an official 1.5.1 release of Ant I'm using???

Just wondering. Thanks, --DD

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
#---- BEGIN: Which report
Which.version=Which.java:($Revision: 1.2 $) WhichJar.java:($Revision: 1.1 $)
Which.special-note=No -projects provided, using DEFAULT_PROJECTS
java.version=1.4.0_01
file.encoding=Cp1252
java.ext.dirs=C:\pro\jdk1.4.0_01\jre\lib\ext
java.class.path=C:\pro\jdk1.4.0_01\lib\tools.jar;C:\pro\ant1.5.1\lib\xml-api
s.jar;C:\pro\ant1.5.1\li
b\xercesImpl.jar;C:\pro\ant1.5.1\lib\which.jar;C:\pro\ant1.5.1\lib\pmd-1.01.
jar;C:\pro\ant1.5.1\lib\
optional.jar;C:\pro\ant1.5.1\lib\js.jar;C:\pro\ant1.5.1\lib\bsf.jar;C:\pro\a
nt1.5.1\lib\ant.jar;C:\p
ro\ant1.5.1\lib\ant-contrib-0.1.jar;
Which.status=.not-found
os.name=Windows 2000
java.vendor=Sun Microsystems Inc.
sun.boot.class.path=C:\pro\jdk1.4.0_01\jre\lib\rt.jar;C:\pro\jdk1.4.0_01\jre
\lib\i18n.jar;C:\pro\jdk
1.4.0_01\jre\lib\sunrsasign.jar;C:\pro\jdk1.4.0_01\jre\lib\jsse.jar;C:\pro\j
dk1.4.0_01\jre\lib\jce.j
ar;C:\pro\jdk1.4.0_01\jre\lib\charsets.jar;C:\pro\jdk1.4.0_01\jre\classes
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
#---- BEGIN: Xalan.hashinfo
xalan.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\xalan.jar does not exist
Xalan2x.version=Xalan Java 2.2.D11
xml-apis.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\xml-apis.jar does not
exist
xml-apis.jar.ok-present=not from an official release, size:108484
xml-apis.jar.path=c:\pro\ant1.5.1\lib\xml-apis.jar
Xalan22+.version=.not-found
Xalan1.version=.not-found
#----   END: Xalan.hashinfo
#---- BEGIN: Crimson.hashinfo
crimson.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\crimson.jar does not
exist
Crimson.version=present-unknown-version
#----   END: Crimson.hashinfo
#---- BEGIN: Xerces.hashinfo
xmlParserAPIs.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\xmlParserAPIs.jar
does not exist
Xerces2.version=Xerces-J 2.2.0
Xerces1.version=.not-found
xerces.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\xerces.jar does not exist
#----   END: Xerces.hashinfo
#---- BEGIN: XmlCommons.hashinfo
dom.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\dom.jar does not exist
XmlCommons.jaxp.version=1.1
sax.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\sax.jar does not exist
xml-apis.jar.path=c:\pro\ant1.5.1\lib\xml-apis.jar
XmlCommons.sax.version=2.0
xml-apis.jar.ok-present=not from an official release, size:108484
xml-apis.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\xml-apis.jar does not
exist
XmlCommons.version=XmlCommons 1.0
XmlCommons.dom.version=2.0
jaxp.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\jaxp.jar does not exist
#----   END: XmlCommons.hashinfo
#---- BEGIN: Ant.hashinfo
ant.jar.unknown=c:\pro\jdk1.4.0_01\jre\lib\ext\ant.jar does not exist
Ant.version=Apache Ant version 1.5.1 compiled on October 2 2002
ant.jar.path=c:\pro\ant1.5.1\lib\ant.jar
ant.jar.ok-present=not from an official release, size:717666
#----   END: Ant.hashinfo
#----   END: Which report

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 10:08 AM
To: [EMAIL PROTECTED]
Subject: AW: Which task

A lttle more reading and voila:

http://xml.apache.org/commons/#releases

Download:
http://xml.apache.org/dist/commons/
http://xml.apache.org/dist/commons/xml-commons-1.0.b2.zip
        (contains which.jar and Which*-Classes)


Jan Mat�rne

-----Urspr�ngliche Nachricht-----
Von: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 23. Januar 2003 15:36
An: 'Ant Users List'
Betreff: RE: Which task

Thanks. I saw some of them too, but I still haven't found anything
resembling an Ant task. And not knowing exactly what's needed doesn't make
it easier. Since ant -diagnostics is outputting this message, couldn't
either the task be re-implemented in Ant, or the actual location be
indicated. St�phane introduced -diagnostics isn't it? Since he's on an
extended leave, doesn't anyone else know about this? --DD

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 12:53 AM
To: [EMAIL PROTECTED]
Subject: AW: Which task

I did a little search for you:

http://cvs.apache.org/viewcvs.cgi/xml-commons/src/documentation/content/xdoc
s/components/which/index.xml?rev=HEAD&content-type=text/vnd.viewcvs-markup
"Overview
Which is a simple environment checking utility that focuses on reporting the
versions of 
various XML interfaces and some common Apache projects.
Currently, most of the documentation about Which is in it's Javadoc, which
you can 
build via build docs.

And under http://cvs.apache.org/viewcvs.cgi/xml-commons/java/ there are some
entries.


Jan Mat�rne


-----Urspr�ngliche Nachricht-----
Von: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 22. Januar 2003 16:24
An: '[EMAIL PROTECTED]'
Betreff: Which task

Where can I get org.apache.env.Which exactly. The URL is a little vague.
Thanks, --DD

P:\org_apache\antx>ant -diagnostics
------- Ant diagnostics report -------
Apache Ant version 1.5.1 compiled on October 2 2002

<snip/>

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

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

Reply via email to