ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaron Ruckenstein" <yaron.ruckenst...@mobilitec.com>
Subject Problems using the propertyregex task
Date Wed, 03 Dec 2003 17:41:50 GMT
Hi

I'm using Ant-Contrib version version 0.5 with Ant 5.0 Java version is
jdk1.4.1_01

I'm using the propertyregex  command in the following way:

<propertyregex property="is.cfg" input="${file.name}" regexp="(^cfg)*"
select="\1" casesensitive="true" defaultValue=""/>

And I get the exceptions in the end of this e-mail.

I have the file jakarta-oro-2.0.7.jar in Ant's lib directory, and of course
the definition of the ant-contrib (other tasks work)

Does anyone have any idea what could be the problem ?

Thanks, Yaron.
----------------------------------------------------------------------------
--------------------------------------------------------------------------
file:V:/Software/tools/internal/bin/patch_builder30.xml:388:
java.lang.NullPoint
erException
        at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)

        at org.apache.tools.ant.Task.perform(Task.java:341)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:117)

        at net.sf.antcontrib.logic.ForEach.execute(Unknown Source)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)

        at org.apache.tools.ant.Task.perform(Task.java:341)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:117)

        at net.sf.antcontrib.logic.ForEach.execute(Unknown Source)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
Caused by: java.lang.NullPointerException
        at
org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp.substitute(Jdk14Re
gexpRegexp.java:85)
        at net.sf.antcontrib.property.RegexTask.doSelect(Unknown Source)
        at net.sf.antcontrib.property.RegexTask.execute(Unknown Source)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:117)

        at org.apache.tools.ant.Task.perform(Task.java:341)
        at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
        ... 26 more
--- Nested Exception ---
java.lang.NullPointerException
        at
org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp.substitute(Jdk14Re
gexpRegexp.java:85)
        at net.sf.antcontrib.property.RegexTask.doSelect(Unknown Source)
        at net.sf.antcontrib.property.RegexTask.execute(Unknown Source)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:117)

        at org.apache.tools.ant.Task.perform(Task.java:341)
        at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)

        at org.apache.tools.ant.Task.perform(Task.java:341)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:117)

        at net.sf.antcontrib.logic.ForEach.execute(Unknown Source)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)

        at org.apache.tools.ant.Task.perform(Task.java:341)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:117)

        at net.sf.antcontrib.logic.ForEach.execute(Unknown Source)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)


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


Mime
View raw message