Can I simply find a sample netbeans ide project used proguard? Especially the build.xml configuration.
Welcome to the community!
I would suggest you to read this manual page. It will give you a better understanding of how to integrate ProGuard into your project using an Ant task. This article talks about the way to use Netbeans together with ProGuard by modifying your build.xml file.