本文整理了Java中aQute.bnd.osgi.Builder.getPropertiesFile()
方法的一些代码示例,展示了Builder.getPropertiesFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.getPropertiesFile()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Builder
类名称:Builder
方法名:getPropertiesFile
暂无
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Return the builder associated with the give bnd file or null. The bnd.bnd
* file can contain -sub option. This option allows specifying files in the
* same directory that should drive the generation of multiple deliverables.
* This method figures out if the bndFile is actually one of the bnd files
* of a deliverable.
*
* @param bndFile
* A file pointing to a bnd file.
* @return null or the builder for a sub file.
* @throws Exception
*/
public Builder getSubBuilder(File bndFile) throws Exception {
bndFile = bndFile.getCanonicalFile();
// Verify that we are inside the project.
File base = getBase().getCanonicalFile();
if (!bndFile.getAbsolutePath().startsWith(base.getAbsolutePath()))
return null;
Collection< ? extends Builder> builders = getSubBuilders();
for (Builder sub : builders) {
File propertiesFile = sub.getPropertiesFile();
if (propertiesFile != null) {
if (propertiesFile.getCanonicalFile().equals(bndFile)) {
// Found it!
return sub;
}
}
}
return null;
}
代码示例来源:origin: biz.aQute/bndlib
/**
* Return the builder associated with the give bnd file or null. The bnd.bnd
* file can contain -sub option. This option allows specifying files in the
* same directory that should drive the generation of multiple deliverables.
* This method figures out if the bndFile is actually one of the bnd files
* of a deliverable.
*
* @param bndFile
* A file pointing to a bnd file.
* @return null or the builder for a sub file.
* @throws Exception
*/
public Builder getSubBuilder(File bndFile) throws Exception {
bndFile = bndFile.getCanonicalFile();
// Verify that we are inside the project.
File base = getBase().getCanonicalFile();
if (!bndFile.getAbsolutePath().startsWith(base.getAbsolutePath()))
return null;
Collection< ? extends Builder> builders = getSubBuilders();
for (Builder sub : builders) {
File propertiesFile = sub.getPropertiesFile();
if (propertiesFile != null) {
if (propertiesFile.getCanonicalFile().equals(bndFile)) {
// Found it!
return sub;
}
}
}
return null;
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Return the builder associated with the give bnd file or null. The bnd.bnd
* file can contain -sub option. This option allows specifying files in the
* same directory that should drive the generation of multiple deliverables.
* This method figures out if the bndFile is actually one of the bnd files
* of a deliverable.
*
* @param bndFile
* A file pointing to a bnd file.
* @return null or the builder for a sub file.
* @throws Exception
*/
public Builder getSubBuilder(File bndFile) throws Exception {
bndFile = bndFile.getCanonicalFile();
// Verify that we are inside the project.
File base = getBase().getCanonicalFile();
if (!bndFile.getAbsolutePath().startsWith(base.getAbsolutePath()))
return null;
Collection< ? extends Builder> builders = getSubBuilders();
for (Builder sub : builders) {
File propertiesFile = sub.getPropertiesFile();
if (propertiesFile != null) {
if (propertiesFile.getCanonicalFile().equals(bndFile)) {
// Found it!
return sub;
}
}
}
return null;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
try {
for (Builder b : pb.getSubBuilders()) {
File propertiesFile = b.getPropertiesFile();
if (propertiesFile != null) {
if (propertiesFile.equals(bndFile)) {
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
try {
for (Builder b : pb.getSubBuilders()) {
File propertiesFile = b.getPropertiesFile();
if (propertiesFile != null) {
if (propertiesFile.equals(bndFile)) {
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
found |= replace(sub.getPropertiesFile(), pattern, replace);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
found |= replace(sub.getPropertiesFile(), pattern, replace);
代码示例来源:origin: biz.aQute.bnd/bnd
getInfo(b, b.getPropertiesFile().getName());
if (isOk()) {
b.save(outputFile, options.force());
代码示例来源:origin: biz.aQute/bndlib
found |= replace(sub.getPropertiesFile(), pattern, replace);
代码示例来源:origin: biz.aQute.bnd/bndlib
found |= replace(sub.getPropertiesFile(), pattern, replace);
代码示例来源:origin: biz.aQute.bnd/bnd
found |= replace(sub.getPropertiesFile(), pattern, replace);
代码示例来源:origin: biz.aQute.bnd/bnd
public void build(String dest, boolean force, String path) throws IOException, Exception {
Builder b = new Builder();
try {
File f = getFile(path);
if (!f.isFile()) {
error("No such file %s", f);
return;
}
b.setTrace(isTrace());
b.setPedantic(isPedantic());
b.setProperties(f);
List<Builder> subs = b.getSubBuilders();
for (Builder bb : subs) {
trace("building %s", bb.getPropertiesFile());
bb.build();
File out = bb.getOutputFile(dest);
getInfo(bb, bb.getBsn() + ": ");
if (isOk()) {
bb.save(out, force);
}
getInfo(bb, bb.getBsn() + ": "); // pickup any save errors
if (!isOk()) {
out.delete();
}
}
}
finally {
b.close();
}
}
内容来源于网络,如有侵权,请联系作者删除!