Package org.codehaus.enunciate.main

Examples of org.codehaus.enunciate.main.FileArtifact


    else {
      info("Skipping the build of the expanded war as everything appears up-to-date...");
    }

    //export the expanded application directory.
    enunciate.addArtifact(new FileArtifact(getName(), "app.dir", buildDir));
  }
View Full Code Here


      }
      else {
        info("Skipping war file creation as everything appears up-to-date...");
      }

      enunciate.addArtifact(new FileArtifact(getName(), "war.file", warFile));
    }
    else {
      debug("Packaging has been disabled.  No packaging will be performed.");
    }
  }
View Full Code Here

    else {
      info("Skipping build of documentation as everything appears up-to-date...");
    }

    //export the generated documentation as an artifact.
    getEnunciate().addArtifact(new FileArtifact(getName(), "docs", getDocsBuildDir()));

    //add the webapp fragment...
    BaseWebAppFragment webAppFragment = new BaseWebAppFragment(getName());
    webAppFragment.setBaseDir(getBuildDir());
    TreeMap<String, String> mimeMappings = new TreeMap<String, String>();
View Full Code Here

    @Override
    protected void doClose() throws EnunciateException, IOException {
      super.doClose();

      FileArtifact artifact = (FileArtifact) findArtifact("docs");
      if (artifact != null) {
        getReportOutputDirectory().mkdirs();
        artifact.exportTo(getReportOutputDirectory(), this);
      }
      else {
        warn("Unable to copy the Enunciate documentation: no documentation directory artifact found.");
      }
    }
View Full Code Here

        if (!upToDate && prettyPrint) {
          prettyPrint(wsdlFile);
        }
      }

      FileArtifact wsdlArtifact = new FileArtifact(getName(), wsdl.getId() + ".wsdl", wsdlFile);
      wsdlArtifact.setDescription("WSDL file for namespace " + wsdl.getTargetNamespace());
      getEnunciate().addArtifact(wsdlArtifact);
    }

    for (SchemaInfo schemaInfo : ns2schema.values()) {
      File schemaFile = (File) schemaInfo.getProperty("file");
      if (schemaFile == null) {
        String file = (String) schemaInfo.getProperty("filename");
        schemaFile = new File(artifactDir, file);
        schemaInfo.setProperty("file", schemaFile);

        if (!upToDate && prettyPrint) {
          prettyPrint(schemaFile);
        }

        if (!upToDate && validateSchemas) {
          //todo: write some logic to validate the schemas.
        }
      }

      FileArtifact schemaArtifact = new FileArtifact(getName(), schemaInfo.getId() + ".xsd", schemaFile);
      schemaArtifact.setDescription("Schema file for namespace " + schemaInfo.getNamespace());
      getEnunciate().addArtifact(schemaArtifact);
    }

    if (!isDisableWadl()) {
      File wadl = new File(artifactDir, "application.wadl");
      if (wadl.exists()) {
        FileArtifact wadlArtifact = new FileArtifact(getName(), "application.wadl", wadl);
        wadlArtifact.setDescription("WADL document");
        getEnunciate().addArtifact(wadlArtifact);
        prettyPrint(wadl);
        model.setWadlFile(wadl);
      }
    }
View Full Code Here

    }

    webAppFragment.setFilters(filters);
    getEnunciate().addWebAppFragment(webAppFragment);

    getEnunciate().addArtifact(new FileArtifact(getName(), "swagger", artifactDir));
  }
View Full Code Here

    }
    else {
      info("Skipping JAX-WS support generation as everything appears up-to-date...");
    }

    getEnunciate().addArtifact(new FileArtifact(getName(), "jaxws.support.src.dir", genDir));
    getEnunciate().addAdditionalSourceRoot(genDir);
  }
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.main.FileArtifact

Copyright © 2018 www.massapicom. 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.