[EMAIL PROTECTED] wrote on 10/06/2003 12:28:53 PM:
>
>
> I am getting the following error with Maven-cvs-head :
>
> In my maven.xml, I have
>
> <preGoal name="test:test">
> <replace file="${maven.test.dest}/entityengine.xml" token="%
> USER%" value="${test.dbuser}"/>
> </preGoal>
>
> And I get the error:
>
> BUILD FAILED
> null:37:50: <attainGoal> null:34:37: <attainGoal> null:164:48:
> <replace> Replace: source file \entityengine.xml doesn't exist
> Total time: 2 minutes 57 seconds
>
> ... even though ${maven.test.dest}/entityengine.xml clearly exists.
> I have tested ${maven.test.dest} and its null - which accounts for the
> error. Question is why is it null?
>
> Q1) Is that error msg from Jelly what we would expect?? Looks broken...
>From jelly yes. From maven, no.
> Q2) This might be related to
> http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-469
Looks completely unrelated.
> Q3) I would expect the test plugin properties to be set by the time the
> pre-goal gets called, right?
Nope. You'll need to not use the ${maven.test.dest} style and use
${pom.getPluginContext('maven-test-plugin').getVariable('maven.test.dest')}
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
Work: http://www.multitask.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]