I am trying to convince the native-maven-plugin to give my linked executable a slightly different name when used from a particular profile.

I thought this should work
       <profile>
           <id>posix</id>
           <build>
<finalName>${project.artifactId}.posix.${project.version}</finalName>
               <plugins>
                   <plugin>
                       <groupId>org.codehaus.mojo</groupId>
                       <artifactId>native-maven-plugin</artifactId>
                       <extensions>true</extensions>

but it doesn't

Looking at the code, the linker mojo does this

primaryArtifact.setFile( new File( this.outputDirectory + "/" + 
this.project.getBuild().getFinalName() + "."
           + this.project.getArtifact().getArtifactHandler().getExtension() ) );


which looks like it should work ...

Anyone got any clues as to what is going wrong?

Thanks,
Matthew

--
---------------------------
J. Matthew Pryor
Observant Pty Ltd
http://www.observant.com.au
Ph: +61 3 8415 0288


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to