diff --git a/docs/task_documentation.md b/docs/task_documentation.md index ee62556..2a3d4bd 100644 --- a/docs/task_documentation.md +++ b/docs/task_documentation.md @@ -1458,12 +1458,14 @@ in the following path and name adjustments:
A/A/A/MyClass.properties
A/A/A/SomeResource.txt
-com/mycompany/shared/SharedResource.txt
+A/A/shared/SharedResource.txt
META-INF/services/com.mycompany.myproduct.MyClass
META-INF/services/com.mycompany.shared.SharedService
The path com/mycompany/shared
does not match
- any package name in the code base and thus is not changed.
+ any package name, but its path fragments
+ com/mycompany
match the package name
+ com.mycompany
and thus are changed.
The two service provider configuration files are not adjusted.
A/A/A/A.properties
A/A/A/SomeResource.txt
-com/mycompany/shared/SharedResource.txt
+A/A/shared/SharedResource.txt
META-INF/services/A.A.A.A
META-INF/services/com.mycompany.shared.SharedService
The path com/mycompany/shared
does not match
- any package name in the code base and thus is not changed.
+ any package name, but its path fragments
+ com/mycompany
match the package name
+ com.mycompany
and thus are changed.
The name com.mycompany.shared.SharedService
does not match any qualified class name and thus is not changed.
@@ -1521,8 +1525,8 @@ A/A/shared/SharedResource.txt
META-INF/services/A.A.A.A
META-INF/services/A.A.shared.SharedService
- The path com/mycompany/shared
does
- not match any package name, but its path fragments
+ The path com/mycompany/shared
does not match
+ any package name, but its path fragments
com/mycompany
match the package name
com.mycompany
and thus are changed.
diff --git a/src/main/java/com/yworks/yguard/ObfuscatorTask.java b/src/main/java/com/yworks/yguard/ObfuscatorTask.java
index 0d2eacf..501e2de 100644
--- a/src/main/java/com/yworks/yguard/ObfuscatorTask.java
+++ b/src/main/java/com/yworks/yguard/ObfuscatorTask.java
@@ -2748,17 +2748,17 @@ public enum ReplaceContentPolicy {
none,
/**
* If class obfuscation yields
- * com.yworks.SampleClass -> A.A.A
+ * com.yworks.SampleClass -> A.A.A
* then text in resource files will be adjusted as follows
- * com.yworks.SampleStuff -> A.A.SampleStuff
- * com.other.OtherStuff -> A.other.OtherStuff
+ * com.yworks.SampleStuff -> A.A.SampleStuff
+ * com.other.OtherStuff -> A.other.OtherStuff
*/
lenient,
/**
* If class obfuscation yields
- * com.yworks.SampleClass -> A.A.A
+ * com.yworks.SampleClass -> A.A.A
* then text in resource files will be adjusted as follows
- * com.yworks.SampleClass -> A.A.A
+ * com.yworks.SampleClass -> A.A.A
*/
strict;
}
@@ -2774,42 +2774,42 @@ public enum ReplacePathPolicy {
none, // replaceName = false, replacePath = false
/**
* If class obfuscation yields
- * com.yworks.SampleClass -> A.A.A
+ * com.yworks.SampleClass -> A.A.A
* then resource files will be renamed as follows
- * com/yworks/SampleStuff.properties -> A/A/SampleStuff.properties
- * com/other/OtherStuff.properties -> com/other/OtherStuff.properties
+ * com/yworks/SampleStuff.properties -> A/A/SampleStuff.properties
+ * com/other/OtherStuff.properties -> A/other/OtherStuff.properties
*/
path, // replaceName = false, replacePath = true, default
/**
* If class obfuscation yields
- * com.yworks.SampleClass -> A.A.A
+ * com.yworks.SampleClass -> A.A.A
* then resource files will be renamed as follows
- * com/yworks/SampleStuff.properties -> com/yworks/A.properties
- * com/other/OtherStuff.properties -> com/other/OtherStuff.properties
+ * com/yworks/SampleStuff.properties -> com/yworks/A.properties
+ * com/other/OtherStuff.properties -> com/other/OtherStuff.properties
*/
name, // replaceName = true, replacePath = false
/**
* If class obfuscation yields
- * com.yworks.SampleClass -> A.A.A
+ * com.yworks.SampleClass -> A.A.A
* then resource files will be renamed as follows
- * com/yworks/SampleStuff.properties -> A/A/A.properties
- * com/other/OtherStuff.properties -> com/other/OtherStuff.properties
+ * com/yworks/SampleStuff.properties -> A/A/A.properties
+ * com/other/OtherStuff.properties -> com/other/OtherStuff.properties
*/
file, // replaceName = true, replacePath = true
/**
* If class obfuscation yields
- * com.yworks.SampleClass -> A.A.A
+ * com.yworks.SampleClass -> A.A.A
* then resource files will be renamed as follows
- * com/yworks/SampleStuff.properties -> A/A/A.properties
- * com/yworks/OtherStuff.properties -> A/A/OtherStuff.properties
+ * com/yworks/SampleStuff.properties -> A/A/A.properties
+ * com/other/OtherStuff.properties -> A/other/OtherStuff.properties
*/
fileorpath,
/**
* If class obfuscation yields
- * com.yworks.SampleClass -> A.A.A
+ * com.yworks.SampleClass -> A.A.A
* then resource files will be renamed as follows
- * com/yworks/SampleStuff.properties -> A/A/A.properties
- * com/other/OtherStuff.properties -> A/other/OtherStuff.properties
+ * com/yworks/SampleStuff.properties -> A/A/A.properties
+ * com/other/OtherStuff.properties -> A/other/OtherStuff.properties
*/
lenient
}