Not ideal, but you could set up another profile that has the full path
from the parent, and specify that when running from the parent ie
sql2java_top or something.

Wayne

On 8/6/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm using a code generator, and I'd like to avoid regeneration of code on
> each build.
>
> I've set a profile to launch the generation using the antrun plugin
> The profile is active based on a generated file missing :
>
> <profile>
>      <id>sql2java</id>
>      <activation>
>        <file>
>          <missing>target/generated-sources/sql2java.tstamp</missing>
>        </file>
>      </activation>
>      <build>
> ...
>
> As explained in http://docs.codehaus.org/display/MAVENUSER/Profiles, I
> cannot reference ${project.build.directory} in this path.
> When I run "mvn install" from my parent POM, generator runs even if code
> allready exist, as the project basedir is not the same as running from the
> module.
>
> Is there any way to solve this ? Is there any plan for properties support in
> profiles activation ?
>
> Nico.
>

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

Reply via email to