Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to obfuscate netbeans project with proguard. Always error

 
Ranch Hand
Posts: 69
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm trying to obfuscate java project with proguard. I've folowed blog https://dzone.com/articles/obfuscating-netbeans-java-appl. But not works.
It gives me error:

jar doesn't support the nested "property" element.
BUILD FAILED (total time: 2 seconds)


My build:



Please any help? Thanks and sorry for my English!
 
Saloon Keeper
Posts: 15656
367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ehh well I'm not really familiar with Ant (the code snippet you posted looks like an Ant build script), but to me it seems like the error message says exactly what is wrong: You have a <property> element inside a <jar> element, and apparently that's not allowed.
 
david luis
Ranch Hand
Posts: 69
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Ehh well I'm not really familiar with Ant (the code snippet you posted looks like an Ant build script), but to me it seems like the error message says exactly what is wrong: You have a <property> element inside a <jar> element, and apparently that's not allowed.


Thanks for your answer.
I put the code outside tarjeg gives me other error:
jar doesn't support the nested "property" element.

 
Saloon Keeper
Posts: 7611
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure if ANY tasks support nested property elements, so why don't you just put it inside the top-level project element; that should work.
 
david luis
Ranch Hand
Posts: 69
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:I'm not sure if ANY tasks support nested property elements, so why don't you just put it inside the top-level project element; that should work.



Sorry I don' understand.
You say that I put jar code ourtside target?

Thanks
 
Could you hold this puppy for a sec? I need to adjust this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic