gpt4 book ai didi

org.codehaus.plexus.archiver.war.WarArchiver.addDirectory()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 22:11:05 26 4
gpt4 key购买 nike

本文整理了Java中org.codehaus.plexus.archiver.war.WarArchiver.addDirectory()方法的一些代码示例,展示了WarArchiver.addDirectory()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WarArchiver.addDirectory()方法的具体详情如下:
包路径:org.codehaus.plexus.archiver.war.WarArchiver
类名称:WarArchiver
方法名:addDirectory

WarArchiver.addDirectory介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.plexus/plexus-archiver

/**
 * files to add under WEB-INF;
 */
public void addWebinf( File directoryName, String[] includes, String[] excludes )
  throws ArchiverException
{
  addDirectory( directoryName, "WEB-INF/", includes, excludes );
}

代码示例来源:origin: org.codehaus.plexus/plexus-archiver

/**
 * add files under WEB-INF/classes
 */
public void addClasses( File directoryName, String[] includes, String[] excludes )
  throws ArchiverException
{
  addDirectory( directoryName, "WEB-INF/classes/", includes, excludes );
}

代码示例来源:origin: org.codehaus.plexus/plexus-archiver

/**
 * add files under WEB-INF/lib/
 */
public void addLibs( File directoryName, String[] includes, String[] excludes )
  throws ArchiverException
{
  addDirectory( directoryName, "WEB-INF/lib/", includes, excludes );
}

代码示例来源:origin: org.codehaus.plexus/plexus-archiver

/**
 * add a file under WEB-INF/lib/
 */
public void addLib( File fileName )
  throws ArchiverException
{
  addDirectory( fileName.getParentFile(), "WEB-INF/lib/",
         new String[]
         {
           fileName.getName()
         }, null );
}

代码示例来源:origin: org.codehaus.plexus/plexus-archiver

/**
 * add a file under WEB-INF/lib/
 */
public void addClass( File fileName )
  throws ArchiverException
{
  addDirectory( fileName.getParentFile(), "WEB-INF/classes/",
         new String[]
         {
           fileName.getName()
         }, null );
}

代码示例来源:origin: tbroyer/gwt-maven-plugin

@Override
 public void execute() throws MojoExecutionException, MojoFailureException {
  warArchiver.setExpectWebXml(false);

  File warFile = new File(outputDirectory, warName + ".war");

  MavenArchiver archiver = new MavenArchiver();
  archiver.setArchiver(warArchiver);
  archiver.setOutputFile(warFile);

  archive.setForced(forceCreation);

  try {
   File prepackagedApp = new File(outputDirectory, warName);
   if (prepackagedApp.exists()) {
    warArchiver.addDirectory(prepackagedApp);
   }

   archiver.createArchive(session, project, archive);
  } catch (Exception e) {
   throw new MojoExecutionException("Error packaging GWT application", e);
  }

  project.getArtifact().setFile(warFile);
 }
}

代码示例来源:origin: codehaus-cargo/cargo

warArchiver.addDirectory(assembleDir);
warArchiver.setIgnoreWebxml(false);

代码示例来源:origin: org.apache.maven.plugins/maven-war-plugin

warArchiver.addDirectory( getWebappDirectory(), getPackagingIncludes(), getPackagingExcludes() );

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com