denbirki / obfuscar

Automatically exported from code.google.com/p/obfuscar
0 stars 0 forks source link

Need easy way to exclude namespace #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Need an easy way to exclude an entire namespace worth of types / methods /
fields, etc., as described by obiwanjacobi.

It shouldn't be difficult to do it as follows:

  <Module file="...">
     <SkipNamespace name="MyApp.Configuration" />
  </Module>

Original issue reported on code.google.com by drcfor...@gmail.com on 18 May 2007 at 9:28

GoogleCodeExporter commented 8 years ago

Original comment by drcfor...@gmail.com on 18 May 2007 at 9:28

GoogleCodeExporter commented 8 years ago
It should either also support identifying namespaces using a regex:

  <Module file="...">
     <SkipNamespace rx="Company\.PublicBits\..*" />
  </Module>

or it should also exclude all namespaces below it, so the following xml:

  <Module file="...">
     <SkipNamespace name="Company.PublicBits" recursive="true" />
  </Module>

Would also exclude everything in the namespace "Company.PublicBits.Api" without
having to add a second SkipNamespace element.

Original comment by drcfor...@gmail.com on 18 May 2007 at 9:31

GoogleCodeExporter commented 8 years ago
Would it be an idea to change the settings file to be hierarchical? The Module 
tag 
would be the root, then a Namespace tag, then a Type tag then Method, Field,  
Property and Event tags. Each 'container' tag then has a recursive attribute. 
Putting a SkipType into 'recursive mode' will also skip all its members. Maybe 
you 
could specify an 'attrib' condition as value of the recursive tag. So 
recursive="public" on a SkipType would only skip all public members.

Original comment by obiwanja...@hotmail.com on 19 May 2007 at 1:28

GoogleCodeExporter commented 8 years ago
This should be fixed by changes from Scherry Lemos <scherry@ig.com.br>, 
committed in
r40.  They've been rolled into 1.3.2.

Original comment by drcfor...@gmail.com on 27 Aug 2008 at 8:52