Examples of ModuleIdentifier


Examples of com.dgwave.car.common.ModuleIdentifier

     * @throws MojoExecutionException In case the dependency version could not be determined
     */
    String calculateDependencies(final MavenProject proj) throws MojoExecutionException {
       
        Module module = new Module(
            new ModuleIdentifier(CeylonUtil.ceylonModuleBaseName(proj.getGroupId(), proj.getArtifactId()),
                proj.getVersion(), false, false));
       
        for (Dependency dep : proj.getDependencies()) {
            if (dep.getVersion() != null && !"".equals(dep.getVersion())) {
                module.addDependency(new ModuleIdentifier(
                    CeylonUtil.ceylonModuleBaseName(dep.getGroupId(), dep.getArtifactId()), dep.getVersion(),
                        dep.isOptional(), false)
                );
            } else {
                throw new MojoExecutionException(
View Full Code Here

Examples of net.kuujo.vertigo.platform.ModuleIdentifier

      @Override
      public Collection<ModuleInfo> perform() {
        List<File> modDirs = locateModules();
        Collection<ModuleInfo> modInfo = new ArrayList<>();
        for (File modDir : modDirs) {
          ModuleIdentifier modID = new ModuleIdentifier(modDir.getName());
          File modJson = new File(modDir, MOD_JSON_FILE);
          try {
            modInfo.add(loadModuleInfo(modID, modJson));
          } catch (Exception e) {
            continue;
View Full Code Here

Examples of net.kuujo.vertigo.platform.ModuleIdentifier

  public PlatformManager getModuleInfo(final String moduleName, final Handler<AsyncResult<ModuleInfo>> resultHandler) {
    Args.checkNotNull(moduleName, "module name cannot be null");
    context.execute(new Action<ModuleInfo>() {
      @Override
      public ModuleInfo perform() {
        ModuleIdentifier modID = new ModuleIdentifier(moduleName);
        File modDir = locateModule(modID);
        if (modDir != null) {
          File modJson = new File(modDir, MOD_JSON_FILE);
          return loadModuleInfo(modID, modJson);
        } else {
View Full Code Here

Examples of net.kuujo.vertigo.platform.ModuleIdentifier

  public synchronized PlatformManager zipModule(final String moduleName, final Handler<AsyncResult<String>> doneHandler) {
    Args.checkNotNull(moduleName, "module name cannot be null");
    context.execute(new Action<String>() {
      @Override
      public String perform() {
        File file = zipModule(new ModuleIdentifier(moduleName));
        return file.getAbsolutePath();
      }
    }, doneHandler);
    return this;
  }
View Full Code Here

Examples of net.kuujo.vertigo.platform.ModuleIdentifier

  public PlatformManager uninstallModule(final String moduleName, final Handler<AsyncResult<Void>> doneHandler) {
    Args.checkNotNull(moduleName, "module name cannot be null");
    context.execute(new Action<Void>() {
      @Override
      public Void perform() {
        uninstallModule(new ModuleIdentifier(moduleName));
        return null;
      }
    }, doneHandler);
    return this;
  }
View Full Code Here

Examples of net.kuujo.vertigo.platform.ModuleIdentifier

    for (File file : files) {
      if (file.isDirectory()) {
        // Check to determine whether the directory is a valid module directory.
        boolean isValid = true;
        try {
          new ModuleIdentifier(file.getName());
        } catch (Exception e) {
          isValid = false;
        }

        // If the directory is a valid module name then check for a mod.json file.
View Full Code Here

Examples of net.kuujo.vertigo.platform.ModuleIdentifier

      }

      for (String moduleName : mods) {
        File internalModDir = new File(internalModsDir, moduleName);
        if (!internalModDir.exists()) {
          ModuleIdentifier childModID = new ModuleIdentifier(moduleName);
          File includeModDir = locateModule(childModID);
          if (includeModDir != null) {
            vertx.fileSystem().copySync(includeModDir.getAbsolutePath(), internalModDir.getAbsolutePath(), true);
            pullInDependencies(childModID, internalModDir);
          }
View Full Code Here

Examples of org.gradle.api.artifacts.ModuleIdentifier

    private SpecRuleAction<? super ComponentMetadataDetails> createAllSpecRuleAction(RuleAction<? super ComponentMetadataDetails> ruleAction) {
        return new SpecRuleAction<ComponentMetadataDetails>(ruleAction, Specs.<ComponentMetadataDetails>satisfyAll());
    }

    private SpecRuleAction<? super ComponentMetadataDetails> createSpecRuleActionFromId(Object id, RuleAction<? super ComponentMetadataDetails> ruleAction) {
        ModuleIdentifier moduleIdentifier;

        try {
            moduleIdentifier = moduleIdentifierNotationParser.parseNotation(id);
        } catch (UnsupportedNotationException e) {
            throw new InvalidUserCodeException(String.format(INVALID_SPEC_ERROR, id == null ? "null" : id.toString()), e);
View Full Code Here

Examples of org.jboss.modules.ModuleIdentifier

    @Override
    public synchronized void start(final StartContext context) throws StartException {
        final Handler handler;
        final ModuleLoader moduleLoader = Module.forClass(CustomHandlerService.class).getModuleLoader();
        final ModuleIdentifier id = ModuleIdentifier.create(moduleName);
        try {
            final Class<?> handlerClass = Class.forName(className, false, moduleLoader.loadModule(id).getClassLoader());
            if (Handler.class.isAssignableFrom(handlerClass)) {
                handler = (Handler) handlerClass.newInstance();
            } else {
View Full Code Here

Examples of org.jboss.modules.ModuleIdentifier

        // copy resource content
        moduleDir.mkdirs();
        File resFile = new File(moduleDir, symbolicName + "-" + version + ".jar");
        IOUtils.copyStream(content.getContent(), new FileOutputStream(resFile));

        ModuleIdentifier modid = ModuleIdentifier.create(symbolicName, version.toString());

        // generate module.xml
        File xmlFile = new File(moduleDir, "module.xml");
        Map<Requirement, Resource> mapping = context.getResourceMapping();
        String moduleXML = generateModuleXML(resFile, resource, modid, mapping);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.