[ 
https://jira.codehaus.org/browse/MASSEMBLY-652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MASSEMBLY-652:
-------------------------------------

    Description: 
I want to include and filter Microsoft SQL Server SQL-files. SQL Server has 
extended properties which are declared as (extended property "Version" on a 
database):
{noformat}
exec DB.sys.sp_addextendedproperty
  @name='Version'
, @value='${project.version}'
go
{noformat}

However, if I filter the file which contains this call the expression 
$\{project.version} is not been replaced. I get it working only when adding a 
second "@"
{noformat}
exec DB.sys.sp_addextendedproperty
  @name='Version'
, @value='@${project.version}'
go
{noformat}

This evaluates to
{noformat}
exec DB.sys.sp_addextendedproperty
  @name='Version'
, @value='@2.03.002'
go
{noformat}
However the "@" is not really wanted.

Thank you.

PS: Please rename attached "test.txt" to "test.sql". Got an server error while 
trying to upload "test.sql".

  was:
I want to include and filter Microsoft SQL Server SQL-files. SQL Server has 
extended properties which are declared as (extended property "Version" on a 
database):

exec DB.sys.sp_addextendedproperty
  @name='Version'
, @value='${project.version}'
go

However, if I filter the file which contains this call the expression 
${project.version} is not been replaced. I get it working only when adding a 
second "@"

exec DB.sys.sp_addextendedproperty
  @name='Version'
, @value='@${project.version}'
go

This evaluates to

exec DB.sys.sp_addextendedproperty
  @name='Version'
, @value='@2.03.002'
go

However the "@" is not really wanted.

Thank you.

PS: Please rename attached "test.txt" to "test.sql". Got an server error while 
trying to upload "test.sql".


> Resource filtering does not work if line contains single @
> ----------------------------------------------------------
>
>                 Key: MASSEMBLY-652
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-652
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 2.4
>            Reporter: Michael Gruebsch
>            Priority: Minor
>             Fix For: 2.5
>
>         Attachments: assembly.xml, pom.xml, test.txt
>
>
> I want to include and filter Microsoft SQL Server SQL-files. SQL Server has 
> extended properties which are declared as (extended property "Version" on a 
> database):
> {noformat}
> exec DB.sys.sp_addextendedproperty
>   @name='Version'
> , @value='${project.version}'
> go
> {noformat}
> However, if I filter the file which contains this call the expression 
> $\{project.version} is not been replaced. I get it working only when adding a 
> second "@"
> {noformat}
> exec DB.sys.sp_addextendedproperty
>   @name='Version'
> , @value='@${project.version}'
> go
> {noformat}
> This evaluates to
> {noformat}
> exec DB.sys.sp_addextendedproperty
>   @name='Version'
> , @value='@2.03.002'
> go
> {noformat}
> However the "@" is not really wanted.
> Thank you.
> PS: Please rename attached "test.txt" to "test.sql". Got an server error 
> while trying to upload "test.sql".



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to