bineanzhou / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Hide c.g.inject.internal #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
So IDEs don't expose the classes to users.

Original issue reported on code.google.com by crazybob...@gmail.com on 14 Feb 2007 at 11:36

GoogleCodeExporter commented 9 years ago
The .jar for Guice could hide these classes from OSGi-compliant tools like 
Eclipse.
Here's a sample Ant task that creates the necessary meta information for the 
.jar file:

  <taskdef name="osgiBundleInfo"
classname="org.knopflerfish.ant.taskdefs.bundle.BundleInfoTask"
classpath="tools/OSGiBundleInfo.jar"/>
  <osgiBundleInfo exports="packagelist">
     <fileset dir="${basedir}">
        <include name="**/source/**/*.java"/>
        <exclude name="**/util/**/*.java"/>
     </fileset>
  </osgiBundleInfo>

The task can be downloaded here: http://www.knopflerfish.org/

Original comment by limpbizkit on 15 Feb 2007 at 12:09

GoogleCodeExporter commented 9 years ago

Original comment by kevin...@gmail.com on 28 Feb 2007 at 7:06

GoogleCodeExporter commented 9 years ago

Original comment by kevin...@gmail.com on 31 May 2007 at 8:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Final iteration of the patch that makes it work flawlessly for asm, cglib & 
internal.util, regardless of the number of subpackages within each.

The patch adds rules such that all jarjar'd classes get their classname 
prefixed with $, so that IDEs do not suggest the classes as possible import 
completions.

Original comment by sberlin on 26 Oct 2010 at 2:35

Attachments:

GoogleCodeExporter commented 9 years ago
Fantastic.

Original comment by limpbizkit on 26 Oct 2010 at 4:41

GoogleCodeExporter commented 9 years ago
fixed (or framework for hiding other things, atleast) in r1322.

Original comment by sberlin on 27 Oct 2010 at 1:49