Can anyone else confirm that this does not work? 
(override of maven.ejb.src doesn't affect the build of ejb-jar)

/Rikard

-----Ursprungligt meddelande-----
Fr�n: Lindstr�m, Rikard 
Skickat: den 13 november 2003 10:39
Till: [EMAIL PROTECTED]
�mne: SV: Override behaviour in ejb:ejb goal !?


Yes, that was a minor mistake by me :(
But the thing is that it doesn�t matter which value I set there, it still picks the 
resource-files from my original maven.ejb.src.

I�ve also tried to add a postGoal for ejb:ejb, which prints the value of 
maven.ejb.src. 
And guess what: 
- It prints the value that I have written! But if I look in the ejb-jar that is built, 
it are not the same xml-files which I have placed in the provided temp-dir.

I�m totally out of clues.

Regards / Rikard.

-----Ursprungligt meddelande-----
Fr�n: Nathan Coast [mailto:[EMAIL PROTECTED]
Skickat: den 13 november 2003 10:31
Till: Maven Users List
�mne: Re: Override behaviour in ejb:ejb goal !?


replacing the value of maven.ejb.src in your project.properties should work.  if 
it doesn't its a bug.

maven.ejb.src is the root of where your ejb-jar will be zipped so your 
descriptor files should be in ${maven.ejb.src}/META-INF

looking at your code you seem to be setting the ejb.src root to your descriptor 
dir which is wrong

 > <j:set var="maven.ejb.src" value="${maven.build.tempsrc}/META-INF"/>

hope this helps
Nathan

[EMAIL PROTECTED] wrote:

> Hi,
> I would like to be able to change the behaviour of the ejb-plugin, 
> namely the goal *ejb:ejb*.
> The thing is that I want to replace the resource-files with other ones 
> (same file-names, but different content) before the actual jar is being 
> built. This is kind of a problem :(
> I�ve tried to copy my xml files (ejb-jar.xml, weblogic-ejb-jar.xml etc) 
> to a different location and then change the variable *maven.ejb.src*, so 
> that it points on the new location where my xml files are placed. I 
> thought this would do an impact on the ejb:ejb goal, but it didn�t! It 
> seems like it doesn't care about my new path I�ve specified, and still 
> uses the original maven.ejb.src path when building the ejb-jar!
>  
> Have someone encountered a similiar or the exact same problem before, 
> and then managed to solve it somehow ?
>  
> Here is abit of my maven.xml:
>  
> <preGoal name="ejb:ejb">
> <ant:mkdir dir="${maven.build.tempsrc}"/>
>     <ant:copy todir="${maven.build.tempsrc}" overwrite="true">
>         <ant:fileset dir="${maven.src.dir}/ejb">
>             <ant:include name="**/*.xml"/>
>         </ant:fileset>
>     </ant:copy>
>  
> <!-- the value here doesn�t seem to affect the plugin -->
> <j:set var="maven.ejb.src" value="${maven.build.tempsrc}/META-INF"/>
>  
> <attainGoal name="replace:xml"/>
> </preGoal>
>  
> Best Regards / Rikard Lindstr�m.
>  
> ps. I want to replace the files because the resource-files in clearcase 
> contains tokens that must be replaced with a value before the jar is 
> built! ds.
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to