Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Created projects

  • Loading branch information...
commit 0e034b8fb249fa848e12bf186e2cec27f93f0dfb 1 parent 5830af4
@skyluc skyluc authored
Showing with 1,197 additions and 3 deletions.
  1. +2 −0  .gitignore
  2. +28 −3 README.md
  3. +17 −0 org.scala.tools.eclipse.search.feature/.project
  4. +1 −0  org.scala.tools.eclipse.search.feature/build.properties
  5. +237 −0 org.scala.tools.eclipse.search.feature/feature.xml
  6. +12 −0 org.scala.tools.eclipse.search.feature/pom.xml
  7. +17 −0 org.scala.tools.eclipse.search.source.feature/.project
  8. +2 −0  org.scala.tools.eclipse.search.source.feature/build.properties
  9. +232 −0 org.scala.tools.eclipse.search.source.feature/feature.xml
  10. +11 −0 org.scala.tools.eclipse.search.source.feature/pom.xml
  11. +8 −0 org.scala.tools.eclipse.search.tests/.classpath
  12. +18 −0 org.scala.tools.eclipse.search.tests/.project
  13. +15 −0 org.scala.tools.eclipse.search.tests/META-INF/MANIFEST.MF
  14. +5 −0 org.scala.tools.eclipse.search.tests/build.properties
  15. +25 −0 org.scala.tools.eclipse.search.tests/pom.xml
  16. +17 −0 org.scala.tools.eclipse.search.tests/src/org/scala/tools/eclipse/search/SomeInterestingCodeTest.scala
  17. +1 −0  org.scala.tools.eclipse.search.tests/test-workspace/.gitignore
  18. +7 −0 org.scala.tools.eclipse.search.tests/test-workspace/aProject/.classpath
  19. +18 −0 org.scala.tools.eclipse.search.tests/test-workspace/aProject/.project
  20. +9 −0 org.scala.tools.eclipse.search.tests/test-workspace/aProject/src/org/example/ScalaClass.scala
  21. +17 −0 org.scala.tools.eclipse.search.update-site/.project
  22. +12 −0 org.scala.tools.eclipse.search.update-site/pom.xml
  23. +11 −0 org.scala.tools.eclipse.search.update-site/site.xml
  24. +8 −0 org.scala.tools.eclipse.search/.classpath
  25. +26 −0 org.scala.tools.eclipse.search/.project
  26. +32 −0 org.scala.tools.eclipse.search/META-INF/MANIFEST.MF
  27. +7 −0 org.scala.tools.eclipse.search/build.properties
  28. BIN  org.scala.tools.eclipse.search/icons/sample.gif
  29. 0  org.scala.tools.eclipse.search/plugin.properties
  30. +28 −0 org.scala.tools.eclipse.search/plugin.xml
  31. +13 −0 org.scala.tools.eclipse.search/pom.xml
  32. +49 −0 org.scala.tools.eclipse.search/src/org/scala/tools/eclipse/search/SampleAction.scala
  33. +11 −0 org.scala.tools.eclipse.search/src/org/scala/tools/eclipse/search/SomeInterestingCode.scala
  34. +301 −0 pom.xml
View
2  .gitignore
@@ -0,0 +1,2 @@
+.cache
+target/
View
31 README.md
@@ -1,4 +1,29 @@
-scala-search
-============
+scala-ide-plugin.g8
+===================
-Next Scala Search Engine
+Giger8 template for Eclipse plugins based on the Scala IDE.
+
+This template produces 5 Eclipse plugins:
+
+* the plugin itself
+* the `plugin.tests` fragment
+* an Eclipse feature
+* an Eclipse source feature
+* an Eclipse update-site
+
+The projects can readily be imported inside Eclipse. Additionally, you have maven `pom` files
+based on Tycho, enabling command line builds.
+
+## Note:
+
+By default, the maven build is performed against the latest stable versions (Scala IDE 2.0 and Scala 2.9).
+The available profiles are:
+
+* `scala-ide-2.0-scala-2.9` (default)
+* `scala-ide-2.0.x-scala-2.9`
+* `scala-ide-master-scala-2.9`
+* `scala-ide-master-scala-trunk`
+
+Run maven like this:
+
+ mvn -P scala-ide-master-scala-trunk clean install
View
17 org.scala.tools.eclipse.search.feature/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.scala.tools.eclipse.search.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
View
1  org.scala.tools.eclipse.search.feature/build.properties
@@ -0,0 +1 @@
+bin.includes = feature.xml
View
237 org.scala.tools.eclipse.search.feature/feature.xml
@@ -0,0 +1,237 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.scala.tools.eclipse.search.feature"
+ label="Scala Search"
+ version="0.1.0.qualifier"
+ provider-name="org.scala.tools.eclipse"
+ plugin="org.scala.tools.eclipse.search">
+
+ <description url="http://example.org">
+ Template of a Scala IDE plug-in
+ </description>
+
+ <copyright url="http://example.org/downloads/">
+ Copyright (C) 2012 _______TO_UPDATE_______.
+All rights reserved.
+ </copyright>
+
+ <license url="http://www.apache.org/licenses/LICENSE-2.0.html">
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ </license>
+
+ <url>
+ <update label="Scala Search update site" url="http://example.org/update/site"/>
+ </url>
+
+ <requires>
+ <import feature="org.scala-ide.sdt.feature"/>
+ </requires>
+
+ <plugin
+ id="org.scala.tools.eclipse.search"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
View
12 org.scala.tools.eclipse.search.feature/pom.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.scala.tools.eclipse</groupId>
+ <artifactId>org.scala.tools.eclipse.search.build</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.scala.tools.eclipse.search.feature</artifactId>
+ <packaging>eclipse-feature</packaging>
+</project>
View
17 org.scala.tools.eclipse.search.source.feature/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.scala.tools.eclipse.search.source.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
View
2  org.scala.tools.eclipse.search.source.feature/build.properties
@@ -0,0 +1,2 @@
+bin.includes = \
+feature.xml
View
232 org.scala.tools.eclipse.search.source.feature/feature.xml
@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.scala.tools.eclipse.search.source.feature"
+ label="Scala Search sources"
+ version="0.1.0.qualifier"
+ provider-name="example.org">
+
+ <description url="http://example.org/">
+ The sources of a template of a Scala IDE plug-in.
+ </description>
+
+ <copyright url="http://example.org/downloads/">
+ Copyright (C) 2012 ______TO_UPDATE_______.
+All rights reserved.
+ </copyright>
+
+ <license url="http://www.apache.org/licenses/LICENSE-2.0.html">
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ </license>
+
+ <url>
+ <update label="Scala Search update site" url="http://example.org/update/site"/>
+ </url>
+
+ <plugin
+ id="org.scala.tools.eclipse.search.source"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
View
11 org.scala.tools.eclipse.search.source.feature/pom.xml
@@ -0,0 +1,11 @@
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.scala.tools.eclipse</groupId>
+ <artifactId>org.scala.tools.eclipse.search.build</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.scala.tools.eclipse.search.source.feature</artifactId>
+ <packaging>eclipse-feature</packaging>
+</project>
View
8 org.scala.tools.eclipse.search.tests/.classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
View
18 org.scala.tools.eclipse.search.tests/.project
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.scala.tools.eclipse.search.tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.scala-ide.sdt.core.scalabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.scala-ide.sdt.core.scalanature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
15 org.scala.tools.eclipse.search.tests/META-INF/MANIFEST.MF
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Scala Search (Test)
+Bundle-SymbolicName: org.scala.tools.eclipse.search.tests
+Bundle-Version: 0.1.0.qualifier
+Bundle-Vendor: Scala IDE
+Fragment-Host: org.scala.tools.eclipse.search
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Require-Bundle: org.scala-ide.scala.library,
+ org.eclipse.equinox.weaving.aspectj,
+ org.junit4;bundle-version="4.5.0",
+ org.scala-ide.sdt.core
+Import-Package: scala.tools.eclipse.testsetup,
+ org.aspectj.weaver.loadtime.definition
+Bundle-ClassPath: .
View
5 org.scala.tools.eclipse.search.tests/build.properties
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = target/classes/
+bin.includes = META-INF/,\
+ test-workspace/,\
+ .
View
25 org.scala.tools.eclipse.search.tests/pom.xml
@@ -0,0 +1,25 @@
+<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.scala.tools.eclipse</groupId>
+ <artifactId>org.scala.tools.eclipse.search.build</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.scala.tools.eclipse.search.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <configuration>
+ <testSuite>${project.artifactId}</testSuite>
+ <testClass>org.scala.tools.eclipse.search.SomeInterestingCodeTest</testClass>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
+
View
17 ...ols.eclipse.search.tests/src/org/scala/tools/eclipse/search/SomeInterestingCodeTest.scala
@@ -0,0 +1,17 @@
+package org.scala.tools.eclipse.search
+
+import org.junit.Test
+import org.junit.Assert._
+import scala.tools.eclipse.testsetup.TestProjectSetup
+
+class SomeInterestingCodeTest extends TestProjectSetup("aProject", bundleName= "org.scala.tools.eclipse.search.tests") {
+
+ @Test
+ def numberOfTypes() {
+ val compilationUnit= scalaCompilationUnit("org/example/ScalaClass.scala")
+
+ assertEquals("Wrong number of types", 2, SomeInterestingCode.numberOfTypes(compilationUnit))
+
+ }
+
+}
View
1  org.scala.tools.eclipse.search.tests/test-workspace/.gitignore
@@ -0,0 +1 @@
+bin/
View
7 org.scala.tools.eclipse.search.tests/test-workspace/aProject/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
18 org.scala.tools.eclipse.search.tests/test-workspace/aProject/.project
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>aProject</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.scala-ide.sdt.core.scalabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.scala-ide.sdt.core.scalanature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
9 ...scala.tools.eclipse.search.tests/test-workspace/aProject/src/org/example/ScalaClass.scala
@@ -0,0 +1,9 @@
+package org.example
+
+class ScalaClass {
+
+}
+
+object ScalaClass {
+
+}
View
17 org.scala.tools.eclipse.search.update-site/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.scala.tools.eclipse.search.update-site</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.UpdateSiteBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.UpdateSiteNature</nature>
+ </natures>
+</projectDescription>
View
12 org.scala.tools.eclipse.search.update-site/pom.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.scala.tools.eclipse</groupId>
+ <artifactId>org.scala.tools.eclipse.search.build</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.scala.tools.eclipse.search.update-site</artifactId>
+ <packaging>eclipse-update-site</packaging>
+</project>
View
11 org.scala.tools.eclipse.search.update-site/site.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+ <feature url="features/org.scala.tools.eclipse.search.feature_0.0.0.jar" id="org.scala.tools.eclipse.search.feature" version="0.0.0">
+ <category name="org.scala.tools.eclipse.search"/>
+ </feature>
+ <feature url="features/org.scala.tools.eclipse.search.source.feature_0.0.0.jar" id="org.scala.tools.eclipse.search.source.feature" version="0.0.0">
+ <category name="org.scala.tools.eclipse.search-source"/>
+ </feature>
+ <category-def name="org.scala.tools.eclipse.search" label="Scala Search"/>
+ <category-def name="org.scala.tools.eclipse.search-source" label="Scala Search Source"/> -->
+</site>
View
8 org.scala.tools.eclipse.search/.classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
View
26 org.scala.tools.eclipse.search/.project
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.scala.tools.eclipse.search</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.scala-ide.sdt.core.scalabuilder</name>
+ <arguments></arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments></arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments></arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.scala-ide.sdt.core.scalanature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
32 org.scala.tools.eclipse.search/META-INF/MANIFEST.MF
@@ -0,0 +1,32 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Scala Search
+Bundle-SymbolicName: org.scala.tools.eclipse.search;singleton:=true
+Bundle-Version: 0.1.0.qualifier
+Bundle-Vendor: Scala IDE
+Bundle-ActivationPolicy: lazy
+Bundle-Localization: plugin
+Require-Bundle:
+ org.eclipse.core.runtime,
+ org.eclipse.debug.ui,
+ org.eclipse.help,
+ org.eclipse.jdt.core;bundle-version="[3.6.0,3.7.10)",
+ org.eclipse.jdt.debug.ui,
+ org.eclipse.jdt.junit,
+ org.eclipse.jdt.launching,
+ org.eclipse.jdt.ui,
+ org.eclipse.jface.text,
+ org.eclipse.ui,
+ org.eclipse.ui.console,
+ org.eclipse.ui.editors,
+ org.eclipse.ui.forms,
+ org.eclipse.ui.ide,
+ org.scala-ide.scala.library,
+ org.scala-ide.scala.compiler,
+ org.scala-ide.sdt.core;bundle-version="[2.0.0, 2.2.0)"
+Import-Package:
+ com.ibm.icu.text;apply-aspects:=false;org.eclipse.swt.graphics;apply-aspects:=false,
+ scala.tools.eclipse;apply-aspects:=false,
+ scala.tools.eclipse.contribution.weaving.jdt.ui.javaeditor.formatter;apply-aspects:=false
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ClassPath: .
View
7 org.scala.tools.eclipse.search/build.properties
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = target/classes/
+bin.includes = META-INF/,\
+ icons/,\
+ .,\
+ plugin.xml,\
+ plugin.properties
View
BIN  org.scala.tools.eclipse.search/icons/sample.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  org.scala.tools.eclipse.search/plugin.properties
No changes.
View
28 org.scala.tools.eclipse.search/plugin.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.actionSets">
+ <actionSet
+ id="example.actionSet"
+ label="Sample Action Set"
+ visible="true">
+ <menu
+ id="sampleMenu"
+ label="Sample &amp;Menu">
+ <separator
+ name="sampleGroup">
+ </separator>
+ </menu>
+ <action
+ class="org.scala.tools.eclipse.search.SampleAction"
+ icon="icons/sample.gif"
+ id="org.scala.tools.eclipse.search.sampleAction"
+ label="&amp;Sample Action"
+ menubarPath="sampleMenu/sampleGroup"
+ toolbarPath="sampleGroup"
+ tooltip="Hello, Scala world">
+ </action>
+ </actionSet>
+ </extension>
+</plugin>
View
13 org.scala.tools.eclipse.search/pom.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.scala.tools.eclipse</groupId>
+ <artifactId>org.scala.tools.eclipse.search.build</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.scala.tools.eclipse.search</artifactId>
+ <packaging>eclipse-plugin</packaging>
+
+</project>
View
49 org.scala.tools.eclipse.search/src/org/scala/tools/eclipse/search/SampleAction.scala
@@ -0,0 +1,49 @@
+package org.scala.tools.eclipse.search
+
+import org.eclipse.ui.IWorkbenchWindowActionDelegate
+import org.eclipse.jface.action.IAction
+import org.eclipse.jface.viewers.ISelection
+import org.eclipse.ui.IWorkbenchWindow
+import org.eclipse.ui.IFileEditorInput
+import scala.tools.eclipse.ScalaPlugin
+import org.eclipse.core.resources.IFile
+import org.eclipse.jface.dialogs.MessageDialog
+
+class SampleAction extends IWorkbenchWindowActionDelegate {
+
+ private var window: IWorkbenchWindow = _
+
+ def dispose() {
+ }
+
+ def init(w: IWorkbenchWindow) {
+ window = w
+ }
+
+ def run(action: IAction) {
+ val activeEditor = window.getActivePage.getActiveEditor
+ if (activeEditor != null) {
+ activeEditor.getEditorInput match {
+ case fei: IFileEditorInput =>
+ display(fei.getFile)
+ }
+ }
+ }
+
+ def selectionChanged(action: IAction, selection: ISelection) {
+ }
+
+ def display(file: IFile) {
+ MessageDialog.openInformation(
+ window.getShell(),
+ "TestPDE",
+ getProjectName(file)
+ .map("The Scala project for the current editor is %s".format(_))
+ .getOrElse("The current editor is not part of a Scala project"))
+ }
+
+ def getProjectName(file: IFile): Option[String] = {
+ ScalaPlugin.plugin.asScalaProject(file.getProject).map(_.underlying.getName)
+ }
+
+}
View
11 org.scala.tools.eclipse.search/src/org/scala/tools/eclipse/search/SomeInterestingCode.scala
@@ -0,0 +1,11 @@
+package org.scala.tools.eclipse.search
+
+import scala.tools.eclipse.javaelements.ScalaCompilationUnit
+
+object SomeInterestingCode {
+
+ def numberOfTypes(scalaCompilationUnit: ScalaCompilationUnit): Int = {
+ scalaCompilationUnit.getCompilationUnit.getAllTypes.length
+ }
+
+}
View
301 pom.xml
@@ -0,0 +1,301 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <prerequisites>
+ <maven>3.0</maven>
+ </prerequisites>
+ <groupId>org.scala.tools.eclipse</groupId>
+ <artifactId>org.scala.tools.eclipse.search.build</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <name>Scala Search</name>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>org.scala.tools.eclipse.search</module>
+ <module>org.scala.tools.eclipse.search.tests</module>
+ <module>org.scala.tools.eclipse.search.feature</module>
+ <module>org.scala.tools.eclipse.search.source.feature</module>
+ <module>org.scala.tools.eclipse.search.update-site</module>
+ </modules>
+
+ <properties>
+ <encoding>UTF-8</encoding>
+ <!-- p2 repositories location -->
+ <repo.eclipse.indigo>http://download.eclipse.org/releases/indigo/</repo.eclipse.indigo>
+ <repo.eclipse.juno>http://download.eclipse.org/releases/juno/</repo.eclipse.juno>
+ <repo.ajdt.indigo>http://download.eclipse.org/tools/ajdt/37/dev/update</repo.ajdt.indigo>
+ <repo.scala-ide.root>http://download.scala-ide.org</repo.scala-ide.root>
+
+ <!-- fixed versions -->
+ <tycho.version>0.15.0</tycho.version>
+ <scala.plugin.version>3.0.2</scala.plugin.version>
+
+ <!-- tycho test related -->
+ <tycho.test.OSspecific></tycho.test.OSspecific>
+ <!-- Partial workaround against JDT Weaving deadlocks. See #1000317 and the original ticket on https://issuetracker.springsource.com/browse/STS-1445 -->
+ <tycho.test.weaving>-XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dosgi.classloader.lock=classname</tycho.test.weaving>
+ <tycho.test.jvmArgs>-Xmx800m -XX:MaxPermSize=256m -Dsdtcore.headless ${tycho.test.weaving} ${tycho.test.OSspecific}</tycho.test.jvmArgs>
+
+ <!-- dependencies repos -->
+ <eclipse.codename>indigo</eclipse.codename>
+ <repo.eclipse>${repo.eclipse.indigo}</repo.eclipse>
+ <repo.ajdt>${repo.ajdt.indigo}</repo.ajdt>
+
+ <!-- some default values, can be overwritten by profiles -->
+ <scala.version>2.9.3-SNAPSHOT</scala.version>
+ <version.suffix>2_09</version.suffix>
+ <scala.version.short>2.9</scala.version.short>
+ <version.tag>local</version.tag>
+ <repo.scala-ide>${repo.scala-ide.root}/releases-29/stable/site</repo.scala-ide>
+ <junit.version>4.10</junit.version>
+ </properties>
+
+ <profiles>
+ <profile>
+ <!-- this is the default profile, using the stable builds-->
+ <id>scala-ide-2.0-scala-2.9</id>
+ </profile>
+ <profile>
+ <!-- 2.0.x Scala IDE with Scala 2.9 -->
+ <id>scala-ide-2.0.x-scala-2.9</id>
+ <properties>
+ <repo.scala-ide>${repo.scala-ide.root}/nightly-update-2-0-x-29x</repo.scala-ide>
+ </properties>
+ </profile>
+ <profile>
+ <!-- nightly Scala IDE with Scala 2.9 -->
+ <id>scala-ide-master-scala-2.9</id>
+ <properties>
+ <repo.scala-ide>${repo.scala-ide.root}/nightly-update-master-29x</repo.scala-ide>
+ </properties>
+ </profile>
+ <profile>
+ <!-- nightly Scala IDE with Scala trunk -->
+ <id>scala-ide-master-scala-trunk</id>
+ <properties>
+ <scala.version>2.10.0-SNAPSHOT</scala.version>
+ <version.suffix>2_10</version.suffix>
+ <scala.version.short>2.10</scala.version.short>
+ <repo.scala-ide>${repo.scala-ide.root}/nightly-update-master-trunk</repo.scala-ide>
+ </properties>
+ </profile>
+
+ <profile>
+ <!-- some configuration for tests run by tycho on Mac OS -->
+ <id>macOs</id>
+ <activation>
+ <os>
+ <family>mac</family>
+ </os>
+ </activation>
+ <properties>
+ <tycho.test.OSspecific>-Dosgi.ws=cocoa -XstartOnFirstThread</tycho.test.OSspecific>
+ </properties>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <configuration>
+ <dependencies>
+ <dependency>
+ <artifactId>org.eclipse.jdt.launching.macosx</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ </dependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
+ </profiles>
+
+ <!-- scm configuration is require to extract the github hash-->
+ <scm>
+ <connection>scm:git://github.com/skyluc/plugin.git</connection>
+ <url>https://github.com/skyluc/plugin</url>
+ </scm>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <repositories>
+ <repository>
+ <id>sonatype.release</id>
+ <name>Sonatype maven release repository</name>
+ <url>https://oss.sonatype.org/content/repositories/releases/</url>
+ <snapshots><enabled>false</enabled></snapshots>
+ </repository>
+ <repository>
+ <id>sonatype.snapshot</id>
+ <name>Sonatype maven snapshot repository</name>
+ <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+ <snapshots>
+ <updatePolicy>daily</updatePolicy>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>scala-ide</id>
+ <name>Scala IDE p2 repository</name>
+ <layout>p2</layout>
+ <url>${repo.scala-ide}</url>
+ <snapshots><enabled>false</enabled></snapshots>
+ </repository>
+ <repository>
+ <id>eclipse.${eclipse.codename}</id>
+ <name>Eclipse p2 repository</name>
+ <layout>p2</layout>
+ <url>${repo.eclipse}</url>
+ <snapshots><enabled>false</enabled></snapshots>
+ </repository>
+ <repository>
+ <id>ajdt.${eclipse.codename}</id>
+ <name>AJDT for Eclipse p2 repository</name>
+ <layout>p2</layout>
+ <url>${repo.ajdt}</url>
+ <snapshots><enabled>false</enabled></snapshots>
+ </repository>
+ </repositories>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <configuration>
+ <useUIHarness>false</useUIHarness>
+ <useUIThread>false</useUIThread>
+
+ <!-- Enable JDT weaving -->
+ <systemProperties combine.children="append">
+ <aj.weaving.verbose>true</aj.weaving.verbose>
+ <org.aspectj.weaver.showWeaveInfo>true</org.aspectj.weaver.showWeaveInfo>
+ <org.aspectj.osgi.verbose>true</org.aspectj.osgi.verbose>
+ </systemProperties>
+ <frameworkExtensions>
+ <frameworkExtension>
+ <groupId>p2.osgi.bundle</groupId>
+ <artifactId>org.eclipse.equinox.weaving.hook</artifactId>
+ <version>1.0.200.I20120427-0800</version>
+ </frameworkExtension>
+ </frameworkExtensions>
+ <bundleStartLevel>
+ <bundle>
+ <id>org.eclipse.equinox.weaving.aspectj</id>
+ <level>2</level>
+ <autoStart>true</autoStart>
+ </bundle>
+ </bundleStartLevel>
+ <argLine>${tycho.test.jvmArgs}</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <configuration>
+ <excludeResources>
+ <excludeResource>**/*.scala</excludeResource>
+ </excludeResources>
+ </configuration>
+ </plugin>
+ <plugin>
+ <!-- configuration of the scala compiler -->
+ <groupId>net.alchim31.maven</groupId>
+ <artifactId>scala-maven-plugin</artifactId>
+ <version>${scala.plugin.version}</version>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <jvmArgs>
+ <jvmArg>-Xms512m</jvmArg>
+ <jvmArg>-Xmx1024m</jvmArg>
+ </jvmArgs>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <executions>
+ <execution>
+ <id>attach-source</id>
+ <goals>
+ <goal>plugin-source</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- for setting a better qualifier -->
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-packaging-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <configuration>
+ <format>'${version.tag}-${version.suffix}-'yyyyMMddHHmm'-${buildNumber}'</format>
+ <archiveSite>true</archiveSite>
+ </configuration>
+ </plugin>
+ <!-- plugin used to extract the git hash-->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>create</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <doCheck>false</doCheck>
+ <doUpdate>false</doUpdate>
+ <shortRevisionLength>7</shortRevisionLength>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Please sign in to comment.
Something went wrong with that request. Please try again.