Menu

#70 Obfuscation fails for wtk.proguqrd.home set as relative path

open
nobody
None
5
2008-09-26
2008-09-26
Anonymous
No

I have build.xml in which I have wtkobfuscate task. I am using proguard. I place the proguard.jar in my project in folder ${project}/proguard/lib and set the wtk.proguard.home to point to ${project}/proguard. which is relative to my project home folder

<property name="wtk.proguard.home" value="${project}/pfoguard"/>

If I run ant from ${project} folder, the obfuscation succeeds. The problem is that if I run the task from path different then the ${project} folder the proguard main class is not found.

Case:
"ant -f /path/project/build.xml obfuscate "
will fail.

It pass only if I am in /path/project and run:
"ant -f build.xml obfuscate"
where obfuscate is the target that tries to use wtkobfuscate.

So it seems that there is some problem with relative paths set to wtk.proguard.home.

Regards jivkoto@gmail.com

Discussion