ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garrick Olson <Garrick.Ol...@Aceva.com>
Subject RE: Sample usage of maudit task?
Date Tue, 22 Jan 2002 20:37:31 GMT

I found it very tricky to get the maudit task working.  It might just be a
problem with my version of the audit program, but here is what I use:

        <maudit tofile="${audit.output}/audit.xml"
metamatahome="${metamata.home}" unused="no" fix="no">
            <classpath refid="testing.class.path"/>
            <fileset dir="${basedir}/${app.source}">
                <include name="**/*.java"/>
            </fileset>
            <jvmarg
value="-Dmetamata.classpath=${metamata.home}/custom${path.separator}${metama
ta.home}/lib/metamata.jar${path.separator}${audit.path}"/>
            <jvmarg
value="-Dmetamata.sourcepath=${basedir}/${app.source}${path.separator}${base
dir}/${all.source}"/>
            <jvmarg
value="-Dmetamata.baseclasspath=${metamata.home}/custom${path.separator}${me
tamata.home}/lib/metamata.jar"/>
        </maudit>

The task seems to fail if I don't pass the <jvmarg>'s appropriately.  Hope
this helps.

-----Original Message-----
From: lduperval@microcelli5.com [mailto:lduperval@microcelli5.com]
Sent: Tuesday, January 22, 2002 12:08 PM
To: Ant Users mailing List
Subject: Sample usage of maudit task?
Importance: Low


Hi,

Does anyone here have a sample use of the maudit task? When I run it, I get:

/home/laurent/devel/cvs/masq/modules/masq-fido/build.xml:136: No supported
regular expression matcher found
	at
org.apache.tools.ant.util.regexp.RegexpMatcherFactory.newRegexpMatcher(Regex
pMatcherFactory.java:94)
	at
org.apache.tools.ant.taskdefs.optional.metamata.MAuditStreamHandler.<init>(M
AuditStreamHandler.java:113)
	at
org.apache.tools.ant.taskdefs.optional.metamata.MAudit.createStreamHandler(M
Audit.java:219)
	at
org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask.execute
(AbstractMetamataTask.java:163)
	at org.apache.tools.ant.Task.perform(Task.java:217)
	at org.apache.tools.ant.Target.execute(Target.java:184)
	at org.apache.tools.ant.Target.performTasks(Target.java:202)
	at org.apache.tools.ant.Project.executeTarget(Project.java:601)
	at org.apache.tools.ant.Project.executeTargets(Project.java:560)
	at org.apache.tools.ant.Main.runBuild(Main.java:454)
	at org.apache.tools.ant.Main.start(Main.java:153)
	at org.apache.tools.ant.Main.main(Main.java:176)
/home/laurent/devel/cvs/masq/modules/masq-fido/build.xml:136: No supported
regular expression matcher found
	at
org.apache.tools.ant.util.regexp.RegexpMatcherFactory.newRegexpMatcher(Regex
pMatcherFactory.java:94)
	at
org.apache.tools.ant.taskdefs.optional.metamata.MAuditStreamHandler.<init>(M
AuditStreamHandler.java:113)
	at
org.apache.tools.ant.taskdefs.optional.metamata.MAudit.createStreamHandler(M
Audit.java:219)
	at
org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask.execute
(AbstractMetamataTask.java:163)
	at org.apache.tools.ant.Task.perform(Task.java:217)
	at org.apache.tools.ant.Target.execute(Target.java:184)
	at org.apache.tools.ant.Target.performTasks(Target.java:202)
	at org.apache.tools.ant.Project.executeTarget(Project.java:601)
	at org.apache.tools.ant.Project.executeTargets(Project.java:560)
	at org.apache.tools.ant.Main.runBuild(Main.java:454)
	at org.apache.tools.ant.Main.start(Main.java:153)
	at org.apache.tools.ant.Main.main(Main.java:176)

So I added jakarta oro 2.0.4 to the lib directory and I get:

/home/laurent/devel/cvs/masq/modules/masq-fido/build.xml:136: Metamata task
failed.
	at
org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask.execute
0(AbstractMetamataTask.java:211)
	at
org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask.execute
(AbstractMetamataTask.java:164)
	at org.apache.tools.ant.Task.perform(Task.java:217)
	at org.apache.tools.ant.Target.execute(Target.java:184)
	at org.apache.tools.ant.Target.performTasks(Target.java:202)
	at org.apache.tools.ant.Project.executeTarget(Project.java:601)
	at org.apache.tools.ant.Project.executeTargets(Project.java:560)
	at org.apache.tools.ant.Main.runBuild(Main.java:454)
	at org.apache.tools.ant.Main.start(Main.java:153)
	at org.apache.tools.ant.Main.main(Main.java:176)


-- 
Laurent Duperval <mailto:lduperval@microcelli5.com>

La simplicité désarmante de mon génie m'étonne toujours.
                                             -Achille Talon


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



Confidential Information. This email is for intended recipient only.




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


Mime
View raw message