org.apache.maven.model.Build.setDirectory()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(125)

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

Build.setDirectory介绍

暂无

代码示例

代码示例来源:origin: org.apache.maven/maven-project

public void setDirectory( String directory )
{
  build.setDirectory( directory );
}

代码示例来源:origin: org.apache.maven/maven-project

build.setDirectory( alignToBaseDirectory( build.getDirectory(), basedir ) );

代码示例来源:origin: org.apache.maven/maven-project

build.setDirectory( unalignFromBaseDirectory( build.getDirectory(), basedir ) );

代码示例来源:origin: apache/maven

build.setDirectory( alignToBaseDirectory( build.getDirectory(), basedir ) );

代码示例来源:origin: apache/maven

build.setDirectory( unalignFromBaseDirectory( build.getDirectory(), basedir ) );

代码示例来源:origin: apache/maven

build.setDirectory( alignToBaseDirectory( build.getDirectory(), basedir ) );

代码示例来源:origin: org.apache.maven/maven-project

childBuild.setDirectory( parentBuild.getDirectory() );

代码示例来源:origin: apache/maven

childBuild.setDirectory( parentBuild.getDirectory() );

代码示例来源:origin: apache/maven

build.setDirectory( interpolatedTrimmed( parser.nextText(), "directory" ) );

代码示例来源:origin: org.apache.maven/maven-project

debugMessages ) );
dynamicBuild.setDirectory( restoreString( dynamicBuild.getDirectory(),
                       originalInterpolatedBuild.getDirectory(),
                       changedBuild.getDirectory(),

代码示例来源:origin: apache/maven

build.setDirectory( interpolatedTrimmed( parser.nextText(), "directory" ) );

代码示例来源:origin: org.apache.maven/maven-project

modelBuild.setDirectory( profileBuild.getDirectory() );

代码示例来源:origin: takari/polyglot-maven

build.setDirectory( getTrimmedValue( value ) );

代码示例来源:origin: io.teecube.t3/t3-common

String directory = mavenProject.getBuild().getDirectory();
if (directory != null && CommonMojo.mavenPropertyPattern.matcher(directory).find()) {
  mavenProject.getBuild().setDirectory(defaultValue);

代码示例来源:origin: org.sonatype.plugins/munge-maven-plugin

@SuppressWarnings( "unchecked" )
public void execute()
  throws MojoExecutionException
{
  Munge.symbols.clear();
  for ( final String s : symbols.split( "," ) )
  {
    Munge.symbols.put( s, Boolean.TRUE );
  }
  final String mungedMainDirectory = mungedDirectory + File.separator + "main";
  final String mungedTestDirectory = mungedDirectory + File.separator + "test";
  munge( build.getSourceDirectory(), mungedMainDirectory, includes, excludes );
  munge( build.getTestSourceDirectory(), mungedTestDirectory, includes, excludes );
  if ( null != executedProject )
  {
    executedProject.getCompileSourceRoots().clear();
    executedProject.addCompileSourceRoot( mungedMainDirectory );
    executedProject.getTestCompileSourceRoots().clear();
    executedProject.addTestCompileSourceRoot( mungedTestDirectory );
    final Build executedBuild = executedProject.getBuild();
    executedBuild.setDirectory( mungedDirectory );
    executedBuild.setOutputDirectory( mungedDirectory + File.separator + "classes" );
    executedBuild.setTestOutputDirectory( mungedDirectory + File.separator + "test-classes" );
  }
}

代码示例来源:origin: net.sf.oqt/oqt-maven-plugin

@Before
public void setUp() throws Exception {
  project = new MavenProject();
  project.setBuild(new Build());
  project.getBuild().setDirectory((new File("./junit")).getAbsolutePath());
}

代码示例来源:origin: sundrio/sundrio

toBuild.getModel().getBuild().setDirectory(bomDir.getAbsolutePath());
toBuild.getModel().getBuild().setOutputDirectory(new File(bomDir, "target").getAbsolutePath());
for (String key : config.getProperties().stringPropertyNames()) {

代码示例来源:origin: net.sf.oqt/oqt-maven-plugin

@Before
public void setUp() throws Exception {
  outputDir = new File("target/test");
  if (!outputDir.exists()) {
    outputDir.mkdir();
  }
  project = new MavenProject();
  project.setLogger(new ConsoleLogger(4, "junit"));
  project.setBuild(new Build());
  project.getBuild().setDirectory(outputDir.getAbsolutePath());
  System.out.println("OutputDir = " + project.getBuild().getDirectory());
  mojo = new QueryTranslatorTranslateMojo();
  mojo.setProject(project);
  mojo.setLog(new DefaultLog(new ConsoleLogger(0, "junit")));
  mojo.setDictionary(TestInfo.DICTIONARY_DERBY);
  mojo.setDriverName(TestInfo.DRIVER_DERBY);
  mojo.setUrl(TestInfo.URL_DERBY);
  mojo.getPackageNames().add(TableA.class.getPackage().getName());
}

代码示例来源:origin: org.apache.maven/maven-model-builder

build.setDirectory( alignToBaseDirectory( build.getDirectory(), basedir ) );

代码示例来源:origin: com.github.htfv.maven.plugins/build-configurator-core

build.setDirectory(
    interpolateString(build.getDirectory()));
build.setFinalName(

相关文章