title: Yguard does not modify my classnames properly (with the obfuscated ones)
body: <p>I'm trying to obfuscate a JAR file using the yguard 3.0.0 maven plugin. The obfuscated JAR is as almost as expected, it is shrinked and with all the private methods and variables renamed. I need that package names will be renamed too and this is performed, but the spring XML files needed to start my Tomcat are not being updated with the obfuscated packages.</p>
  <p>My ant task is the following:</p>
  <pre><code>&lt;configuration&gt;
      &lt;tasks&gt;
          &lt;property name=&quot;runtime-classpath&quot; refid=&quot;maven.runtime.classpath&quot;/&gt;
          &lt;taskdef name=&quot;yguard&quot; classname=&quot;com.yworks.yguard.YGuardTask&quot; classpath=&quot;${runtime-classpath}&quot;/&gt;
              &lt;yguard&gt;
                  &lt;inoutpair in=&quot;C:/test/webapp.jar&quot; out=&quot;C:/test/webapp_obfuscated.jar&quot; /&gt;
                  &lt;shrink&gt;
                      &lt;property name=&quot;error-checking&quot; value=&quot;pedantic&quot;/&gt;
                  &lt;/shrink&gt;
                  &lt;rename&gt;
                      &lt;adjust replaceContent=&quot;true&quot; replaceName=&quot;true&quot;&gt;
                           &lt;include name=&quot;ApplicationContext.xml&quot;/&gt;
                      &lt;/adjust&gt;
                  &lt;/rename&gt;                                                                   
              &lt;/yguard&gt;
         &lt;/tasks&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>Note that here in my example, I'm only trying to deal with the ApplicationContext.xml, but this file remains with the same classnames that the no obfuscated version. I'm sure that the yguard task is doing something into my ApplicationContext.xml because I have a  tag in the file and the path to a file is properly obfuscated but the classnames and the other stuff no:</p>
  <pre><code>    &lt;!-- Properties ldap --&gt;
      &lt;bean id=&quot;ldapProperties&quot; class=&quot;org.springframework.beans.factory.config.PropertiesFactoryBean&quot; scope=&quot;singleton&quot;&gt;
        &lt;property name=&quot;ignoreResourceNotFound&quot; value=&quot;true&quot;/&gt;
        &lt;property name=&quot;locations&quot;&gt;
              &lt;list&gt;              
                &lt;value&gt;classpath:A/A/B/E/ldap.properties&lt;/value&gt;     &lt;--Obfuscated!--&gt; 
              &lt;/list&gt;
        &lt;/property&gt;
      &lt;/bean&gt; 
      
      &lt;bean id=&quot;authenticationBO&quot; class=&quot;com.grifols.grb.authentication.bo.AuthenticationBO&quot; scope=&quot;singleton&quot;&gt;
          &lt;property name=&quot;dbAccess&quot; ref=&quot;dbAccessGRB&quot;/&gt;
          &lt;property name=&quot;usersSecurityBO&quot; ref=&quot;usersSecurityBO&quot; /&gt;   
          &lt;property name=&quot;settings&quot; ref=&quot;settings&quot; /&gt; 
          &lt;property name=&quot;ldapProperties&quot; ref=&quot;ldapProperties&quot; /&gt;
      &lt;/bean&gt;
  </code></pre>
  <p>According to the <a href="https://yworks.github.io/yGuard/task_documentation/#the-adjust-element" rel="nofollow noreferrer">Yguard documentation</a> I think that I only have to use replaceContent=&quot;true&quot; and detail which file but I'm not</p>
  <p>Any idea? I really appreciate any help you can provide.</p>
  <p>Ivan</p>