Re: shade plugin modifying string constants

2020-06-29 Thread Anurag Shekhar

Thank you for your reply.

On 6/27/20 3:21 PM, John Patrick wrote:

 From the views of a another user, relocation should be dumb and should
be exact case sensitive for both pattern and shadedPattern. So I would
not expect PKG to be altered. Yes the output is what your pattern
match lists but but so does; System.out.println ("org.example" +
".pkg."); and I wouldn't expect that to be changed.

That clarifies my confusion.

Based on your example would you have expect it to be replaced with
either A or B;
a) org.example.shaded.PKG
b) org.example.shaded.pkg


I wasn't expecting the capitalized name to undergo replacement. I had

added second println just for my clarity and didn't remove while posting

in the mailing list.

Thanks

anurag


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: shade plugin modifying string constants

2020-06-27 Thread John Patrick
>From the views of a another user, relocation should be dumb and should
be exact case sensitive for both pattern and shadedPattern. So I would
not expect PKG to be altered. Yes the output is what your pattern
match lists but but so does; System.out.println ("org.example" +
".pkg."); and I wouldn't expect that to be changed.

Based on your example would you have expect it to be replaced with
either A or B;
a) org.example.shaded.PKG
b) org.example.shaded.pkg

John

On Fri, 26 Jun 2020 at 07:30, Anurag Shekhar
 wrote:
>
> Hi
>
> I am trying to shade a package with following tags
>
> 
>  org.example.pkg
> org.example.shaded.pkg
> 
>
> I also have a string in one of my class which matches the pattern gets
>
> modified during shading
>
>  public static void main (String [] args) {
>  System.out.println ("org.example.pkg."); //prints
> org.example.shaded.pkg.
>  System.out.println ("org.example.PKG.".toLowerCase()); //prints
> org.example.pkg.
>  }
>
> Is this expected behavior ?
>
> I was thinking about making use of this behavior. Will it be safe to do so ?
>
> Or its something undocumented so might change without prior notice ?
>
>
> thanks
>
> Anurag
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org