You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/09/03 08:48:03 UTC

[jira] Commented: (MNG-821) file existence profile activation patch

    [ http://jira.codehaus.org/browse/MNG-821?page=comments#action_45743 ] 

Brett Porter commented on MNG-821:
----------------------------------

I think we can just require ${basedir} in the expression, which is resolved

> file existence profile activation patch
> ---------------------------------------
>
>          Key: MNG-821
>          URL: http://jira.codehaus.org/browse/MNG-821
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-project, maven-model
>     Versions: 2.0-beta-1
>     Reporter: Jesse McConnell
>      Fix For: 2.0-beta-1
>  Attachments: file-existence-profile-activation.patch, file-profile-activation.patch
>
>
> <profile>
>          <id>classnames</id>
>          <activation>
>             <file>
>                <missing>target/generated-sources/classname-generator/com/stuff/util/GClassnameProvider.java</missing>
>             </file>
>          </activation>
>          <build>
> <exists> also is a valid tag inside that <file> as well.
> The problem with this patch atm is that it ceases to work outside of the context of the subproject it exists in..
> this is because in the FileExistenceProfileActivator we have no mechanism of getting the absolute path for that file string.
> I looked into BuildBase object that you can get from the Profile passed in but it is empty (null) and the string doesn't resolve expressions either...
> so...if I can get pointed in the right direction for adding that expression resolution in there I'll put that in...talked to kenney about this a bit on irc this morning as well and he seemed to think that was probably the way to go.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org