On Wed, 2003-04-02 at 05:48, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I tried to make as the antlr plugin does and so i put the following in a
> maven.xml file closed to my project.xml:
>
> <project
> xmlns:maven="jelly:maven"
> xmlns:j="jelly:core"
> xmlns:u="jelly:util">
>
> <preGoal name="java:compile">
> <echo>Adding to the source path set.</echo>
> <maven:addPath id="maven.compile.src.set"
> refid="${maven.src.dir}/java"/>
> </preGoal>
>
> </project>
>
> But this doesn't seem to work. The message is well echoed but the path set does
> not seem to be appended.
You need to use references for both id and refid. You're using an id and
a path. There is a touchstone test for addPath which indeed verifies
addPath works correctly. Looks like this:
<!--
|
| <maven:addPath/> test.
|
-->
<goal name="test-addPath">
<path id="testPath1">
<pathelement location="/path1"/>
</path>
<path id="testPath2">
<pathelement location="/path2"/>
</path>
<path id="testPath">
</path>
<maven:addPath id="testPath" refid="testPath1"/>
<maven:addPath id="testPath" refid="testPath2"/>
</goal>
> Does someone knows why ? And how can i debug maven script in an other way than echo.
>
> Thanks. Didier.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
jvz.
Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]