ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebo, Alex" <Alex.R...@acs-inc.com>
Subject RE: Resource Collections in 1.7
Date Thu, 04 Jan 2007 21:16:55 GMT
Thank you, Matt, will try looping from ant-contrib.

One thing I noticed running Ant:
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apach
e/tools/ant/antlib.xml. It could not be found.

Do you know what might cause it and what overall impact it has?
Here's diagnostics:

------- Ant diagnostics report -------
Apache Ant version 1.7.0 compiled on December 13 2006

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.0
optional tasks : not available

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.0 compiled on December 13 2006
ant.java.version: 1.5
ant.core.lib: C:\Java\Apache\Ant\lib\ant.jar
ant.home: C:\Java\Apache\Ant

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: C:\Java\Apache\Ant
ant-antlr.jar (5769 bytes)
ant-apache-bcel.jar (8627 bytes)
ant-apache-bsf.jar (3980 bytes)
ant-apache-log4j.jar (3074 bytes)
ant-apache-oro.jar (39591 bytes)
ant-apache-regexp.jar (3737 bytes)
ant-apache-resolver.jar (4080 bytes)
ant-commons-logging.jar (3943 bytes)
ant-commons-net.jar (47163 bytes)
ant-jai.jar (21368 bytes)
ant-javamail.jar (7011 bytes)
ant-jdepend.jar (8152 bytes)
ant-jmf.jar (6609 bytes)
ant-jsch.jar (30122 bytes)
ant-junit.jar (92792 bytes)
ant-launcher.jar (11734 bytes)
ant-netrexx.jar (9895 bytes)
ant-nodeps.jar (430311 bytes)
ant-starteam.jar (35404 bytes)
ant-stylebook.jar (2334 bytes)
ant-swing.jar (6713 bytes)
ant-testutil.jar (14919 bytes)
ant-trax.jar (6897 bytes)
ant-weblogic.jar (14254 bytes)
ant.jar (1289806 bytes)
xercesImpl.jar (1212965 bytes)
xml-apis.jar (195119 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Documents and Settings\me
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
jdepend : Missing dependency jdepend.xmlui.JDepend
A task being missing/unavailable should only matter if you are trying to use
it

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

-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: C:\Java\Apache\Ant\lib\xercesImpl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: C:\Java\Apache\Ant\lib\xercesImpl.jar

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path : C:\Java\jdk1.5.0_06\jre\bin
java.vm.version : 1.5.0_06-b05
ant.library.dir : C:\Java\Apache\Ant\lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : ;
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
user.country : US
sun.os.patch.level : Service Pack 2
java.vm.specification.name : Java Virtual Machine Specification
user.dir : C:\Devel\RAD\RADWorkspace_Sample\ConfigureServer
java.runtime.version : 1.5.0_06-b05
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : C:\Java\jdk1.5.0_06\jre\lib\endorsed
os.arch : x86
java.io.tmpdir : C:\Temp\
line.separator :

java.vm.specification.vendor : Sun Microsystems Inc.
user.variant :
os.name : Windows XP
ant.home : C:\Java\Apache\Ant
sun.jnu.encoding : Cp1252
java.library.path :
C:\Java\jdk1.5.0_06\bin;.;C:\WINNT\system32;C:\WINNT;C:\Java
\jdk1.5.0_06\bin;C:\cygwin\bin;C:\Utils\UltraEdit;C:\WINNT\system32;C:\WINNT
;C:\
WINNT\system32\WBEM;C:\oracle\product\10.1.0\Client_2\bin;C:\oracle\product\
10.1
.0\Client_2\jre\1.4.2\bin\client;C:\oracle\product\10.1.0\Client_2\jre\1.4.2
\bin
;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\
SQLL
IB\SAMPLES\REPL;C:\Program Files\Common Files\Adaptec
Shared\System;C:\Program F
iles\Rational\ClearCase\bin;C:\Program
Files\Rational\common;c:\simulator;C:\Jav
a\Tivoli\LDAP\V6.0\sbin;C:\Java\Tivoli\LDAP\V6.0\lib;C:\Java\Tivoli\LDAP\V6.
0\bi
n;C:\Utils\PHP;C:\Java\Sun\AppServer\bin;C:\Program Files\Common Files\Roxio
Sha
red\DLLShared;C:\Utils\QuickTime\QTSystem\;C:\Java\jwsdp-2.0\jwsdp-shared\bi
n;C:
\Java\Apache\Ant\bin
java.specification.name : Java Platform API Specification
java.class.version : 49.0
sun.management.compiler : HotSpot Client Compiler
os.version : 5.1
user.home : C:\Documents and Settings\me
user.timezone : America/New_York
java.awt.printerjob : sun.awt.windows.WPrinterJob
file.encoding : Cp1252
java.specification.version : 1.5
user.name : me
java.class.path :
C:\Java\Apache\Ant\lib\ant-launcher.jar;C:\oracle\product\10.1
.0\Client_2\jdbc\lib\ojdbc14_g.jar;C:\Devel\RAD\RADWorkspace_Sample\Configur
eSer
ver\.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db
2jcc
.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
_lic
ense_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.ja
r;C:
\Java\jre1.5.0_06\lib\ext\QTJava.zip;C:\Java\Apache\Ant\lib\ant-antlr.jar;C:
\Jav
a\Apache\Ant\lib\ant-apache-bcel.jar;C:\Java\Apache\Ant\lib\ant-apache-bsf.j
ar;C
:\Java\Apache\Ant\lib\ant-apache-log4j.jar;C:\Java\Apache\Ant\lib\ant-apache
-oro
.jar;C:\Java\Apache\Ant\lib\ant-apache-regexp.jar;C:\Java\Apache\Ant\lib\ant
-apa
che-resolver.jar;C:\Java\Apache\Ant\lib\ant-commons-logging.jar;C:\Java\Apac
he\A
nt\lib\ant-commons-net.jar;C:\Java\Apache\Ant\lib\ant-jai.jar;C:\Java\Apache
\Ant
\lib\ant-javamail.jar;C:\Java\Apache\Ant\lib\ant-jdepend.jar;C:\Java\Apache\
Ant\
lib\ant-jmf.jar;C:\Java\Apache\Ant\lib\ant-jsch.jar;C:\Java\Apache\Ant\lib\a
nt-j
unit.jar;C:\Java\Apache\Ant\lib\ant-launcher.jar;C:\Java\Apache\Ant\lib\ant-
netr
exx.jar;C:\Java\Apache\Ant\lib\ant-nodeps.jar;C:\Java\Apache\Ant\lib\ant-sta
rtea
m.jar;C:\Java\Apache\Ant\lib\ant-stylebook.jar;C:\Java\Apache\Ant\lib\ant-sw
ing.
jar;C:\Java\Apache\Ant\lib\ant-testutil.jar;C:\Java\Apache\Ant\lib\ant-trax.
jar;
C:\Java\Apache\Ant\lib\ant-weblogic.jar;C:\Java\Apache\Ant\lib\ant.jar;C:\Ja
va\A
pache\Ant\lib\xercesImpl.jar;C:\Java\Apache\Ant\lib\xml-apis.jar;C:\Java\jdk
1.5.
0_06\lib\tools.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : C:\Java\jdk1.5.0_06\jre
java.specification.vendor : Sun Microsystems Inc.
user.language : en
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode, sharing
java.version : 1.5.0_06
java.ext.dirs : C:\Java\jdk1.5.0_06\jre\lib\ext
sun.boot.class.path :
C:\Java\jdk1.5.0_06\jre\lib\rt.jar;C:\Java\jdk1.5.0_06\jre
\lib\i18n.jar;C:\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;C:\Java\jdk1.5.0_06
\jre
\lib\jsse.jar;C:\Java\jdk1.5.0_06\jre\lib\jce.jar;C:\Java\jdk1.5.0_06\jre\li
b\ch
arsets.jar;C:\Java\jdk1.5.0_06\jre\classes
java.vendor : Sun Microsystems Inc.
file.separator : \
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.desktop : windows
sun.cpu.isalist :

-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is C:\Temp\
Temp dir is writeable
Temp dir alignment with system clock is 0 ms

-------------------------------------------
 Locale information
-------------------------------------------
Timezone Eastern Standard Time offset=-18000000

-------------------------------------------
 Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection 

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com]
Sent: Thursday, January 04, 2007 13:34
To: Ant Users List
Subject: Re: Resource Collections in 1.7


--- "Rebo, Alex" <Alex.Rebo@acs-inc.com> wrote:

Any relation to Max?  (sorry, couldn't resist...)

> 
> >Hello,
> >
> >Could you, please, help me to understand how to
> utilize Resource
> >Collections? 
> >
> >As an example, please, consider illustrating how
> Ant task may verify the
> >proper # of elements in a particular collection
> (say, number of files in a
> >fileset) or 
> >operate only on a subset of elements that different
> from the list obtained
> >in an earlier step (i.e., contents of some other
> directory, represented,
> >say, by a fileset).
> >

What?  You want to know how many elements of one
fileset are not in another fileset?  Given filesets f1
and f2:

<resourcecount>
  <difference>
    <fileset refid="fs1" />
    <fileset refid="fs2" />
  </difference>
</resourcecount>

Does that answer your question?

-Matt

> >Honestly tried to figure it out from the manual,
> but ...
> >
> >Many thanks!
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message