Permalink
Browse files

CQ5150 Initial check-in of tycho sources

Based on CQ 5150 attachment
https://dev.eclipse.org/ipzilla/attachment.cgi?id=7318
which is approved for check-in according to
https://dev.eclipse.org/ipzilla/show_bug.cgi?id=5150#c19

Only change to attached archive:
- removed StringUtils.java
  • Loading branch information...
1 parent a2eb47e commit 5138050656037e4d4b4a7b4b31f034f8cfd91e7a @jsievers jsievers committed Sep 19, 2011
Showing with 14,056 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +9 −0 README.md
  3. +15 −0 bootstrap.cmd
  4. +20 −0 bootstrap.sh
  5. +538 −0 pom.xml
  6. +18 −0 src/site/site.xml
  7. +7 −0 target-platform-configuration/.gitignore
  8. +281 −0 target-platform-configuration/.settings/org.eclipse.jdt.core.prefs
  9. +57 −0 target-platform-configuration/.settings/org.eclipse.jdt.ui.prefs
  10. +34 −0 target-platform-configuration/pom.xml
  11. +24 −0 target-platform-configuration/src/main/java/noop/Noop.java
  12. +7 −0 tycho-compiler-jdt/.gitignore
  13. +281 −0 tycho-compiler-jdt/.settings/org.eclipse.jdt.core.prefs
  14. +57 −0 tycho-compiler-jdt/.settings/org.eclipse.jdt.ui.prefs
  15. +53 −0 tycho-compiler-jdt/pom.xml
  16. +549 −0 tycho-compiler-jdt/src/main/java/org/eclipse/tycho/compiler/jdt/JDTCompiler.java
  17. +7 −0 tycho-compiler-plugin/.gitignore
  18. +281 −0 tycho-compiler-plugin/.settings/org.eclipse.jdt.core.prefs
  19. +57 −0 tycho-compiler-plugin/.settings/org.eclipse.jdt.ui.prefs
  20. +91 −0 tycho-compiler-plugin/pom.xml
  21. +52 −0 tycho-compiler-plugin/src/main/java/org/eclipse/tycho/compiler/CopyMapping.java
  22. +275 −0 tycho-compiler-plugin/src/test/java/org/eclipse/tycho/osgicompiler/test/OsgiCompilerTest.java
  23. +3 −0 tycho-compiler-plugin/src/test/resources/projects/.gitignore
  24. +7 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p001/.classpath
  25. +34 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p001/.project
  26. +7 −0 ...compiler-plugin/src/test/resources/projects/accessrules/p001/.settings/org.eclipse.jdt.core.prefs
  27. +5 −0 ...compiler-plugin/src/test/resources/projects/accessrules/p001/.settings/org.eclipse.pde.core.prefs
  28. +6 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p001/META-INF/MANIFEST.MF
  29. +4 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p001/build.properties
  30. +32 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p001/pom.xml
  31. +15 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p001/src/p001/P001.java
  32. +15 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p001/src/p001/impl/P001Impl.java
  33. +7 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p002/.classpath
  34. +28 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p002/.project
  35. +7 −0 ...compiler-plugin/src/test/resources/projects/accessrules/p002/.settings/org.eclipse.jdt.core.prefs
  36. +5 −0 ...compiler-plugin/src/test/resources/projects/accessrules/p002/.settings/org.eclipse.pde.core.prefs
  37. +8 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p002/META-INF/MANIFEST.MF
  38. +4 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p002/build.properties
  39. +30 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p002/pom.xml
  40. +17 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p002/src/p002/P002.java
  41. +17 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p002/src/p002/impl/P002Impl.java
  42. +7 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p003/.classpath
  43. +28 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p003/.project
  44. +7 −0 ...compiler-plugin/src/test/resources/projects/accessrules/p003/.settings/org.eclipse.jdt.core.prefs
  45. +5 −0 ...compiler-plugin/src/test/resources/projects/accessrules/p003/.settings/org.eclipse.pde.core.prefs
  46. +6 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p003/META-INF/MANIFEST.MF
  47. +4 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p003/build.properties
  48. +32 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p003/pom.xml
  49. +15 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p003/src/p003/P003.java
  50. +17 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p003/src/p004/P004.java
  51. +7 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p004/.classpath
  52. +28 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p004/.project
  53. +7 −0 ...compiler-plugin/src/test/resources/projects/accessrules/p004/.settings/org.eclipse.jdt.core.prefs
  54. +5 −0 ...compiler-plugin/src/test/resources/projects/accessrules/p004/.settings/org.eclipse.pde.core.prefs
  55. +6 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p004/META-INF/MANIFEST.MF
  56. +4 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p004/build.properties
  57. +32 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p004/pom.xml
  58. +17 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p004/src/p003/P003.java
  59. +15 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/p004/src/p004/P004.java
  60. +13 −0 tycho-compiler-plugin/src/test/resources/projects/accessrules/pom.xml
  61. +7 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p001/.classpath
  62. +34 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p001/.project
  63. +7 −0 ...o-compiler-plugin/src/test/resources/projects/classpath/p001/.settings/org.eclipse.jdt.core.prefs
  64. +5 −0 ...o-compiler-plugin/src/test/resources/projects/classpath/p001/.settings/org.eclipse.pde.core.prefs
  65. +5 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p001/META-INF/MANIFEST.MF
  66. +4 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p001/build.properties
  67. +26 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p001/pom.xml
  68. 0 tycho-compiler-plugin/src/test/resources/projects/classpath/p001/src/.gitignore
  69. +7 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p002/.classpath
  70. +34 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p002/.project
  71. +7 −0 ...o-compiler-plugin/src/test/resources/projects/classpath/p002/.settings/org.eclipse.jdt.core.prefs
  72. +5 −0 ...o-compiler-plugin/src/test/resources/projects/classpath/p002/.settings/org.eclipse.pde.core.prefs
  73. +6 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p002/META-INF/MANIFEST.MF
  74. +5 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p002/build.properties
  75. +26 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p002/pom.xml
  76. 0 tycho-compiler-plugin/src/test/resources/projects/classpath/p002/src/.gitignore
  77. +7 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p003/.classpath
  78. +34 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p003/.project
  79. +7 −0 ...o-compiler-plugin/src/test/resources/projects/classpath/p003/.settings/org.eclipse.jdt.core.prefs
  80. +5 −0 ...o-compiler-plugin/src/test/resources/projects/classpath/p003/.settings/org.eclipse.pde.core.prefs
  81. +6 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p003/META-INF/MANIFEST.MF
  82. +5 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p003/build.properties
  83. +26 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p003/pom.xml
  84. 0 tycho-compiler-plugin/src/test/resources/projects/classpath/p003/src/.gitignore
  85. +7 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p004/.classpath
  86. +34 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p004/.project
  87. +7 −0 ...o-compiler-plugin/src/test/resources/projects/classpath/p004/.settings/org.eclipse.jdt.core.prefs
  88. +5 −0 ...o-compiler-plugin/src/test/resources/projects/classpath/p004/.settings/org.eclipse.pde.core.prefs
  89. +7 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p004/META-INF/MANIFEST.MF
  90. +5 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p004/build.properties
  91. +26 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p004/pom.xml
  92. 0 tycho-compiler-plugin/src/test/resources/projects/classpath/p004/src/.gitignore
  93. +6 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p005/META-INF/MANIFEST.MF
  94. +5 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p005/build.properties
  95. +27 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p005/pom.xml
  96. +18 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/p005/src/Test.java
  97. +7 −0 ...c/test/resources/projects/classpath/platform/plugins/p003_0.0.1.jar-unzipped/META-INF/MANIFEST.MF
  98. +13 −0 tycho-compiler-plugin/src/test/resources/projects/classpath/pom.xml
  99. +5 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p001/META-INF/MANIFEST.MF
  100. +4 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p001/build.properties
  101. +27 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p001/pom.xml
  102. +15 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p001/src/Generic.java
  103. +7 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p002/.classpath
  104. +28 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p002/.project
  105. +7 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p002/META-INF/MANIFEST.MF
  106. +4 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p002/build.properties
  107. +27 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p002/pom.xml
  108. +19 −0 ...-compiler-plugin/src/test/resources/projects/executionEnvironment/p002/src/TestAssertKeyword.java
  109. +7 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p003/.classpath
  110. +28 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p003/.project
  111. +6 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p003/META-INF/MANIFEST.MF
  112. +4 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p003/build.properties
  113. +29 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p003/pom.xml
  114. +15 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/p003/src/Generic.java
  115. +12 −0 tycho-compiler-plugin/src/test/resources/projects/executionEnvironment/pom.xml
  116. +11 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/.project
  117. +7 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/A/META-INF/MANIFEST.MF
  118. +4 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/A/build.properties
  119. +27 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/A/pom.xml
  120. +23 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/A/src/a/A.java
  121. +8 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/B/META-INF/MANIFEST.MF
  122. +4 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/B/build.properties
  123. +27 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/B/pom.xml
  124. +26 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/B/src/b/B.java
  125. +7 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/C/META-INF/MANIFEST.MF
  126. +4 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/C/build.properties
  127. +27 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/C/pom.xml
  128. +16 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/C/src/c/C.java
  129. +14 −0 tycho-compiler-plugin/src/test/resources/projects/indirectDependencies/pom.xml
  130. +8 −0 tycho-compiler-plugin/src/test/resources/projects/multijar/.classpath
  131. +28 −0 tycho-compiler-plugin/src/test/resources/projects/multijar/.project
  132. +7 −0 tycho-compiler-plugin/src/test/resources/projects/multijar/.settings/org.eclipse.jdt.core.prefs
  133. +8 −0 tycho-compiler-plugin/src/test/resources/projects/multijar/META-INF/MANIFEST.MF
  134. +10 −0 tycho-compiler-plugin/src/test/resources/projects/multijar/build.properties
  135. +22 −0 tycho-compiler-plugin/src/test/resources/projects/multijar/pom.xml
  136. +15 −0 tycho-compiler-plugin/src/test/resources/projects/multijar/src/src/Src.java
  137. +17 −0 tycho-compiler-plugin/src/test/resources/projects/multijar/src2/src2/Src2.java
  138. +8 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p001/.classpath
  139. +28 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p001/.project
  140. +7 −0 ...compiler-plugin/src/test/resources/projects/multisource/p001/.settings/org.eclipse.jdt.core.prefs
  141. +6 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p001/META-INF/MANIFEST.MF
  142. +5 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p001/build.properties
  143. +28 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p001/pom.xml
  144. +15 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p001/src/p001/p1/P1.java
  145. +15 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p001/src2/p001/p2/P2.java
  146. +8 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p002/.classpath
  147. +28 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p002/.project
  148. +7 −0 ...compiler-plugin/src/test/resources/projects/multisource/p002/.settings/org.eclipse.jdt.core.prefs
  149. +6 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p002/META-INF/MANIFEST.MF
  150. +5 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p002/build.properties
  151. +25 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p002/pom.xml
  152. +15 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p002/src/p002/p1/P1.java
  153. +15 −0 tycho-compiler-plugin/src/test/resources/projects/multisource/p002/src2/p002/p2/P2.java
  154. +7 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p001/.classpath
  155. +28 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p001/.project
  156. +5 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p001/META-INF/MANIFEST.MF
  157. +4 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p001/build.properties
  158. +25 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p001/pom.xml
  159. +15 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p001/src/testresources/Test.java
  160. 0 tycho-compiler-plugin/src/test/resources/projects/resources/p001/src/testresources/test.properties
  161. +7 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p002/.classpath
  162. +28 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p002/.project
  163. +5 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p002/META-INF/MANIFEST.MF
  164. +4 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p002/build.properties
  165. +30 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p002/pom.xml
  166. 0 tycho-compiler-plugin/src/test/resources/projects/resources/p002/src/testresources/Test.aj
  167. +15 −0 tycho-compiler-plugin/src/test/resources/projects/resources/p002/src/testresources/Test.java
  168. +10 −0 tycho-core/.gitignore
  169. +281 −0 tycho-core/.settings/org.eclipse.jdt.core.prefs
  170. +57 −0 tycho-core/.settings/org.eclipse.jdt.ui.prefs
  171. +132 −0 tycho-core/pom.xml
  172. +780 −0 tycho-core/src/main/java/copy/org/eclipse/core/runtime/internal/adaptor/PluginConverterImpl.java
  173. +714 −0 tycho-core/src/main/java/copy/org/eclipse/core/runtime/internal/adaptor/PluginParser.java
  174. +2 −0 tycho-core/src/main/java/copy/org/eclipse/core/runtime/internal/adaptor/package.html
  175. +44 −0 tycho-core/src/main/java/org/eclipse/tycho/core/ArtifactDependencyVisitor.java
  176. +36 −0 tycho-core/src/main/java/org/eclipse/tycho/core/ArtifactDependencyWalker.java
  177. +33 −0 tycho-core/src/main/java/org/eclipse/tycho/core/BundleProject.java
  178. +23 −0 tycho-core/src/main/java/org/eclipse/tycho/core/FeatureDescription.java
  179. +26 −0 tycho-core/src/main/java/org/eclipse/tycho/core/PluginDescription.java
  180. +90 −0 tycho-core/src/main/java/org/eclipse/tycho/core/TargetEnvironment.java
  181. +75 −0 tycho-core/src/main/java/org/eclipse/tycho/core/TargetPlatform.java
  182. +97 −0 tycho-core/src/main/java/org/eclipse/tycho/core/TargetPlatformConfiguration.java
  183. +29 −0 tycho-core/src/main/java/org/eclipse/tycho/core/TargetPlatformResolver.java
  184. +27 −0 tycho-core/src/main/java/org/eclipse/tycho/core/TychoConstants.java
  185. +47 −0 tycho-core/src/main/java/org/eclipse/tycho/core/TychoProject.java
  186. +27 −0 tycho-core/src/main/java/org/eclipse/tycho/core/UnknownEnvironmentException.java
  187. +199 −0 tycho-core/src/main/java/org/eclipse/tycho/core/maven/MavenDependencyCollector.java
  188. +99 −0 tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoMavenLifecycleParticipant.java
  189. +53 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractArtifactBasedProject.java
  190. +259 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractArtifactDependencyWalker.java
  191. +72 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractTychoProject.java
  192. +47 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/BundleReader.java
  193. +21 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DebugUtils.java
  194. +72 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultArtifactDescriptor.java
  195. +79 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultArtifactKey.java
  196. +212 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultBundleReader.java
  197. +82 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultClasspathEntry.java
  198. +41 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultFeatureDescription.java
  199. +35 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultPluginDescription.java
  200. +196 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultReactorProject.java
  201. +254 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DependencyComputer.java
  202. +55 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/EclipseApplicationProject.java
  203. +52 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/EclipseFeatureProject.java
  204. +129 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/EclipseRepositoryProject.java
  205. +259 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/EquinoxResolver.java
  206. +353 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/OsgiBundleProject.java
  207. +19 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/OsgiTestBundleProject.java
  208. +53 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/UpdateSiteProject.java
  209. +46 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/project/BuildOutputJar.java
  210. +34 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/project/EclipsePluginProject.java
  211. +138 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/project/EclipsePluginProjectImpl.java
  212. +18 −0 ...src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/AbstractTargetPlatformResolver.java
  213. +249 −0 tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/DefaultTargetPlatform.java
  214. +314 −0 ...core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/EclipseInstallationLayout.java
  215. +249 −0 ...re/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/LocalTargetPlatformResolver.java
  216. +42 −0 ...src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/MultiEnvironmentTargetPlatform.java
  217. +50 −0 tycho-core/src/main/java/org/eclipse/tycho/core/p2/P2ArtifactRepositoryLayout.java
  218. +63 −0 tycho-core/src/main/java/org/eclipse/tycho/core/p2/P2RepositoryConnector.java
  219. +35 −0 tycho-core/src/main/java/org/eclipse/tycho/core/p2/P2RepositoryConnectorFactory.java
  220. +230 −0 ...-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTargetPlatformConfigurationReader.java
  221. +81 −0 tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTargetPlatformResolverFactory.java
  222. +133 −0 tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTychoDependencyResolver.java
  223. +60 −0 tycho-core/src/main/java/org/eclipse/tycho/core/utils/ExecutionEnvironment.java
  224. +236 −0 tycho-core/src/main/java/org/eclipse/tycho/core/utils/ExecutionEnvironmentUtils.java
  225. +50 −0 tycho-core/src/main/java/org/eclipse/tycho/core/utils/MavenArtifactRef.java
  226. +49 −0 tycho-core/src/main/java/org/eclipse/tycho/core/utils/MavenSessionUtils.java
  227. +207 −0 tycho-core/src/main/java/org/eclipse/tycho/core/utils/PlatformPropertiesUtils.java
  228. +56 −0 tycho-core/src/main/java/org/eclipse/tycho/core/utils/TychoProjectUtils.java
  229. +41 −0 tycho-core/src/main/java/org/eclipse/tycho/core/utils/TychoVersion.java
  230. +35 −0 tycho-core/src/test/assembly/test-assembly.xml
  231. +110 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/ArtifactDependencyWalkerTest.java
  232. +73 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/DefaultBundleReaderTest.java
  233. +82 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/DefaultTargetPlatformTest.java
  234. +82 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/DependencyComputerTest.java
  235. +104 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/EclipseInstallationLayoutTest.java
  236. +113 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/ExecutionEnvironmentTest.java
  237. +89 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/LocalTargetPlatformResolverTest.java
  238. +148 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/MavenDependencyCollectorTest.java
  239. +252 −0 tycho-core/src/test/java/org/eclipse/tycho/core/test/TychoTest.java
  240. +21 −0 tycho-core/src/test/java/org/eclipse/tycho/core/testcomponents/StubP2TargetPlatformResolver.java
  241. +7 −0 ...esources/bundlereader/testNestedDirClasspath_1.0.0.201007261122.jar-unzipped/META-INF/MANIFEST.MF
  242. 0 ...esources/bundlereader/testNestedDirClasspath_1.0.0.201007261122.jar-unzipped/lib/log4j.properties
  243. 0 ...resources/bundlereader/testNestedDirClasspath_1.0.0.201007261122.jar-unzipped/lib/subdir/test.txt
  244. +20 −0 tycho-core/src/test/resources/dependencywalker/feature_based.product
  245. +20 −0 tycho-core/src/test/resources/dependencywalker/plugin_based.product
  246. +28 −0 tycho-core/src/test/resources/p2repo/artifacts.xml
  247. +270 −0 tycho-core/src/test/resources/p2repo/content.xml
  248. +3 −0 ...c/test/resources/p2repo/features/org.eclipse.osgi.feature_3.4.0.jar-unzipped/META-INF/MANIFEST.MF
  249. +13 −0 ...o-core/src/test/resources/p2repo/features/org.eclipse.osgi.feature_3.4.0.jar-unzipped/feature.xml
  250. +1 −0 tycho-core/src/test/resources/projects/TYCHO0378unwantedSelfDependency/build.properties
  251. +19 −0 tycho-core/src/test/resources/projects/TYCHO0378unwantedSelfDependency/feature.xml
  252. +26 −0 tycho-core/src/test/resources/projects/TYCHO0378unwantedSelfDependency/pom.xml
  253. +7 −0 tycho-core/src/test/resources/projects/dummy/META-INF/MANIFEST.MF
  254. +11 −0 tycho-core/src/test/resources/projects/dummy/pom.xml
  255. +4 −0 tycho-core/src/test/resources/projects/dummy/site.xml
  256. +8 −0 tycho-core/src/test/resources/projects/exportpackage/bundle/META-INF/MANIFEST.MF
  257. +4 −0 tycho-core/src/test/resources/projects/exportpackage/bundle/build.properties
  258. +15 −0 tycho-core/src/test/resources/projects/exportpackage/bundle/pom.xml
  259. 0 tycho-core/src/test/resources/projects/exportpackage/bundle/src/.gitignore
  260. +9 −0 tycho-core/src/test/resources/projects/exportpackage/dep/META-INF/MANIFEST.MF
  261. +4 −0 tycho-core/src/test/resources/projects/exportpackage/dep/build.properties
  262. +15 −0 tycho-core/src/test/resources/projects/exportpackage/dep/pom.xml
  263. +15 −0 tycho-core/src/test/resources/projects/exportpackage/dep/src/dep/Dep.java
  264. +7 −0 tycho-core/src/test/resources/projects/exportpackage/dep2/META-INF/MANIFEST.MF
  265. +4 −0 tycho-core/src/test/resources/projects/exportpackage/dep2/build.properties
  266. +16 −0 tycho-core/src/test/resources/projects/exportpackage/dep2/pom.xml
  267. +15 −0 tycho-core/src/test/resources/projects/exportpackage/dep2/src/dep/Dep2.java
  268. +6 −0 tycho-core/src/test/resources/projects/exportpackage/dep3/META-INF/MANIFEST.MF
  269. +4 −0 tycho-core/src/test/resources/projects/exportpackage/dep3/build.properties
  270. +15 −0 tycho-core/src/test/resources/projects/exportpackage/dep3/pom.xml
  271. 0 tycho-core/src/test/resources/projects/exportpackage/dep3/src/.gitignore
  272. +17 −0 tycho-core/src/test/resources/projects/exportpackage/pom.xml
  273. +5 −0 tycho-core/src/test/resources/projects/extraclasspath/b01/META-INF/MANIFEST.MF
  274. +11 −0 tycho-core/src/test/resources/projects/extraclasspath/b01/build.properties
  275. +15 −0 tycho-core/src/test/resources/projects/extraclasspath/b01/pom.xml
  276. 0 tycho-core/src/test/resources/projects/extraclasspath/b01/src/file.txt
  277. 0 tycho-core/src/test/resources/projects/extraclasspath/b01/src2/file2.txt
  278. +5 −0 tycho-core/src/test/resources/projects/extraclasspath/b02/META-INF/MANIFEST.MF
  279. +8 −0 tycho-core/src/test/resources/projects/extraclasspath/b02/build.properties
  280. +15 −0 tycho-core/src/test/resources/projects/extraclasspath/b02/pom.xml
  281. +15 −0 tycho-core/src/test/resources/projects/extraclasspath/pom.xml
  282. +6 −0 tycho-core/src/test/resources/projects/fragment/client/META-INF/MANIFEST.MF
  283. +4 −0 tycho-core/src/test/resources/projects/fragment/client/build.properties
  284. +15 −0 tycho-core/src/test/resources/projects/fragment/client/pom.xml
  285. 0 tycho-core/src/test/resources/projects/fragment/client/src/.gitignore
  286. +5 −0 tycho-core/src/test/resources/projects/fragment/dep/META-INF/MANIFEST.MF
  287. +15 −0 tycho-core/src/test/resources/projects/fragment/dep/pom.xml
  288. 0 tycho-core/src/test/resources/projects/fragment/dep/src/.gitignore
  289. +7 −0 tycho-core/src/test/resources/projects/fragment/fragment/META-INF/MANIFEST.MF
  290. +4 −0 tycho-core/src/test/resources/projects/fragment/fragment/build.properties
  291. +15 −0 tycho-core/src/test/resources/projects/fragment/fragment/pom.xml
  292. 0 tycho-core/src/test/resources/projects/fragment/fragment/src/.gitignore
  293. +6 −0 tycho-core/src/test/resources/projects/fragment/fragment2/META-INF/MANIFEST.MF
  294. +4 −0 tycho-core/src/test/resources/projects/fragment/fragment2/build.properties
  295. +15 −0 tycho-core/src/test/resources/projects/fragment/fragment2/pom.xml
  296. 0 tycho-core/src/test/resources/projects/fragment/fragment2/src/.gitignore
  297. +6 −0 tycho-core/src/test/resources/projects/fragment/host/META-INF/MANIFEST.MF
  298. +4 −0 tycho-core/src/test/resources/projects/fragment/host/build.properties
  299. +15 −0 tycho-core/src/test/resources/projects/fragment/host/pom.xml
  300. 0 tycho-core/src/test/resources/projects/fragment/host/src/.gitignore
Sorry, we could not display the entire diff because too many files (2,288) changed.
View
5 .gitignore
@@ -0,0 +1,5 @@
+target/
+bin/
+.project
+.classpath
+.settings/
View
9 README.md
@@ -0,0 +1,9 @@
+Tycho homepage http://tycho.sonatype.org/
+
+Tycho wiki http://wiki.eclipse.org/Category:Tycho
+
+Tycho bug tracking https://issues.sonatype.org/browse/TYCHO
+
+Tycho CI build results https://grid.sonatype.org/ci/view/Tycho/
+
+Building Tycho from sources http://wiki.eclipse.org/Developing_Tycho
View
15 bootstrap.cmd
@@ -0,0 +1,15 @@
+rem Location of Eclipse SDK with RCP Delta pack
+set TYCHO_TEST_TARGET_PLATFORM=c:\eclipse\3.6.1\eclipse
+
+rem Location of maven used to build tycho
+set TYCHO_M2_HOME=c:\tools\apache-maven-3.0
+
+set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m
+
+call %TYCHO_M2_HOME%\bin\mvn -f tycho-p2-resolver\pom.xml clean install -U -e -V || exit /b
+
+call %TYCHO_M2_HOME%\bin\mvn clean install -U -e -V || exit /b
+
+call %TYCHO_M2_HOME%\bin\mvn -f tycho-its\pom.xml clean test -U -e -V -Dtycho.testTargetPlatform=%TYCHO_TEST_TARGET_PLATFORM% || exit /b
+
+rem call %TYCHO_M2_HOME%\bin\mvn -Dsite.generation site:stage || exit /b
View
20 bootstrap.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# Location of Eclipse SDK with RCP Delta pack
+#TYCHO_TEST_TARGET_PLATFORM="-Dtycho.testTargetPlatform=/opt/eclipse-3.6-rcp/eclipse"
+
+# location of maven used to build bootstrap tycho distribution
+TYCHO_M2_HOME=/opt/maven
+
+export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"
+
+export MAVEN_PARAMS="-Dmaven.repo.local=/tmp/tycho-bootstrap.localrepo -Dit.cliOptions=-U"
+
+$TYCHO_M2_HOME/bin/mvn -f tycho-p2-resolver/pom.xml clean install -U -e -V ${MAVEN_PARAMS} || exit
+
+$TYCHO_M2_HOME/bin/mvn clean install -U -e -V ${MAVEN_PARAMS} || exit
+
+$TYCHO_M2_HOME/bin/mvn -f tycho-its/pom.xml clean test -U -e -V ${TYCHO_TEST_TARGET_PLATFORM} ${MAVEN_PARAMS} || exit
+
+# uncomment to generate project documentation
+# $TYCHO_M2_HOME/bin/mvn -Dsite.generation site:stage ${MAVEN_PARAMS} || exit
View
538 pom.xml
@@ -0,0 +1,538 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - Copyright (c) 2008, 2011 Sonatype Inc. and others.
+ - All rights reserved. This program and the accompanying materials
+ - are made available under the terms of the Eclipse Public License v1.0
+ - which accompanies this distribution, and is available at
+ - http://www.eclipse.org/legal/epl-v10.html
+ -
+ - Contributors:
+ - Sonatype Inc. - initial API and implementation
+ -->
+
+<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">
+ <modelVersion>4.0.0</modelVersion>
+
+ <prerequisites>
+ <maven>3.0</maven>
+ </prerequisites>
+
+ <parent>
+ <groupId>org.sonatype.forge</groupId>
+ <artifactId>forge-parent</artifactId>
+ <version>8</version>
+ </parent>
+
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho</artifactId>
+ <version>0.13.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <name>Tycho (Incubation)</name>
+ <description>Tycho integrates Maven with Eclipse and OSGi</description>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+ <!-- copy&paste from maven/pom.xml file. I wish import scope worked in 3.0 -->
+ <classWorldsVersion>2.2.3</classWorldsVersion>
+ <commonsCliVersion>1.2</commonsCliVersion>
+ <easyMockVersion>1.2_Java1.3</easyMockVersion>
+ <junitVersion>3.8.2</junitVersion>
+ <plexusVersion>1.5.5</plexusVersion>
+ <plexusInterpolationVersion>1.14</plexusInterpolationVersion>
+ <plexusUtilsVersion>2.0.4</plexusUtilsVersion>
+ <sisuInjectVersion>1.4.2</sisuInjectVersion>
+ <wagonVersion>1.0-beta-6</wagonVersion>
+ <securityDispatcherVersion>1.3</securityDispatcherVersion>
+ <cipherVersion>1.4</cipherVersion>
+ <modelloVersion>1.4</modelloVersion>
+ <jxpathVersion>1.3</jxpathVersion>
+ <aetherVersion>1.7</aetherVersion>
+
+ <maven-version>3.0</maven-version>
+
+ <!--
+ Version corresponds to Eclipse 3.6.2
+
+ EQUINOX_VERSION=3.6.2.R36x_v20110210
+
+ /opt/maven/bin/mvn install:install-file -Dfile=org.eclipse.osgi_$EQUINOX_VERSION.jar -Dsources=org.eclipse.osgi.source_$EQUINOX_VERSION.jar \
+ -DgroupId=org.eclipse.tycho -DartifactId=org.eclipse.osgi -Dversion=$EQUINOX_VERSION -Dpackaging=jar
+
+ /opt/maven/bin/mvn deploy:deploy-file -Dfile=org.eclipse.osgi_$EQUINOX_VERSION.jar \
+ -DgroupId=org.eclipse.tycho -DartifactId=org.eclipse.osgi -Dversion=$EQUINOX_VERSION -Dpackaging=jar \
+ -DgeneratePom=true -DrepositoryId=forge-releases -Durl=http://repository.sonatype.org/service/local/staging/deploy/maven2/
+
+ /opt/maven/bin/mvn deploy:deploy-file -Dfile=org.eclipse.osgi.source_$EQUINOX_VERSION.jar -Dclassifier=sources \
+ -DgroupId=org.eclipse.tycho -DartifactId=org.eclipse.osgi -Dversion=$EQUINOX_VERSION -Dpackaging=jar \
+ -DgeneratePom=true -DrepositoryId=forge-releases -Durl=http://repository.sonatype.org/service/local/staging/deploy/maven2/
+
+ Promote the staging repo to http://repository.sonatype.org/content/repositories/releases/
+ -->
+ <equinoxVersion>3.6.2.R36x_v20110210</equinoxVersion>
+
+ <!--
+ Version corresponds to Eclipse 3.6.1
+
+ JDT_VERSION=3.6.2.v_A76_R36x
+
+ /opt/maven/bin/mvn install:install-file -Dfile=org.eclipse.jdt.core_$JDT_VERSION.jar -Dsources=org.eclipse.jdt.core.source_$JDT_VERSION.jar \
+ -DgroupId=org.eclipse.tycho -DartifactId=org.eclipse.jdt.core -Dversion=$JDT_VERSION -Dpackaging=jar
+
+ /opt/maven/bin/mvn deploy:deploy-file -Dfile=org.eclipse.jdt.core_$JDT_VERSION.jar \
+ -DgroupId=org.eclipse.tycho -DartifactId=org.eclipse.jdt.core -Dversion=$JDT_VERSION -Dpackaging=jar \
+ -DgeneratePom=true -DrepositoryId=forge-releases -Durl=http://repository.sonatype.org/service/local/staging/deploy/maven2/
+
+ /opt/maven/bin/mvn deploy:deploy-file -Dfile=org.eclipse.jdt.core.source_$JDT_VERSION.jar -Dclassifier=sources \
+ -DgroupId=org.eclipse.tycho -DartifactId=org.eclipse.jdt.core -Dversion=$JDT_VERSION -Dpackaging=jar \
+ -DgeneratePom=true -DrepositoryId=forge-releases -Durl=http://repository.sonatype.org/service/local/staging/deploy/maven2/
+
+ Promote the staging repo to http://repository.sonatype.org/content/repositories/releases/
+ -->
+ <jdtVersion>3.6.2.v_A76_R36x</jdtVersion>
+
+ <!-- version of tycho used by this build -->
+ <tychoBootstrapVersion>0.11.1</tychoBootstrapVersion>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>${maven-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-core</artifactId>
+ <version>${maven-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-compat</artifactId>
+ <version>${maven-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>${maven-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-settings</artifactId>
+ <version>${maven-version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-annotations</artifactId>
+ <version>${plexusVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>${plexusUtilsVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-archiver</artifactId>
+ <version>1.0-alpha-12</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-container-default</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-compiler-api</artifactId>
+ <version>1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-compiler-manager</artifactId>
+ <version>1.6</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>org.eclipse.osgi</artifactId>
+ <version>${equinoxVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>org.eclipse.jdt.core</artifactId>
+ <version>${jdtVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-cli</groupId>
+ <artifactId>commons-cli</artifactId>
+ <version>${commonsCliVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>biz.aQute</groupId>
+ <artifactId>bndlib</artifactId>
+ <version>0.0.236</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-osgi</artifactId>
+ <version>0.2.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-booter</artifactId>
+ <version>2.4.3</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>de.pdark</groupId>
+ <artifactId>decentxml</artifactId>
+ <version>1.3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>org.apache.ant</artifactId>
+ <version>1.6.5</version>
+ </dependency>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant-junit</artifactId>
+ <version>1.6.5</version>
+ </dependency>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.6.5</version>
+ </dependency>
+
+ <dependency>
+ <groupId>bcel</groupId>
+ <artifactId>bcel</artifactId>
+ <version>5.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.sonatype.sisu</groupId>
+ <artifactId>sisu-inject-plexus</artifactId>
+ <version>${sisuInjectVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.plugin-testing</groupId>
+ <artifactId>maven-plugin-testing-harness</artifactId>
+ <version>2.0-alpha-1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-archiver</artifactId>
+ <version>2.4</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <type>maven-plugin</type>
+ <version>2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.thoughtworks.xstream</groupId>
+ <artifactId>xstream</artifactId>
+ <version>1.3</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ <version>1.8.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.release</groupId>
+ <artifactId>maven-release-manager</artifactId>
+ <version>1.0-alpha-4</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-container-default</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+
+ <plugins>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tychoBootstrapVersion}</version>
+ <extensions>true</extensions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tychoBootstrapVersion}</version>
+ <configuration>
+ <resolver>p2</resolver>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-metadata</artifactId>
+ <version>${plexusVersion}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate-metadata</goal>
+ <goal>generate-test-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ <configuration>
+ <useSystemClassLoader>false</useSystemClassLoader>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.0-beta-7</version>
+ <configuration>
+ <tagBase>https://svn.sonatype.org/m2eclipse/tycho/tags</tagBase>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-2</version>
+ <configuration>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.0.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.3.1</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <scm>
+ <connection>scm:git:git://github.com/sonatype/sonatype-tycho.git</connection>
+ <developerConnection>scm:git:git@github.com:sonatype/sonatype-tycho.git</developerConnection>
+ </scm>
+
+ <repositories>
+ <repository>
+ <id>sonatype-release</id>
+ <url>http://repository.sonatype.org/content/groups/sonatype-public-grid</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+ <modules>
+ <module>tycho-equinox-api</module>
+ <module>tycho-equinox</module>
+ <module>tycho-metadata-model</module>
+ <module>tycho-embedder-api</module>
+ <module>tycho-core</module>
+ <module>tycho-testing-harness</module>
+ <module>tycho-equinox-launching</module>
+
+ <module>tycho-compiler-jdt</module>
+ <module>tycho-compiler-plugin</module>
+ <module>tycho-packaging-plugin</module>
+ <module>tycho-source-plugin</module>
+ <module>target-platform-configuration</module>
+
+ <!-- surefire -->
+ <module>tycho-surefire</module>
+
+ <!-- release -->
+ <module>tycho-release</module>
+
+ <!-- tycho-p2 -->
+ <module>tycho-p2</module>
+ </modules>
+
+ <profiles>
+ <profile>
+ <id>its</id>
+ <modules>
+ <module>tycho-its</module>
+ </modules>
+ </profile>
+
+ <profile>
+ <id>buildextensions</id>
+ <activation>
+ <property>
+ <name>!site.generation</name>
+ </property>
+ </activation>
+ <!-- these modules fail during site generation (error: no mojo descriptors
+ found), so for now we exclude them when invoking mvn site -->
+ <modules>
+ <module>tycho-maven-plugin</module>
+ <module>tycho-pomgenerator-plugin</module>
+ </modules>
+ </profile>
+
+ <profile>
+ <id>site</id>
+ <activation>
+ <property>
+ <name>site.generation</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0-beta-3</version>
+ <configuration>
+ <reportPlugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <version>2.5.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.2</version>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </reportPlugins>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+ <!--need this to make site:stage happy -->
+ <distributionManagement>
+ <site>
+ <id>tycho.site</id>
+ <name>Tycho Site</name>
+ <url>staging</url>
+ </site>
+ </distributionManagement>
+
+</project>
View
18 src/site/site.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="Tycho">
+ <body>
+ <!-- TODO add samples -->
+ <menu name="Tycho">
+ <item name="Introduction" href="index.html"/>
+ <item name="OSGi Compiler Plugin" href="tycho-compiler-plugin/plugin-info.html"/>
+ <item name="OSGi Packaging Plugin" href="tycho-packaging-plugin/plugin-info.html"/>
+ <item name="OSGi Source Plugin" href="tycho-source-plugin/plugin-info.html"/>
+ <item name="Target Platform Configuration" href="target-platform-configuration/plugin-info.html"/>
+ <item name="OSGi Test Plugin" href="tycho-surefire/tycho-surefire-plugin/plugin-info.html"/>
+ <item name="Tycho Versions Plugin" href="tycho-release/tycho-versions-plugin/plugin-info.html"/>
+ <item name="P2 Director Plugin" href="tycho-p2/tycho-p2-director-plugin/plugin-info.html"/>
+ <item name="P2 Repository Plugin" href="tycho-p2/tycho-p2-repository-plugin/plugin-info.html"/>
+ </menu>
+ <menu ref="parent" inherit="top"/>
+ </body>
+</project>
View
7 target-platform-configuration/.gitignore
@@ -0,0 +1,7 @@
+# override global rule
+!/.settings/
+
+# only include specified files
+/.settings/*
+!/.settings/org.eclipse.jdt.core.prefs
+!/.settings/org.eclipse.jdt.ui.prefs
View
281 target-platform-configuration/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,281 @@
+#Mon Apr 18 09:10:24 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=false
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=100
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
View
57 target-platform-configuration/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,57 @@
+#Mon Apr 18 09:10:24 CEST 2011
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_Tycho
+formatter_settings_version=12
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
View
34 target-platform-configuration/pom.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - Copyright (c) 2008, 2011 Sonatype Inc. and others.
+ - All rights reserved. This program and the accompanying materials
+ - are made available under the terms of the Eclipse Public License v1.0
+ - which accompanies this distribution, and is available at
+ - http://www.eclipse.org/legal/epl-v10.html
+ -
+ - Contributors:
+ - Sonatype Inc. - initial API and implementation
+ -->
+
+<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">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <artifactId>tycho</artifactId>
+ <groupId>org.eclipse.tycho</groupId>
+ <version>0.13.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>target-platform-configuration</artifactId>
+ <packaging>maven-plugin</packaging>
+
+ <name>Tycho Target Platform Configuration Plugin (Incubation)</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ </dependency>
+ </dependencies>
+</project>
View
24 target-platform-configuration/src/main/java/noop/Noop.java
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2011 Sonatype Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Sonatype Inc. - initial API and implementation
+ *******************************************************************************/
+package noop;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+
+/**
+ * @goal noop
+ */
+public class Noop extends AbstractMojo {
+ public void execute() throws MojoExecutionException, MojoFailureException {
+ }
+
+}
View
7 tycho-compiler-jdt/.gitignore
@@ -0,0 +1,7 @@
+# override global rule
+!/.settings/
+
+# only include specified files
+/.settings/*
+!/.settings/org.eclipse.jdt.core.prefs
+!/.settings/org.eclipse.jdt.ui.prefs
View
281 tycho-compiler-jdt/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,281 @@
+#Mon Apr 18 09:10:24 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=false
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=100
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
View
57 tycho-compiler-jdt/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,57 @@
+#Mon Apr 18 09:10:24 CEST 2011
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_Tycho
+formatter_settings_version=12
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
View
53 tycho-compiler-jdt/pom.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - Copyright (c) 2008, 2011 Sonatype Inc. and others.
+ - All rights reserved. This program and the accompanying materials
+ - are made available under the terms of the Eclipse Public License v1.0
+ - which accompanies this distribution, and is available at
+ - http://www.eclipse.org/legal/epl-v10.html
+ -
+ - Contributors:
+ - Sonatype Inc. - initial API and implementation
+ -->
+
+<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">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho</artifactId>
+ <version>0.13.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>tycho-compiler-jdt</artifactId>
+
+ <name>Tycho JDT Compiler Component (Incubation)</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-metadata</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>org.eclipse.jdt.core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-compiler-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-annotations</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.sonatype.sisu</groupId>
+ <artifactId>sisu-inject-plexus</artifactId>
+ </dependency>
+ </dependencies>
+</project>
View
549 tycho-compiler-jdt/src/main/java/org/eclipse/tycho/compiler/jdt/JDTCompiler.java
@@ -0,0 +1,549 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ * Sonatype Inc. - plexus.compiler implementation
+ *******************************************************************************/
+package org.eclipse.tycho.compiler.jdt;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.codehaus.plexus.compiler.AbstractCompiler;
+import org.codehaus.plexus.compiler.CompilerConfiguration;
+import org.codehaus.plexus.compiler.CompilerError;
+import org.codehaus.plexus.compiler.CompilerException;
+import org.codehaus.plexus.compiler.CompilerOutputStyle;
+import org.codehaus.plexus.component.annotations.Component;
+import org.codehaus.plexus.util.StringUtils;
+import org.codehaus.plexus.util.cli.CommandLineException;
+import org.codehaus.plexus.util.cli.CommandLineUtils;
+import org.codehaus.plexus.util.cli.Commandline;
+import org.eclipse.jdt.core.compiler.CharOperation;
+import org.eclipse.jdt.internal.compiler.batch.Main;
+import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
+import org.eclipse.jdt.internal.compiler.util.SuffixConstants;
+import org.eclipse.jdt.internal.compiler.util.Util;
+
+/**
+ * See http://help.eclipse.org/ganymede/topic/org.eclipse.jdt.doc.isv/guide/jdt_api_options.htm
+ */
+
+@SuppressWarnings("unchecked")
+@Component(role = org.codehaus.plexus.compiler.Compiler.class, hint = "jdt")
+public class JDTCompiler extends AbstractCompiler {
+
+ private static final String SEPARATOR = "----------";
+
+ private static final char[] SEPARATOR_CHARS = new char[] { '/', '\\' };
+
+ private static final char[] ADAPTER_PREFIX = "#ADAPTER#".toCharArray(); //$NON-NLS-1$
+
+ private static final char[] ADAPTER_ENCODING = "ENCODING#".toCharArray(); //$NON-NLS-1$
+
+ private static final char[] ADAPTER_ACCESS = "ACCESS#".toCharArray(); //$NON-NLS-1$
+
+ String logFileName;
+
+ Map customDefaultOptions;
+
+ private Map fileEncodings = null;
+
+ private Map dirEncodings = null;
+
+ private List accessRules = null;
+
+ public JDTCompiler() {
+ super(CompilerOutputStyle.ONE_OUTPUT_FILE_PER_INPUT_FILE, ".java", ".class", null);
+ }
+
+ // ----------------------------------------------------------------------
+ // Compiler Implementation
+ // ----------------------------------------------------------------------
+
+ public List compile(CompilerConfiguration config) throws CompilerException {
+ File destinationDir = new File(config.getOutputLocation());
+
+ if (!destinationDir.exists()) {
+ destinationDir.mkdirs();
+ }
+
+ String[] sourceFiles = getSourceFiles(config);
+
+ if (sourceFiles.length == 0) {
+ return Collections.EMPTY_LIST;
+ }
+
+ getLogger().info(
+ "Compiling " + sourceFiles.length + " " + "source file" + (sourceFiles.length == 1 ? "" : "s") + " to "
+ + destinationDir.getAbsolutePath());
+
+ checkCompilerArgs(config.getCustomCompilerArguments());
+
+ String[] args = buildCompilerArguments(config, sourceFiles);
+
+ List messages;
+
+ if (config.isFork()) {
+ String executable = config.getExecutable();
+
+ if (StringUtils.isEmpty(executable)) {
+ executable = "javac";
+ }
+
+ messages = compileOutOfProcess(config.getWorkingDirectory(), executable, args);
+ } else {
+ messages = compileInProcess(args);
+ }
+
+ return messages;
+ }
+
+ public String[] createCommandLine(CompilerConfiguration config) throws CompilerException {
+ return buildCompilerArguments(config, getSourceFiles(config));
+ }
+
+ public String[] buildCompilerArguments(CompilerConfiguration config, String[] sourceFiles) {
+ List args = new ArrayList();
+
+ // ----------------------------------------------------------------------
+ // Set output
+ // ----------------------------------------------------------------------
+
+ File destinationDir = new File(config.getOutputLocation());
+
+ args.add("-d");
+
+ args.add(destinationDir.getAbsolutePath());
+
+ // ----------------------------------------------------------------------
+ // Set the class and source paths
+ // ----------------------------------------------------------------------
+
+ List classpathEntries = config.getClasspathEntries();
+ if (classpathEntries != null && !classpathEntries.isEmpty()) {
+ args.add("-classpath");
+
+ String cp = createClasspathArgument(classpathEntries);
+
+ args.add(cp);
+ }
+
+ List sourceLocations = config.getSourceLocations();
+ if (sourceLocations != null && !sourceLocations.isEmpty() && (sourceFiles.length == 0)) {
+ args.add("-sourcepath");
+
+ args.add(getPathString(sourceLocations));
+ }
+
+ for (int i = 0; i < sourceFiles.length; i++) {
+ args.add(sourceFiles[i]);
+ }
+
+ if (config.isOptimize()) {
+ args.add("-O");
+ }
+
+ if (config.isDebug()) {
+ args.add("-g");
+ }
+
+ if (config.isVerbose()) {
+ args.add("-verbose");
+ }
+
+ if (config.isShowDeprecation()) {
+ args.add("-deprecation");
+
+ // This is required to actually display the deprecation messages
+ config.setShowWarnings(true);
+ }
+
+ if (!StringUtils.isEmpty(config.getMaxmem())) {
+ args.add("-J-Xmx" + config.getMaxmem());
+ }
+
+ if (!StringUtils.isEmpty(config.getMeminitial())) {
+ args.add("-J-Xms" + config.getMeminitial());
+ }
+
+ if (!config.isShowWarnings()) {
+ args.add("-nowarn");
+ }
+
+ // TODO: this could be much improved
+ if (StringUtils.isEmpty(config.getTargetVersion())) {
+ // Required, or it defaults to the target of your JDK (eg 1.5)
+ args.add("-target");
+ args.add("1.1");
+ } else {
+ args.add("-target");
+ args.add(config.getTargetVersion());
+ }
+
+ if (!suppressSource(config) && StringUtils.isEmpty(config.getSourceVersion())) {
+ // If omitted, later JDKs complain about a 1.1 target
+ args.add("-source");
+ args.add("1.3");
+ } else if (!suppressSource(config)) {
+ args.add("-source");
+ args.add(config.getSourceVersion());
+ }
+
+ if (!suppressEncoding(config) && !StringUtils.isEmpty(config.getSourceEncoding())) {
+ args.add("-encoding");
+ args.add(config.getSourceEncoding());
+ }
+
+ for (Iterator it = config.getCustomCompilerArguments().entrySet().iterator(); it.hasNext();) {
+ Map.Entry entry = (Map.Entry) it.next();
+
+ String key = (String) entry.getKey();
+
+ if (StringUtils.isEmpty(key) || key.startsWith("@")) {
+ continue;
+ }
+
+ args.add(key);
+
+ String value = (String) entry.getValue();
+
+ if (StringUtils.isEmpty(value)) {
+ continue;
+ }
+
+ args.add(value);
+ }
+
+ return (String[]) args.toArray(new String[args.size()]);
+ }
+
+ private static boolean suppressSource(CompilerConfiguration config) {
+ return "1.3".equals(config.getCompilerVersion());
+ }
+
+ private static boolean suppressEncoding(CompilerConfiguration config) {
+ return "1.3".equals(config.getCompilerVersion());
+ }
+
+ /**
+ * Compile the java sources in a external process, calling an external executable, like javac.
+ *
+ * @param workingDirectory
+ * base directory where the process will be launched
+ * @param executable
+ * name of the executable to launch
+ * @param args
+ * arguments for the executable launched
+ * @return List of CompilerError objects with the errors encountered.
+ * @throws CompilerException
+ */
+ List compileOutOfProcess(File workingDirectory, String executable, String[] args) throws CompilerException {
+ if (true /* fork is not supported */) {
+ throw new UnsupportedOperationException("compileoutOfProcess not supported");
+ }
+
+ Commandline cli = new Commandline();
+
+ cli.setWorkingDirectory(workingDirectory.getAbsolutePath());
+
+ cli.setExecutable(executable);
+
+ cli.addArguments(args);
+
+ CommandLineUtils.StringStreamConsumer out = new CommandLineUtils.StringStreamConsumer();
+
+ CommandLineUtils.StringStreamConsumer err = new CommandLineUtils.StringStreamConsumer();
+
+ int returnCode;
+
+ List messages;