In our poms we have things like:

<profile>
      <id>process-docbook</id>
      <activation>
        <file><exists>src/docbook</exists></file>
      </activation>
   ... etc

which runs if the project containing the POM has a src/docbook subdirectory.

We're using Maven 3.0 (not snapshot).  This snippet is in a shared parent pom.

Since it works for us and not for you, I'm guessing there's some small detail
that's different, but I don't know what it might be. 
Perhaps you could post some small "test case" scenario for others to try and see
what's going wrong?

-Marshall Schor



On 12/3/2010 6:17 PM, dloy wrote:
> I'm a new to maven. I've recently tried unsuccessfully to get
> <activation><file><exists> to work unless the absolute file path was given.
>
> I'm running on windows XP, with netbeans IDE 6.8 supposedly using maven
> 3.0-SNAPSHOT.
>
> I've tried:
> <exists>C:/Documents and Settings/xname/My
> Documents/maven/mrt/storage/store-conf/mrt.local.properties</exists> --- works
>
> <exists>${basedir}/mrt.local.properties</exists> --- does NOT work
>
> <exists>./mrt.local.properties</exists> --- does NOT work
>
> <exists>mrt.local.properties</exists> --- does NOT work
>
> Any suggestions for getting <activation><file><exists> to work without using
> an absolute filepath.
>
> Thanks
> David
>
>
> ---------------------------------------------------------------------
> 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