You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Derek Baum (JIRA)" <ji...@apache.org> on 2009/07/19 12:39:14 UTC

[jira] Created: (FELIX-1383) sigil.properties -defaults should support variable expansion to allow it to be overriden

sigil.properties -defaults should support variable expansion to allow it to be overriden
----------------------------------------------------------------------------------------

                 Key: FELIX-1383
                 URL: https://issues.apache.org/jira/browse/FELIX-1383
             Project: Felix
          Issue Type: Improvement
          Components: Sigil
            Reporter: Derek Baum
            Priority: Minor


sigil.properties files support a directive:

-defaults: [-]path-to-defaults

which allows for default values (such as default package import versions) to be inherited.

If -defaults is not specified, '-../sigil-defaults.properties' is used to implicitly use defaults from parent.
The leading - means ignore error if the file is not found.

It would be useful if the defaults value was variable expanded against System properties and the environment:

-defaults: ${DEFAULTS_DIR:-../common}/sigil-defaults.properties

sigil already contains the necessary property variable expansion code.
however, property variable expansion is NOT globally applied to all values in sigil.properties, as the eclipse plugin is not aware of variable expansion, so when it updates sigil.properties all variables would have their expanded value.

This is not a problem with -defaults, as the eclipse plugin is not aware of this value.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-1383) sigil.properties -defaults should support variable expansion to allow it to be overriden

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Derek Baum resolved FELIX-1383.
-------------------------------

    Resolution: Fixed

property expansion is now supported as described in this issue.

> sigil.properties -defaults should support variable expansion to allow it to be overriden
> ----------------------------------------------------------------------------------------
>
>                 Key: FELIX-1383
>                 URL: https://issues.apache.org/jira/browse/FELIX-1383
>             Project: Felix
>          Issue Type: Improvement
>          Components: Sigil
>            Reporter: Derek Baum
>            Assignee: Derek Baum
>            Priority: Minor
>
> sigil.properties files support a directive:
> -defaults: [-]path-to-defaults
> which allows for default values (such as default package import versions) to be inherited.
> If -defaults is not specified, '-../sigil-defaults.properties' is used to implicitly use defaults from parent.
> The leading - means ignore error if the file is not found.
> It would be useful if the defaults value was variable expanded against System properties and the environment:
> -defaults: ${DEFAULTS_DIR:-../common}/sigil-defaults.properties
> sigil already contains the necessary property variable expansion code.
> however, property variable expansion is NOT globally applied to all values in sigil.properties, as the eclipse plugin is not aware of variable expansion, so when it updates sigil.properties all variables would have their expanded value.
> This is not a problem with -defaults, as the eclipse plugin is not aware of this value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (FELIX-1383) sigil.properties -defaults should support variable expansion to allow it to be overriden

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on FELIX-1383 started by Derek Baum.

> sigil.properties -defaults should support variable expansion to allow it to be overriden
> ----------------------------------------------------------------------------------------
>
>                 Key: FELIX-1383
>                 URL: https://issues.apache.org/jira/browse/FELIX-1383
>             Project: Felix
>          Issue Type: Improvement
>          Components: Sigil
>            Reporter: Derek Baum
>            Assignee: Derek Baum
>            Priority: Minor
>
> sigil.properties files support a directive:
> -defaults: [-]path-to-defaults
> which allows for default values (such as default package import versions) to be inherited.
> If -defaults is not specified, '-../sigil-defaults.properties' is used to implicitly use defaults from parent.
> The leading - means ignore error if the file is not found.
> It would be useful if the defaults value was variable expanded against System properties and the environment:
> -defaults: ${DEFAULTS_DIR:-../common}/sigil-defaults.properties
> sigil already contains the necessary property variable expansion code.
> however, property variable expansion is NOT globally applied to all values in sigil.properties, as the eclipse plugin is not aware of variable expansion, so when it updates sigil.properties all variables would have their expanded value.
> This is not a problem with -defaults, as the eclipse plugin is not aware of this value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-1383) sigil.properties -defaults should support variable expansion to allow it to be overriden

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Derek Baum reassigned FELIX-1383:
---------------------------------

    Assignee: Derek Baum

> sigil.properties -defaults should support variable expansion to allow it to be overriden
> ----------------------------------------------------------------------------------------
>
>                 Key: FELIX-1383
>                 URL: https://issues.apache.org/jira/browse/FELIX-1383
>             Project: Felix
>          Issue Type: Improvement
>          Components: Sigil
>            Reporter: Derek Baum
>            Assignee: Derek Baum
>            Priority: Minor
>
> sigil.properties files support a directive:
> -defaults: [-]path-to-defaults
> which allows for default values (such as default package import versions) to be inherited.
> If -defaults is not specified, '-../sigil-defaults.properties' is used to implicitly use defaults from parent.
> The leading - means ignore error if the file is not found.
> It would be useful if the defaults value was variable expanded against System properties and the environment:
> -defaults: ${DEFAULTS_DIR:-../common}/sigil-defaults.properties
> sigil already contains the necessary property variable expansion code.
> however, property variable expansion is NOT globally applied to all values in sigil.properties, as the eclipse plugin is not aware of variable expansion, so when it updates sigil.properties all variables would have their expanded value.
> This is not a problem with -defaults, as the eclipse plugin is not aware of this value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.