-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Proguard and Hibernate
PostPosted: Mon Jun 20, 2005 4:00 pm 
Newbie

Joined: Mon Oct 04, 2004 8:53 am
Posts: 10
Hibernate version: 3.0.5
Name and version of the database you are using: MySQL 4.0.24

Does anyone use Proguard (obfuscator) with Hibernate?
Thanks,

Glauber Andrade


Top
 Profile  
 
 Post subject: Re: Proguard and Hibernate
PostPosted: Tue May 05, 2015 11:48 am 
Newbie

Joined: Thu Sep 23, 2010 11:14 am
Posts: 10
I know that this is a very old topic but, I'm trying to use ProGuard right now and I'm having a problem with the mapping files.
The mapping file for Object1 points to org.mycomp.model.Object1 but ProGuard renames it as org.mycomp.b.c.

On the ProGuard examples page (http://proguard.sourceforge.net/manual/examples.html) I see this:
Quote:
Processing resource files
If your application, applet, servlet, library, etc., contains resource files, it may be necessary to adapt their names and/or their contents when the application is obfuscated. The following two options can achieve this automatically:

-adaptresourcefilenames **.properties,**.gif,**.jpg
-adaptresourcefilecontents **.properties,META-INF/MANIFEST.MF

The -adaptresourcefilenames option in this case renames properties files and image files in the processed output, based on the obfuscated names of their corresponding class files (if any). The -adaptresourcefilecontents option looks for class names in properties files and in the manifest file, and replaces these names by the obfuscated names (if any). You'll probably want to adapt the filters to suit your application.


If I'm not wrong, that is what I'm looking for, but I can't make it works.

Somebody uses ProGuard on a JAR file with hiibernate mapping files? How do that?

Thanks in Advance
Regards Juan Pablo


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.