RE: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a filter - Email has different SMTP TO: and MIME TO: fields in the email addresses

2007-08-23 Thread William Ferguson
${myProp1} doesn't work either.


With a POM declaring
myProp1Somevalue/myprop1

A filter.file of
some.token=${myProp1}

And a resource file with
Show.me.the.value.of.some.token=${some.token}


The resource file resolves to :
Show.me.the.value.of.some.token=${myProp1}

Instead of 
Show.me.the.value.of.some.token=SomeValue


William


-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: Friday, 24 August 2007 12:36 PM
To: Maven Users List
Subject: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a
filter - Email has different SMTP TO: and MIME TO: fields in the email
addresses

Why can't you just use ${myProp1} ? Why go through the trouble of
refering via project.properties?

--
Eric Redmond
http://blog.propellors.net

On 8/23/07, William Ferguson [EMAIL PROTECTED] wrote:

 In a resource filter, I can specify tokens like:

 token1=${project.version}
 token2=${project.properties}

 Which when used in a resource file evaluates to:

 valueForToken1=1.0-SNAPSHOT
 valueForToken2={myProp1=value1, myProp2=value2}

 How do I specify a token in the resource filter that resolves to the 
 value of myProp1?
 I've tried all variants (that I can think of) of 
 ${project.properties.myProp1}.

 I'm sure there's a way, but I can't find documentation spelling out 
 the syntax that is required.


 William

 -
 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]



Re: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a filter - Email has different SMTP TO: and MIME TO: fields in the email addresses

2007-08-23 Thread Tim Kettler

Hi,

The probem is that for this to work the filters file would need to be 
filtered too, which is not the case. Use your declared properties 
directly in the resource files you want filtered and don't do the extra 
indirection via the filters file.


-Tim

William Ferguson schrieb:

${myProp1} doesn't work either.


With a POM declaring
myProp1Somevalue/myprop1

A filter.file of
some.token=${myProp1}

And a resource file with
Show.me.the.value.of.some.token=${some.token}


The resource file resolves to :
Show.me.the.value.of.some.token=${myProp1}

Instead of 
Show.me.the.value.of.some.token=SomeValue



William


-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: Friday, 24 August 2007 12:36 PM

To: Maven Users List
Subject: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a
filter - Email has different SMTP TO: and MIME TO: fields in the email
addresses

Why can't you just use ${myProp1} ? Why go through the trouble of
refering via project.properties?

--
Eric Redmond
http://blog.propellors.net

On 8/23/07, William Ferguson [EMAIL PROTECTED] wrote:

In a resource filter, I can specify tokens like:

token1=${project.version}
token2=${project.properties}

Which when used in a resource file evaluates to:

valueForToken1=1.0-SNAPSHOT
valueForToken2={myProp1=value1, myProp2=value2}

How do I specify a token in the resource filter that resolves to the 
value of myProp1?
I've tried all variants (that I can think of) of 
${project.properties.myProp1}.


I'm sure there's a way, but I can't find documentation spelling out 
the syntax that is required.



William

-
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]



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