You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Paul Galbraith <pg...@trigoncanada.com> on 2004/07/30 17:09:03 UTC

Problems using containsregexp selector

I put together a simple ant script to watch the containsregexp selector
at work, and I'm seeing some bizarre results.  This could be problems in
ant-contrib, or brain damage on my part, or who knows what.  If anyone
can explain the results to me, I'd appreciate it.

Basically, I just unpacked the rt.jar from my JDK and then tried to
print out the names of all class files that match the regex
"ClassLoader".  Seems simple enough to me.  I'm using ant 1.6.2 running
under sun jvm 1.4.2_05.

Here's my ant script (including ant-contrib-1.0b1 task):

<project default="regex">
    <taskdef resource="net/sf/antcontrib/antlib.xml"/>
    <target name="unpack">
	<unjar src="jre/lib/rt.jar" dest="rt"/>
    </target>
    <target name="regex" depends="unpack">
	<foreach target="print" param="fn">
	    <path>
		<fileset dir="rt">
		    <containsregexp expression="ClassLoader"/>
		</fileset>
	    </path>
	</foreach>
    </target>
    <target name="print">
	<echo message="${fn}"/>
    </target>
</project>

I would have expected a list of classes matching "ClassLoader" to be
echoed to the console, but instead I get results like (truncated, but
you should see my reason for confusion...) the output below.  Can anyone
explain this?

----------

unpack:
    [unjar] Expanding: C:\j2sdk1.4.2_05\jre\lib\rt.jar into
C:\j2sdk1.4.2_05\rt

regex:

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\Activation\ServerMain.clas
s

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\Activation\ServerManagerIm
pl.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\Interceptors\PIORB.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\Interceptors\RequestInfoIm
pl.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\POA\POAORB.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\POA\ServantCachePOAClientS
C.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\corba\ClientDelegate.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\corba\ORB.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\CDRInputStream_1_0.cl
ass

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\CDROutputStream_1_0.c
lass

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\messages\LocateReplyM
essage_1_2.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\messages\ReplyMessage
_1_0.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\messages\ReplyMessage
_1_1.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\messages\ReplyMessage
_1_2.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\io\ValueHandlerImpl$Stream
Factory.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\javax\rmi\CORBA\Util.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\orbutil\ORBClassLoader.cla
ss

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\orbutil\ORBUtility.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\orbutil\RepositoryId_1_3.c
lass

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\orbutil\RepositoryId_1_3_1
.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKBridge.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKClassLoader$1.clas
s

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKClassLoader$JDKCla
ssLoaderCache$CacheKey.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKClassLoader$JDKCla
ssLoaderCache.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKClassLoader.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\RepositoryId.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\Utility.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\java\swing\plaf\gtk\GTKStyle$GTKLazyValue.cl
ass

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\java\swing\plaf\gtk\SynthInternalFrameTitleP
ane.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\Obj$LoaderInputStream.class

print:
     [echo] C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\Obj.class

print:
     [echo] C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\VersionHelper.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\VersionHelper12$1.class

print:
     [echo] C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\VersionHelper12.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\media\sound\DefaultSecurity.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\FactoryEnumeration.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\ResourceManager.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\VersionHelper.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\VersionHelper12$5.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\VersionHelper12$6.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\VersionHelper12.class

print:
     [echo] C:\j2sdk1.4.2_05\rt\com\sun\security\auth\PolicyFile.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\security\auth\SubjectCodeSource$2.class

print:
     [echo]
C:\j2sdk1.4.2_05\rt\com\sun\security\auth\SubjectCodeSource.class


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


Re: change to a property

Posted by "mail.laconiadatasystems.com" <we...@laconiadatasystems.com>.
Thats what I was looking for
Thanks Dale!
-Martin
----- Original Message -----
From: "Dale Anson" <da...@germane-software.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Saturday, July 31, 2004 12:19 PM
Subject: Re: change to a property


> Another option would be to use the 'variable' task from ant-contrib.
> 'variable' is used exactly like a property, but is mutable.
>
> Dale
>
>
> Bill Rich wrote:
> > Properties are immutable so you can not change them once they are set.
But,
> > you can specify the value multiple times so that only the first one will
> > take effect.  You can specify the value of a property on the command
line
> > (-Dprop=value).  This will be the first setting of the property so no
other
> > settings in the ant file will override it.
> >
> > Or if you can't/won't specify it on the command line you may need some
extra
> > code to determine which one you want to set in the ant file.  You could
test
> > to see if an environment var is set and use it or use a default value.
> >
> > I generally use a three tier approach --
> > 1. Set from the command line
> > 2. Set from a .properties file loaded by the ant file (before any other
> > target gets control)
> > 3. Set default value in the ant file
> >
> > Bill Rich
> > Wilandra Consulting LLC
> > 1325 Addiewell Place
> > San Jose, CA  95120-3905
> > phone:      +1 408 268-2452
> > mobile:     +1 408 410-9713
> > Santa Cruz: +1 831 464-9007
> > fax:        +1 413 669-9716
> > billrich@wilandra.com or billrich@attglobal.net
> > http://www.wilandra.com
> >
> > -----Original Message-----
> > From: mail.laconiadatasystems.com
[mailto:webmaster@laconiadatasystems.com]
> > Sent: Saturday, July 31, 2004 4:14 AM
> > To: Ant Users List
> > Subject: change to a property
> >
> > I have a situation where a default value of a property should be
overwritten
> > I was contemplating pegging the property to an environment variable but
> > couldnt find a working example Does anyone have an example of a property
> > which changes because of an environment variable change and how to
implement
> > this ???
> > thanks,
> > martin
> >
> >
> > ---------------------------------------------------------------------
> > 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
> >
>
> ---------------------------------------------------------------------
> 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


Re: change to a property

Posted by Dale Anson <da...@germane-software.com>.
Another option would be to use the 'variable' task from ant-contrib. 
'variable' is used exactly like a property, but is mutable.

Dale


Bill Rich wrote:
> Properties are immutable so you can not change them once they are set.  But,
> you can specify the value multiple times so that only the first one will
> take effect.  You can specify the value of a property on the command line
> (-Dprop=value).  This will be the first setting of the property so no other
> settings in the ant file will override it.
> 
> Or if you can't/won't specify it on the command line you may need some extra
> code to determine which one you want to set in the ant file.  You could test
> to see if an environment var is set and use it or use a default value.
> 
> I generally use a three tier approach --
> 1. Set from the command line
> 2. Set from a .properties file loaded by the ant file (before any other
> target gets control)
> 3. Set default value in the ant file
> 
> Bill Rich
> Wilandra Consulting LLC
> 1325 Addiewell Place
> San Jose, CA  95120-3905
> phone:      +1 408 268-2452
> mobile:     +1 408 410-9713
> Santa Cruz: +1 831 464-9007
> fax:        +1 413 669-9716
> billrich@wilandra.com or billrich@attglobal.net
> http://www.wilandra.com
> 
> -----Original Message-----
> From: mail.laconiadatasystems.com [mailto:webmaster@laconiadatasystems.com] 
> Sent: Saturday, July 31, 2004 4:14 AM
> To: Ant Users List
> Subject: change to a property
> 
> I have a situation where a default value of a property should be overwritten
> I was contemplating pegging the property to an environment variable but
> couldnt find a working example Does anyone have an example of a property
> which changes because of an environment variable change and how to implement
> this ???
> thanks,
> martin
> 
> 
> ---------------------------------------------------------------------
> 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
> 

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


Re: change to a property

Posted by "mail.laconiadatasystems.com" <we...@laconiadatasystems.com>.
Hello All:
Is there any way to change a property or variable from the default Datatype
of String
to Integer?
Many Thanks,
-martin


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


RE: change to a property

Posted by Bill Rich <bi...@attglobal.net>.
Properties are immutable so you can not change them once they are set.  But,
you can specify the value multiple times so that only the first one will
take effect.  You can specify the value of a property on the command line
(-Dprop=value).  This will be the first setting of the property so no other
settings in the ant file will override it.

Or if you can't/won't specify it on the command line you may need some extra
code to determine which one you want to set in the ant file.  You could test
to see if an environment var is set and use it or use a default value.

I generally use a three tier approach --
1. Set from the command line
2. Set from a .properties file loaded by the ant file (before any other
target gets control)
3. Set default value in the ant file

Bill Rich
Wilandra Consulting LLC
1325 Addiewell Place
San Jose, CA  95120-3905
phone:      +1 408 268-2452
mobile:     +1 408 410-9713
Santa Cruz: +1 831 464-9007
fax:        +1 413 669-9716
billrich@wilandra.com or billrich@attglobal.net
http://www.wilandra.com

-----Original Message-----
From: mail.laconiadatasystems.com [mailto:webmaster@laconiadatasystems.com] 
Sent: Saturday, July 31, 2004 4:14 AM
To: Ant Users List
Subject: change to a property

I have a situation where a default value of a property should be overwritten
I was contemplating pegging the property to an environment variable but
couldnt find a working example Does anyone have an example of a property
which changes because of an environment variable change and how to implement
this ???
thanks,
martin


---------------------------------------------------------------------
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


change to a property

Posted by "mail.laconiadatasystems.com" <we...@laconiadatasystems.com>.
I have a situation where a default value of a property should be overwritten
I was contemplating pegging the property to an environment variable but
couldnt find
a working example
Does anyone have an example of a property which changes because of an
environment variable
change and how to implement this ???
thanks,
martin


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


Re: Call an ant build file from a java file?

Posted by Matt Benson <gu...@yahoo.com>.
--- Chris <ch...@branaghgroup.com> wrote:

> Is it possible to execute ant build files from a
> java source?
> 
> Chris

Yes, one quick place to look would be in the testcases
subdivision of Ant's
source--org.apache.tools.ant.BuildFileTest in
particular may give you a nice head start.  Also you
should definitely read "Developing with Ant">"Using
Ant Tasks Outside of Ant" from the manual.

-Matt


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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


Call an ant build file from a java file?

Posted by Chris <ch...@branaghgroup.com>.
Is it possible to execute ant build files from a java source?

Chris

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


Re: Problems using containsregexp selector

Posted by Peter Reilly <pe...@apache.org>.
The <containsregexp> uses the content of the file to select the
file and not the filename.

There is currently no selector for filenames using regular expressions.
There is however one that uses ant include/exclude expressions.

The following works:

		<fileset dir="rt">
		    <filename name="**/*ClassLoader*"/>
		</fileset>

Peter

Paul Galbraith wrote:

>I put together a simple ant script to watch the containsregexp selector
>at work, and I'm seeing some bizarre results.  This could be problems in
>ant-contrib, or brain damage on my part, or who knows what.  If anyone
>can explain the results to me, I'd appreciate it.
>
>Basically, I just unpacked the rt.jar from my JDK and then tried to
>print out the names of all class files that match the regex
>"ClassLoader".  Seems simple enough to me.  I'm using ant 1.6.2 running
>under sun jvm 1.4.2_05.
>
>Here's my ant script (including ant-contrib-1.0b1 task):
>
><project default="regex">
>    <taskdef resource="net/sf/antcontrib/antlib.xml"/>
>    <target name="unpack">
>	<unjar src="jre/lib/rt.jar" dest="rt"/>
>    </target>
>    <target name="regex" depends="unpack">
>	<foreach target="print" param="fn">
>	    <path>
>		<fileset dir="rt">
>		    <containsregexp expression="ClassLoader"/>
>		</fileset>
>	    </path>
>	</foreach>
>    </target>
>    <target name="print">
>	<echo message="${fn}"/>
>    </target>
></project>
>
>I would have expected a list of classes matching "ClassLoader" to be
>echoed to the console, but instead I get results like (truncated, but
>you should see my reason for confusion...) the output below.  Can anyone
>explain this?
>
>----------
>
>unpack:
>    [unjar] Expanding: C:\j2sdk1.4.2_05\jre\lib\rt.jar into
>C:\j2sdk1.4.2_05\rt
>
>regex:
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\Activation\ServerMain.clas
>s
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\Activation\ServerManagerIm
>pl.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\Interceptors\PIORB.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\Interceptors\RequestInfoIm
>pl.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\POA\POAORB.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\POA\ServantCachePOAClientS
>C.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\corba\ClientDelegate.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\corba\ORB.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\CDRInputStream_1_0.cl
>ass
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\CDROutputStream_1_0.c
>lass
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\messages\LocateReplyM
>essage_1_2.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\messages\ReplyMessage
>_1_0.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\messages\ReplyMessage
>_1_1.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\iiop\messages\ReplyMessage
>_1_2.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\io\ValueHandlerImpl$Stream
>Factory.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\javax\rmi\CORBA\Util.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\orbutil\ORBClassLoader.cla
>ss
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\orbutil\ORBUtility.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\orbutil\RepositoryId_1_3.c
>lass
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\orbutil\RepositoryId_1_3_1
>.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKBridge.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKClassLoader$1.clas
>s
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKClassLoader$JDKCla
>ssLoaderCache$CacheKey.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKClassLoader$JDKCla
>ssLoaderCache.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\JDKClassLoader.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\RepositoryId.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\corba\se\internal\util\Utility.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\java\swing\plaf\gtk\GTKStyle$GTKLazyValue.cl
>ass
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\java\swing\plaf\gtk\SynthInternalFrameTitleP
>ane.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\Obj$LoaderInputStream.class
>
>print:
>     [echo] C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\Obj.class
>
>print:
>     [echo] C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\VersionHelper.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\VersionHelper12$1.class
>
>print:
>     [echo] C:\j2sdk1.4.2_05\rt\com\sun\jndi\ldap\VersionHelper12.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\media\sound\DefaultSecurity.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\FactoryEnumeration.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\ResourceManager.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\VersionHelper.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\VersionHelper12$5.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\VersionHelper12$6.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\naming\internal\VersionHelper12.class
>
>print:
>     [echo] C:\j2sdk1.4.2_05\rt\com\sun\security\auth\PolicyFile.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\security\auth\SubjectCodeSource$2.class
>
>print:
>     [echo]
>C:\j2sdk1.4.2_05\rt\com\sun\security\auth\SubjectCodeSource.class
>
>
>---------------------------------------------------------------------
>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


Re: Problems using containsregexp selector

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Paul Galbraith wrote:

> I put together a simple ant script to watch the containsregexp selector
> at work, and I'm seeing some bizarre results.  This could be problems in
> ant-contrib, or brain damage on my part, or who knows what.  If anyone
> can explain the results to me, I'd appreciate it.
> 

I think you are searching for files that contain ClassLoader rather than 
files whose names contain ClassLoader. In that case the results are 
reasonable.

Conor




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