本文整理了Java中org.lilyproject.util.Version
类的一些代码示例,展示了Version
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version
类的具体详情如下:
包路径:org.lilyproject.util.Version
类名称:Version
暂无
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", "lily-repository-admin-cli");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", "lily-clientmetrics");
}
代码示例来源:origin: NGDATA/lilyproject
public LilyRuntimeProjectClasspath(Log log, ArtifactFilter filter, ArtifactFactory artifactFactory,
ArtifactResolver resolver, ArtifactRepository localRepository) {
this.filter = filter;
this.artifactFactory = artifactFactory;
this.resolver = resolver;
this.localRepository = localRepository;
this.log = log;
this.lilyVersion = Version.readVersion("org.lilyproject", "lily-runtime-plugin");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", "lily-hadoop-test-fw");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", "lily-repository-admin-cli");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return org.lilyproject.util.Version.readVersion("org.lilyproject", "lily-doc-tools");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", "lily-import");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", "lily-print-host");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", "lily-generate-split-keys");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", "lily-record-row-visualizer");
}
代码示例来源:origin: NGDATA/lilyproject
public static String getVersion() {
return Version.readVersion("org.lilyproject", "lily-runtime");
}
代码示例来源:origin: NGDATA/lilyproject
@Override
protected String getVersion() {
return Version.readVersion("org.lilyproject", getCmdName());
}
代码示例来源:origin: NGDATA/lilyproject
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
LilyRuntimeProjectClasspath cp = new LilyRuntimeProjectClasspath(getLog(), null,
artifactFactory, resolver, localRepository);
String lilyVersion = Version.readVersion("org.lilyproject", "lily-runtime-plugin");
Artifact runtimeLauncherArtifact = artifactFactory.createArtifact("org.lilyproject", "lily-runtime-launcher",
lilyVersion, "runtime", "jar");
try {
resolver.resolve(runtimeLauncherArtifact, remoteRepositories, localRepository);
} catch (Exception e) {
throw new MojoExecutionException("Error resolving artifact: " + runtimeLauncherArtifact, e);
}
Set<Artifact> artifacts = cp.getClassPathArtifacts(runtimeLauncherArtifact,
"org/lilyproject/runtime/launcher/classloader.xml", remoteRepositories);
artifacts.add(runtimeLauncherArtifact);
}
}
代码示例来源:origin: NGDATA/lilyproject
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
LilyRuntimeProjectClasspath cp = new LilyRuntimeProjectClasspath(getLog(), null,
artifactFactory, resolver, localRepository);
String lilyVersion = Version.readVersion("org.lilyproject", "lily-runtime-plugin");
Artifact runtimeLauncherArtifact = artifactFactory.createArtifact("org.lilyproject", "lily-runtime-launcher",
lilyVersion, "runtime", "jar");
try {
resolver.resolve(runtimeLauncherArtifact, remoteRepositories, localRepository);
} catch (Exception e) {
throw new MojoExecutionException("Error resolving artifact: " + runtimeLauncherArtifact, e);
}
Set<Artifact> artifacts = cp.getClassPathArtifacts(runtimeLauncherArtifact,
"org/lilyproject/runtime/launcher/classloader.xml", remoteRepositories);
artifacts.add(runtimeLauncherArtifact);
RepositoryWriter.write(artifacts, targetDirectory);
}
}
内容来源于网络,如有侵权,请联系作者删除!