PageRenderTime 62ms CodeModel.GetById 35ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/forge/clojure/src/main/java/org/switchyard/tools/forge/clojure/ClojureFacet.java

https://github.com/Salaboy/components
Java | 55 lines | 22 code | 7 blank | 26 comment | 0 complexity | 96a0aaae7f3358de141a2152d7cbc7ec MD5 | raw file
  1. /*
  2. * JBoss, Home of Professional Open Source
  3. * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
  4. * as indicated by the @author tags. All rights reserved.
  5. * See the copyright.txt in the distribution for a
  6. * full listing of individual contributors.
  7. *
  8. * This copyrighted material is made available to anyone wishing to use,
  9. * modify, copy, or redistribute it subject to the terms and conditions
  10. * of the GNU Lesser General Public License, v. 2.1.
  11. * This program is distributed in the hope that it will be useful, but WITHOUT A
  12. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  13. * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
  14. * You should have received a copy of the GNU Lesser General Public License,
  15. * v.2.1 along with this distribution; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  17. * MA 02110-1301, USA.
  18. */
  19. package org.switchyard.tools.forge.clojure;
  20. import org.jboss.forge.project.facets.DependencyFacet;
  21. import org.jboss.forge.project.facets.PackagingFacet;
  22. import org.jboss.forge.project.packaging.PackagingType;
  23. import org.jboss.forge.shell.plugins.Alias;
  24. import org.jboss.forge.shell.plugins.RequiresFacet;
  25. import org.jboss.forge.shell.plugins.RequiresPackagingType;
  26. import org.switchyard.tools.forge.AbstractFacet;
  27. /**
  28. * Forge facet for Clojure implementation.
  29. *
  30. * @author Daniel Bevenius
  31. */
  32. @Alias("switchyard.clojure")
  33. @RequiresFacet({ DependencyFacet.class, PackagingFacet.class })
  34. @RequiresPackagingType(PackagingType.JAR)
  35. public class ClojureFacet extends AbstractFacet {
  36. private static final String CLOJURE_MAVEN_ID = "org.switchyard.components:switchyard-component-clojure";
  37. /**
  38. * Create a new Camel Facet.
  39. */
  40. public ClojureFacet() {
  41. super(CLOJURE_MAVEN_ID);
  42. }
  43. @Override
  44. public boolean install() {
  45. installDependencies();
  46. return true;
  47. }
  48. }