本文整理汇总了Java中org.gudy.azureus2.core3.util.SystemProperties.getApplicationName方法的典型用法代码示例。如果您正苦于以下问题:Java SystemProperties.getApplicationName方法的具体用法?Java SystemProperties.getApplicationName怎么用?Java SystemProperties.getApplicationName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.gudy.azureus2.core3.util.SystemProperties
的用法示例。
在下文中一共展示了SystemProperties.getApplicationName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPList
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
protected PListEditor
getPList()
throws IOException
{
String plist = SystemProperties.getApplicationPath() +
SystemProperties.getApplicationName() + ".app/Contents/Info.plist";
File plist_file = new File( plist );
// since 4800 the plist is read-only (as we sign it to play niceley with OSX and
// updating it breaks the sig)
if ( !plist_file.canWrite()){
return( null );
}
PListEditor editor = new PListEditor( plist );
return( editor );
}
示例2: getApplicationName
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
public String
getApplicationName()
{
return( SystemProperties.getApplicationName());
}
示例3: getHeader
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
protected static String
getHeader()
{
return( SystemProperties.getApplicationName() + " Single Instance Handler" );
}
示例4: getBundlePath
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
private String
getBundlePath()
{
return( SystemProperties.getApplicationPath() + SystemProperties.getApplicationName() + ".app" );
}
示例5: patchAzureus2
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
public static void
patchAzureus2(
UpdateCheckInstance instance,
InputStream pis,
String resource_tag,
LoggerChannel log )
throws Exception
{
String resource_name = "Azureus2_" + resource_tag + ".jar";
UpdateInstaller installer = instance.createInstaller();
File tmp = AETemporaryFileHandler.createTempFile();
OutputStream os = new FileOutputStream( tmp );
String az2_jar;
if( Constants.isOSX ){
az2_jar = installer.getInstallDir() + "/" + SystemProperties.getApplicationName() + ".app/Contents/Resources/Java/";
}else{
az2_jar = installer.getInstallDir() + File.separator;
}
az2_jar += "Azureus2.jar";
InputStream is = new FileInputStream( az2_jar );
new UpdateJarPatcher( is, pis, os, log );
is.close();
pis.close();
os.close();
installer.addResource( resource_name,
new FileInputStream( tmp ));
tmp.delete();
installer.addMoveAction( resource_name, az2_jar );
}