- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中aQute.lib.zip.ZipUtil.setModifiedTime()
方法的一些代码示例,展示了ZipUtil.setModifiedTime()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipUtil.setModifiedTime()
方法的具体详情如下:
包路径:aQute.lib.zip.ZipUtil
类名称:ZipUtil
方法名:setModifiedTime
暂无
代码示例来源:origin: biz.aQute.bnd/bndlib
private void doManifest(Set<String> done, ZipOutputStream jout) throws Exception {
check();
if (nomanifest)
return;
JarEntry ze = new JarEntry(manifestName);
ZipUtil.setModifiedTime(ze,lastModified);
jout.putNextEntry(ze);
writeManifest(jout);
jout.closeEntry();
done.add(ze.getName());
}
代码示例来源:origin: biz.aQute.bnd/bnd
private void doManifest(Set<String> done, ZipOutputStream jout) throws Exception {
check();
if (nomanifest)
return;
JarEntry ze = new JarEntry(manifestName);
ZipUtil.setModifiedTime(ze,lastModified);
jout.putNextEntry(ze);
writeManifest(jout);
jout.closeEntry();
done.add(ze.getName());
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
void createDirectories(Set<String> directories, ZipOutputStream zip, String name) throws IOException {
int index = name.lastIndexOf('/');
if (index > 0) {
String path = name.substring(0, index);
if (directories.contains(path))
return;
createDirectories(directories, zip, path);
ZipEntry ze = new ZipEntry(path + '/');
if (isReproducible()) {
ze.setTime(ZIP_ENTRY_CONSTANT_TIME);
} else {
ZipUtil.setModifiedTime(ze, lastModified);
}
if (compression == Compression.STORE) {
ze.setCrc(0L);
ze.setSize(0);
ze.setCompressedSize(0);
}
zip.putNextEntry(ze);
zip.closeEntry();
directories.add(path);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
void createDirectories(Set<String> directories, ZipOutputStream zip, String name) throws IOException {
int index = name.lastIndexOf('/');
if (index > 0) {
String path = name.substring(0, index);
if (directories.contains(path))
return;
createDirectories(directories, zip, path);
ZipEntry ze = new ZipEntry(path + '/');
if (isReproducible()) {
ze.setTime(ZIP_ENTRY_CONSTANT_TIME);
} else {
ZipUtil.setModifiedTime(ze, lastModified);
}
if (compression == Compression.STORE) {
ze.setCrc(0L);
ze.setSize(0);
ze.setCompressedSize(0);
}
zip.putNextEntry(ze);
zip.closeEntry();
directories.add(path);
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
private void writeResource(ZipOutputStream jout, Set<String> directories, String path, Resource resource)
throws Exception {
if (resource == null)
return;
try {
createDirectories(directories, jout, path);
if (path.endsWith(Constants.EMPTY_HEADER))
return;
ZipEntry ze = new ZipEntry(path);
ze.setMethod(ZipEntry.DEFLATED);
long lastModified = resource.lastModified();
if (lastModified == 0L) {
lastModified = System.currentTimeMillis();
}
ZipUtil.setModifiedTime(ze,lastModified);
if (resource.getExtra() != null)
ze.setExtra(resource.getExtra().getBytes("UTF-8"));
jout.putNextEntry(ze);
resource.write(jout);
jout.closeEntry();
}
catch (Exception e) {
throw new Exception("Problem writing resource " + path, e);
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
private void writeResource(ZipOutputStream jout, Set<String> directories, String path, Resource resource)
throws Exception {
if (resource == null)
return;
try {
createDirectories(directories, jout, path);
if (path.endsWith(Constants.EMPTY_HEADER))
return;
ZipEntry ze = new ZipEntry(path);
ze.setMethod(ZipEntry.DEFLATED);
long lastModified = resource.lastModified();
if (lastModified == 0L) {
lastModified = System.currentTimeMillis();
}
ZipUtil.setModifiedTime(ze,lastModified);
if (resource.getExtra() != null)
ze.setExtra(resource.getExtra().getBytes("UTF-8"));
jout.putNextEntry(ze);
resource.write(jout);
jout.closeEntry();
}
catch (Exception e) {
throw new Exception("Problem writing resource " + path, e);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
private void doManifest(ZipOutputStream jout, Set<String> directories, String manifestName) throws Exception {
check();
createDirectories(directories, jout, manifestName);
JarEntry ze = new JarEntry(manifestName);
if (isReproducible()) {
ze.setTime(ZIP_ENTRY_CONSTANT_TIME);
} else {
ZipUtil.setModifiedTime(ze, lastModified);
}
Resource r = new WriteResource() {
@Override
public void write(OutputStream out) throws Exception {
writeManifest(out);
}
@Override
public long lastModified() {
return 0; // a manifest should not change the date
}
};
putEntry(jout, ze, r);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private void writeResource(ZipOutputStream jout, Set<String> directories, String path, Resource resource)
throws Exception {
if (resource == null)
return;
try {
createDirectories(directories, jout, path);
if (path.endsWith(Constants.EMPTY_HEADER))
return;
ZipEntry ze = new ZipEntry(path);
ze.setMethod(ZipEntry.DEFLATED);
if (isReproducible()) {
ze.setTime(ZIP_ENTRY_CONSTANT_TIME);
} else {
long lastModified = resource.lastModified();
if (lastModified == 0L) {
lastModified = System.currentTimeMillis();
}
ZipUtil.setModifiedTime(ze, lastModified);
}
if (resource.getExtra() != null)
ze.setExtra(resource.getExtra()
.getBytes(UTF_8));
putEntry(jout, ze, resource);
} catch (Exception e) {
throw new Exception("Problem writing resource " + path, e);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
private void writeResource(ZipOutputStream jout, Set<String> directories, String path, Resource resource)
throws Exception {
if (resource == null)
return;
try {
createDirectories(directories, jout, path);
if (path.endsWith(Constants.EMPTY_HEADER))
return;
ZipEntry ze = new ZipEntry(path);
ze.setMethod(ZipEntry.DEFLATED);
if (isReproducible()) {
ze.setTime(ZIP_ENTRY_CONSTANT_TIME);
} else {
long lastModified = resource.lastModified();
if (lastModified == 0L) {
lastModified = System.currentTimeMillis();
}
ZipUtil.setModifiedTime(ze, lastModified);
}
if (resource.getExtra() != null)
ze.setExtra(resource.getExtra()
.getBytes(UTF_8));
putEntry(jout, ze, resource);
} catch (Exception e) {
throw new Exception("Problem writing resource " + path, e);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private void doManifest(ZipOutputStream jout, Set<String> directories, String manifestName) throws Exception {
check();
createDirectories(directories, jout, manifestName);
JarEntry ze = new JarEntry(manifestName);
if (isReproducible()) {
ze.setTime(ZIP_ENTRY_CONSTANT_TIME);
} else {
ZipUtil.setModifiedTime(ze, lastModified);
}
Resource r = new WriteResource() {
@Override
public void write(OutputStream out) throws Exception {
writeManifest(out);
}
@Override
public long lastModified() {
return 0; // a manifest should not change the date
}
};
putEntry(jout, ze, r);
}
本文整理了Java中aQute.lib.spring.XMLTypeProcessor类的一些代码示例,展示了XMLTypeProcessor类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中aQute.bnd.osgi.ZipResource类的一些代码示例,展示了ZipResource类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Ma
本文整理了Java中aQute.lib.zip.ZipUtil类的一些代码示例,展示了ZipUtil类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从
本文整理了Java中aQute.lib.osgi.ZipResource类的一些代码示例,展示了ZipResource类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Ma
本文整理了Java中aQute.bnd.indexer.analyzers.Yield类的一些代码示例,展示了Yield类的具体用法。这些代码示例主要来源于Github/Stackoverflow/M
本文整理了Java中aQute.lib.spring.XMLTypeProcessor.getTypes()方法的一些代码示例,展示了XMLTypeProcessor.getTypes()的具体用法。
本文整理了Java中aQute.bnd.osgi.ZipResource.build()方法的一些代码示例,展示了ZipResource.build()的具体用法。这些代码示例主要来源于Github/
本文整理了Java中aQute.bnd.osgi.ZipResource.()方法的一些代码示例,展示了ZipResource.()的具体用法。这些代码示例主要来源于Github/Stackoverf
本文整理了Java中aQute.lib.zip.ZipUtil.setModifiedTime()方法的一些代码示例,展示了ZipUtil.setModifiedTime()的具体用法。这些代码示例主
本文整理了Java中aQute.lib.zip.ZipUtil.getModifiedTime()方法的一些代码示例,展示了ZipUtil.getModifiedTime()的具体用法。这些代码示例主
本文整理了Java中aQute.lib.osgi.ZipResource.build()方法的一些代码示例,展示了ZipResource.build()的具体用法。这些代码示例主要来源于Github/
本文整理了Java中aQute.lib.osgi.ZipResource.()方法的一些代码示例,展示了ZipResource.()的具体用法。这些代码示例主要来源于Github/Stackoverf
本文整理了Java中aQute.bnd.indexer.analyzers.Yield.yield()方法的一些代码示例,展示了Yield.yield()的具体用法。这些代码示例主要来源于Github
删除 .m2/存储库中的所有插件后,为了解决我遇到的错误,我无法运行我的应用程序。我收到这个错误 Scanning for projects... [INFO]
我是一名优秀的程序员,十分优秀!