Permalink
Browse files

Convert cglib to be a maven project

  • Loading branch information...
1 parent bb211dd commit 20476c6f7fba45fbcaa35f50fc39b4f6afca2a8c James Bodkin committed Oct 9, 2014
Showing with 388 additions and 964 deletions.
  1. +6 −0 .gitattributes
  2. +10 −9 .gitignore
  3. 0 build.properties
  4. +0 −313 build.xml
  5. +38 −0 cglib-nodep/dependency-reduced-pom.xml
  6. +63 −0 cglib-nodep/pom.xml
  7. +56 −0 cglib-sample/pom.xml
  8. +1 −1 {src/proxy → cglib-sample/src/main/java/net/sf/cglib}/samples/Bean.java
  9. +1 −1 {src/proxy → cglib-sample/src/main/java/net/sf/cglib}/samples/Beans.java
  10. +1 −1 {src/proxy → cglib-sample/src/main/java/net/sf/cglib}/samples/KeySample.java
  11. +1 −1 {src/proxy → cglib-sample/src/main/java/net/sf/cglib}/samples/SimpleClass.java
  12. +1 −1 {src/proxy → cglib-sample/src/main/java/net/sf/cglib}/samples/Trace.java
  13. +64 −0 cglib/pom.xml
  14. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/BeanCopier.java
  15. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/BeanGenerator.java
  16. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/BeanMap.java
  17. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/BeanMapEmitter.java
  18. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/BulkBean.java
  19. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/BulkBeanEmitter.java
  20. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/BulkBeanException.java
  21. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/FixedKeySet.java
  22. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/beans/ImmutableBean.java
  23. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/AbstractClassGenerator.java
  24. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/Block.java
  25. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ClassEmitter.java
  26. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ClassGenerator.java
  27. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ClassInfo.java
  28. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ClassNameReader.java
  29. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ClassesKey.java
  30. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/CodeEmitter.java
  31. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/CodeGenerationException.java
  32. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/CollectionUtils.java
  33. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/Constants.java
  34. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/Converter.java
  35. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/Customizer.java
  36. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/DebuggingClassWriter.java
  37. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/DefaultGeneratorStrategy.java
  38. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/DefaultNamingPolicy.java
  39. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/DuplicatesPredicate.java
  40. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/EmitUtils.java
  41. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/GeneratorStrategy.java
  42. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/KeyFactory.java
  43. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/Local.java
  44. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/LocalVariablesSorter.java
  45. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/MethodInfo.java
  46. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/MethodInfoTransformer.java
  47. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/MethodWrapper.java
  48. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/NamingPolicy.java
  49. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ObjectSwitchCallback.java
  50. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/Predicate.java
  51. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ProcessArrayCallback.java
  52. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ProcessSwitchCallback.java
  53. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/ReflectUtils.java
  54. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/RejectModifierPredicate.java
  55. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/Signature.java
  56. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/TinyBitSet.java
  57. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/Transformer.java
  58. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/TypeUtils.java
  59. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/core/VisibilityPredicate.java
  60. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/BridgeMethodResolver.java
  61. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/Callback.java
  62. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/CallbackFilter.java
  63. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/CallbackGenerator.java
  64. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/CallbackHelper.java
  65. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/CallbackInfo.java
  66. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/Dispatcher.java
  67. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/DispatcherGenerator.java
  68. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/Enhancer.java
  69. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/Factory.java
  70. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/FixedValue.java
  71. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/FixedValueGenerator.java
  72. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/InterfaceMaker.java
  73. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/InvocationHandler.java
  74. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/InvocationHandlerGenerator.java
  75. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/LazyLoader.java
  76. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/LazyLoaderGenerator.java
  77. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/MethodInterceptor.java
  78. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/MethodInterceptorGenerator.java
  79. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/MethodProxy.java
  80. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/Mixin.java
  81. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/MixinBeanEmitter.java
  82. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/MixinEmitter.java
  83. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/MixinEverythingEmitter.java
  84. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/NoOp.java
  85. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/NoOpGenerator.java
  86. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/Proxy.java
  87. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/ProxyRefDispatcher.java
  88. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/proxy/UndeclaredThrowableException.java
  89. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/reflect/ConstructorDelegate.java
  90. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/reflect/FastClass.java
  91. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/reflect/FastClassEmitter.java
  92. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/reflect/FastConstructor.java
  93. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/reflect/FastMember.java
  94. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/reflect/FastMethod.java
  95. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/reflect/MethodDelegate.java
  96. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/reflect/MulticastDelegate.java
  97. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/AbstractClassFilterTransformer.java
  98. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/AbstractClassLoader.java
  99. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/AbstractClassTransformer.java
  100. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/AbstractProcessTask.java
  101. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/AbstractTransformTask.java
  102. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/AnnotationVisitorTee.java
  103. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassEmitterTransformer.java
  104. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassFilter.java
  105. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassFilterTransformer.java
  106. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassReaderGenerator.java
  107. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassTransformer.java
  108. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassTransformerChain.java
  109. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassTransformerFactory.java
  110. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassTransformerTee.java
  111. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/ClassVisitorTee.java
  112. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/FieldVisitorTee.java
  113. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/MethodFilter.java
  114. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/MethodFilterTransformer.java
  115. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/MethodVisitorTee.java
  116. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/TransformingClassGenerator.java
  117. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/TransformingClassLoader.java
  118. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/AbstractInterceptFieldCallback.java
  119. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/AccessFieldTransformer.java
  120. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/AddDelegateTransformer.java
  121. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/AddInitTransformer.java
  122. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/AddPropertyTransformer.java
  123. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/AddStaticInitTransformer.java
  124. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/FieldProvider.java
  125. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/FieldProviderTransformer.java
  126. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/InterceptFieldCallback.java
  127. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/InterceptFieldEnabled.java
  128. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/InterceptFieldFilter.java
  129. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/InterceptFieldTransformer.java
  130. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/UndeclaredThrowableStrategy.java
  131. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/transform/impl/UndeclaredThrowableTransformer.java
  132. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/util/ParallelSorter.java
  133. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/util/ParallelSorterEmitter.java
  134. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/util/SorterTemplate.java
  135. 0 {src/proxy → cglib/src/main/java}/net/sf/cglib/util/StringSwitcher.java
  136. 0 {src/test → cglib/src/main/resources}/net/sf/cglib/util/words.txt
  137. 0 {src/test → cglib/src/test/java}/net/sf/cglib/CodeGenTestCase.java
  138. 0 {src/test → cglib/src/test/java}/net/sf/cglib/TestAll.java
  139. 0 {src/test → cglib/src/test/java}/net/sf/cglib/TestGenerator.java
  140. 0 {src/test → cglib/src/test/java}/net/sf/cglib/beans/BeanMapProxy.java
  141. 0 {src/test → cglib/src/test/java}/net/sf/cglib/beans/MA.java
  142. 0 {src/test → cglib/src/test/java}/net/sf/cglib/beans/TestBeanCopier.java
  143. 0 {src/test → cglib/src/test/java}/net/sf/cglib/beans/TestBeanGenerator.java
  144. 0 {src/test → cglib/src/test/java}/net/sf/cglib/beans/TestBeanMap.java
  145. 0 {src/test → cglib/src/test/java}/net/sf/cglib/beans/TestBeanMapProxy.java
  146. 0 {src/test → cglib/src/test/java}/net/sf/cglib/beans/TestBulkBean.java
  147. 0 {src/test → cglib/src/test/java}/net/sf/cglib/beans/TestImmutableBean.java
  148. 0 {src/test → cglib/src/test/java}/net/sf/cglib/core/TestKeyFactory.java
  149. 0 {src/test → cglib/src/test/java}/net/sf/cglib/core/TestTinyBitSet.java
  150. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/ArgInit.java
  151. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/D1.java
  152. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/D2.java
  153. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/D3.java
  154. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/D4.java
  155. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/D5.java
  156. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/DBean1.java
  157. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/DBean2.java
  158. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/DBean3.java
  159. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/DI1.java
  160. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/DI2.java
  161. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/DI3.java
  162. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/DI5.java
  163. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/EA.java
  164. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/EB.java
  165. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/EC1.java
  166. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/EC2.java
  167. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/ED.java
  168. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/Source.java
  169. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestDispatcher.java
  170. +12 −8 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestEnhancer.java
  171. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestInterceptor.java
  172. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestInterfaceMaker.java
  173. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestLazyLoader.java
  174. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestMixin.java
  175. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestNoOp.java
  176. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestProxy.java
  177. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxy/TestProxyRefDispatcher.java
  178. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxysample/InvocationHandlerSample.java
  179. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxysample/ProxySample.java
  180. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxysample/ProxySampleInterface_ReturnsBasic.java
  181. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxysample/ProxySampleInterface_ReturnsObject.java
  182. 0 {src/test → cglib/src/test/java}/net/sf/cglib/proxysample/SampleImpl.java
  183. 0 {src/test → cglib/src/test/java}/net/sf/cglib/reflect/MemberSwitchBean.java
  184. 0 {src/test → cglib/src/test/java}/net/sf/cglib/reflect/TestDelegates.java
  185. +6 −10 {src/test → cglib/src/test/java}/net/sf/cglib/reflect/TestFastClass.java
  186. 0 {src/test → cglib/src/test/java}/net/sf/cglib/reflect/TestReflectPerf.java
  187. 0 {src/test → cglib/src/test/java}/net/sf/cglib/reflect/sub/GrandParent.java
  188. 0 {src/test → cglib/src/test/java}/net/sf/cglib/reflect/sub/Parent.java
  189. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/AbstractTransformTest.java
  190. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/DumpFieldsTask.java
  191. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/Base.java
  192. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/Example.java
  193. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/ExampleTask.java
  194. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/MA.java
  195. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/PersistenceCapable.java
  196. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/PersistenceCapableImpl.java
  197. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/TestAddClassInit.java
  198. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/TestAddDelegate.java
  199. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/TestDemo.java
  200. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/TestInterceptFields.java
  201. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/TestInterceptFieldsSubclass.java
  202. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/TestProvideFields.java
  203. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/TestTransformingLoader.java
  204. 0 {src/test → cglib/src/test/java}/net/sf/cglib/transform/impl/TransformDemo.java
  205. +9 −4 {src/test → cglib/src/test/java}/net/sf/cglib/util/TestParallelSorter.java
  206. 0 {src/test → cglib/src/test/java}/net/sf/cglib/util/TestXmlParsing.java
  207. +0 −9 java.policy
  208. BIN lib/ant.jar
  209. BIN lib/asm-5.0.3.jar
  210. BIN lib/asm-commons-5.0.3.jar
  211. +0 −27 lib/asm-license.txt
  212. BIN lib/asm-util-5.0.3.jar
  213. BIN lib/jarjar.jar
  214. +0 −125 lib/junit-license.html
  215. BIN lib/junit.jar
  216. +0 −11 maven.xml
  217. +119 −0 pom.xml
  218. +0 −89 project.properties
  219. +0 −156 project.xml
  220. +0 −6 src/proxy/net/sf/cglib/.cvsignore
  221. +0 −14 xdocs/features.xml
  222. +0 −103 xdocs/howto.xml
  223. BIN xdocs/images/cglib.png
  224. +0 −52 xdocs/index.xml
  225. +0 −23 xdocs/navigation.xml
View
@@ -0,0 +1,6 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Java
+*.java text eol=lf
+*.jsp text eol=lf
View
@@ -1,13 +1,14 @@
+# Eclipse
.classpath
.project
-bin/
.settings/
-.log
-.class
-.bat
-.nbattrs
-.java~
-.bak
-maven.log*
-build/
+## JetBrains IDEs: IntelliJ
+.idea/
+.idea_modules/
+*.iml
+*.ipr
+*.iws
+
+# Maven
+target/
View
No changes.
View
@@ -1,313 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project basedir="." default="test" name="simplestore">
-
-<!-- "cglib" was "simplestore" component of the Jakarta Commons Subproject $Id: build.xml,v 1.57 2013/12/07 16:08:19 sameb Exp $ -->
-
-<!-- ========== Executable Targets ======================================== -->
-
- <target description="Initialize and evaluate conditionals" name="init">
-
- <!-- read properties from the build.properties, if any -->
- <property file="${basedir}/build.properties" />
- <property name="component-propfile" value="${basedir}/build.properties"/>
-
- <property name="component.name" value="cglib"/>
- <property name="component.package" value="net.sf.cglib"/>
- <property name="component.title" value="cglib"/>
- <property name="component.version" value="3.2"/>
-
- <property name="build.home" value="build/proxy"/>
- <property name="build.transform" value="build/transform"/>
- <property name="samples.build.home" value="build/samples"/>
-
- <property name="test.build.home" value="build/test"/>
-
- <property name="dist.home" value="dist"/>
- <property name="source.home" value="src/proxy"/>
- <property name="samples.source.home" value="src/proxy/samples"/>
- <property name="source.test" value="src/test"/>
- <property name="source.asm" value="../asm-src"/>
-
- <property name="compile.target" value="1.2"/>
- <property name="compile.source" value="1.2"/>
- <property name="compile.bootclasspath" value=""/>
- <property name="compile.extdirs" value=""/>
-
- <property name="compile.debug" value="true"/>
- <property name="compile.deprecation" value="true"/>
- <property name="compile.optimize" value="true"/>
-
- <property name="samplesign.key.store" value="${samples.build.home}/.keystore"/>
- <property name="samplesign.key.storepass" value="cglibsamples"/>
- <property name="samplesign.key.alias" value="cglibsamples"/>
- <property name="samplesign.key.pass" value="cglibsamples"/>
-
- <path id="compile.classpath">
- <pathelement location="${build.home}/classes"/>
- <fileset dir="./lib">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <path id="javadoc.path">
- <pathelement path="${source.home}"/>
- <!-- pathelement path="${source.asm}"/ -->
- </path>
-
- <!-- ========== Test Execution Defaults =================================== -->
- <property name="cp" value=""/>
- <property name="classpath" value="${cp}:lib/junit.jar" />
- <property name="test.entry" value="net.sf.cglib.TestAll" />
- <property name="test.failonerror" value="true" />
- <property name="test.runner" value="junit.textui.TestRunner" />
-
- <echo message="-------- ${component.name} ${component.version} --------"/>
- </target>
-
- <target depends="init" description="Prepare build directory" name="prepare">
- <mkdir dir="${build.home}"/>
- <mkdir dir="${build.home}/classes"/>
- <mkdir dir="${samples.build.home}/classes"/>
- <mkdir dir="${build.home}/conf"/>
- <mkdir dir="${test.build.home}/classes"/>
-
-
- </target>
-
- <target depends="prepare" description="Compile shareable components"
- name="compile">
- <javac debug="${compile.debug}" deprecation="${compile.deprecation}" destdir="${build.home}/classes" optimize="${compile.optimize}" srcdir="${source.home}"
- target="${compile.target}" bootclasspath="${compile.bootclasspath}" extdirs="${compile.extdirs}" source="${compile.source}" excludes="samples/**">
- <classpath refid="compile.classpath"/>
- <compilerarg compiler="jikes" value="-nowarn"/>
- </javac>
- </target>
-
- <target depends="init" description="Clean build and distribution directories"
- name="clean">
- <delete dir="${build.home}"/>
- <delete dir="${test.build.home}"/>
- <delete dir="${dist.home}"/>
- <delete dir="${build.transform}"/>
- </target>
-
- <target depends="clean,compile"
- description="Clean and compile all components"
- name="all"/>
-
-
-
- <target depends="compile"
- description="Create component Javadoc documentation"
- name="javadoc">
- <mkdir dir="docs/api"/>
- <javadoc author="true"
- bottom="Copyright (c) 2001 - Apache Software Foundation"
- destdir="docs"
- doctitle="${component.title}"
- packagenames="net.sf.cglib.*"
- access="public"
- classpathref="compile.classpath"
- sourcepathref="javadoc.path" version="true"
- windowtitle="${component.title} (Version ${component.version})"/>
- </target>
-
-
- <target depends="jar" name="proxy"/>
-
- <target depends="compile" description="Create binary distribution" name="jar">
- <mkdir dir="${dist.home}"/>
- <mkdir dir="${build.home}/src"/>
-
-
- <copy file="LICENSE" todir="${build.home}/classes"/>
- <copy file="NOTICE" todir="${build.home}/classes"/>
-
- <jar basedir="${build.home}/classes" jarfile="${dist.home}/${component.name}-${component.version}.jar" >
- <include name="**/*"/>
- <exclude name="samples/**" />
- </jar>
-
- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="compile.classpath"/>
- <jarjar basedir="${build.home}/classes" jarfile="${dist.home}/${component.name}-nodep-${component.version}.jar" >
- <zipfileset dir="lib" includes="asm*.txt"/>
- <zipfileset src="lib/asm-5.0.3.jar" excludes="META-INF"/>
- <rule pattern="org.objectweb.asm.**" result="net.sf.cglib.asm.@1"/>
- <include name="**/*"/>
- <exclude name="samples/**"/>
- </jarjar>
- </target>
-
- <target depends="compile,javadoc" description="Create docs and source distribution" name="srcjar">
- <jar basedir="docs" jarfile="${dist.home}/${component.name}-docs-${component.version}.jar" >
- <include name="**/*.html"/>
- <include name="**/*.css"/>
- <include name="**/*.php"/>
- <include name="**/*.js"/>
- <include name="**/*.pdf"/>
- <include name="**/*.gif"/>
- </jar>
-
- <jar basedir="./" jarfile="${dist.home}/${component.name}-src-${component.version}.jar" >
- <include name="build.xml"/>
- <include name="LICENSE*"/>
- <include name="NOTICE*"/>
- <include name="README*"/>
- <include name="src/**/*.txt"/>
- <include name="src/**/*.java"/>
- <include name="src/**/*.properties"/>
- <include name="src/**/*.xml"/>
- <include name="lib/**"/>
- </jar>
- </target>
-
- <target depends="clean,jar,srcjar" description="Create binary, docs and source distributions" name="dist"/>
-
- <target depends="compile" name="compile-samples">
- <javac debug="${compile.debug}"
- deprecation="${compile.deprecation}"
- destdir="${samples.build.home}/classes"
- optimize="${compile.optimize}"
- srcdir="${samples.source.home}">
- <classpath refid="compile.classpath"/>
- <compilerarg compiler="jikes" value="-nowarn"/>
- </javac>
- </target>
-
- <target depends="compile-samples" name="signed-samples-jar">
- <jar basedir="${samples.build.home}/classes" destfile="${samples.build.home}/samples.jar" >
- </jar>
- <delete file="${samplesign.key.store}" quiet="true"/>
- <genkey alias="${samplesign.key.alias}"
- verbose="true"
- storepass="${samplesign.key.storepass}"
- keypass="${samplesign.key.pass}"
- validity="365"
- keystore="${samplesign.key.store}">
- <dname>
- <param name="CN" value="CGLIB Project"/>
- <param name="OU" value="Samples"/>
- <param name="O" value="CGLIB"/>
- <param name="C" value="US"/>
- </dname>
- </genkey>
- <signjar jar="${samples.build.home}/samples.jar"
- signedjar="${samples.build.home}/samples.jar"
- keystore="${samplesign.key.store}"
- alias="${samplesign.key.alias}"
- storepass="${samplesign.key.storepass}"
- keypass="${samplesign.key.pass}"/>
- </target>
-
-
- <target depends="compile-samples"
- description="runs samples"
- name="samples-beans">
- <java classname="Beans"
- failonerror="${test.failonerror}"
- fork="yes"
- >
-
- <classpath>
- <pathelement path="${samples.build.home}/classes"/>
- <pathelement path="${build.home}/classes"/>
- <fileset dir="./lib">
- <include name="*.*"/>
- </fileset>
- </classpath>
- </java>
- </target>
-
-
-
- <target depends="compile-samples"
- description="runs samples"
- name="samples-trace">
- <java classname="Trace"
- failonerror="${test.failonerror}"
- fork="yes"
- >
-
- <classpath>
- <pathelement path="${samples.build.home}/classes"/>
- <pathelement path="${build.home}/classes"/>
- <fileset dir="./lib">
- <include name="*.*"/>
- </fileset>
- </classpath>
- </java>
- </target>
-
- <target depends="signed-samples-jar"
- description="runs samples"
- name="samples-trace-signed">
- <java classname="samples.Trace"
- failonerror="${test.failonerror}"
- fork="yes"
- >
-
- <classpath>
- <pathelement path="${samples.build.home}/samples.jar"/>
- <pathelement path="${build.home}/classes"/>
- <fileset dir="./lib">
- <include name="*.*"/>
- </fileset>
- </classpath>
- </java>
- </target>
-
-
- <target depends="compile,compile-samples,signed-samples-jar"
- name="build-test">
- <javac debug="${compile.debug}"
- deprecation="${compile.deprecation}"
- destdir="${test.build.home}/classes"
- optimize="${compile.optimize}"
- srcdir="${source.test}"
- >
-
- <classpath refid="compile.classpath"/>
- <classpath>
- <pathelement path="${build.home}/classes"/>
- <pathelement path="${samples.build.home}/classes" />
- </classpath>
- <compilerarg compiler="jikes" value="-nowarn"/>
-
- </javac>
-
-
- </target>
-
- <target depends="init,build-test"
- description="runs (junit) unit tests"
- name="test">
- <java classname="net.sf.cglib.TestAll"
- failonerror="${test.failonerror}"
- fork="yes"
- >
-
- <!-- jvmarg value="-Xrunhprof:heap=all,file=debug.txt"/ -->
- <!-- <jvmarg value="-verbose:gc"/> -->
- <!-- <jvmarg value="-verbose:class"/> -->
- <!-- <jvmarg value="-Xprof"/> -->
- <!-- <jvmarg value="-server"/> -->
- <!-- <sysproperty key="cglib.debugLocation" value="debug"/> -->
- <!-- <jvmarg value="-Djava.security.policy==java.policy" /> -->
- <!-- <jvmarg value="-Djava.security.manager" /> -->
-
- <arg value="${test.entry}"/>
- <classpath>
- <pathelement path="${build.home}/classes"/>
- <pathelement path="${test.build.home}/classes"/>
- <pathelement path="${classpath}"/>
- <pathelement path="${java.class.path}"/>
- <pathelement path="${source.test}"/>
- <pathelement path="${samples.build.home}/samples.jar" />
- <fileset dir="./lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- </java>
- </target>
-
-</project>
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>cglib-parent</artifactId>
+ <groupId>cglib</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>cglib-nodep</artifactId>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <shadedArtifactAttached>false</shadedArtifactAttached>
+ <createDependencyReducedPom>true</createDependencyReducedPom>
+ <createSourcesJar>true</createSourcesJar>
+ <shadeSourcesContent>true</shadeSourcesContent>
+ <relocations>
+ <relocation>
+ <pattern>org.objectweb.asm</pattern>
+ <shadedPattern>net.sf.cglib.asm</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
+
Oops, something went wrong.

0 comments on commit 20476c6

Please sign in to comment.