本文整理汇总了Java中org.gudy.azureus2.core3.util.SystemProperties.getApplicationPath方法的典型用法代码示例。如果您正苦于以下问题:Java SystemProperties.getApplicationPath方法的具体用法?Java SystemProperties.getApplicationPath怎么用?Java SystemProperties.getApplicationPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.gudy.azureus2.core3.util.SystemProperties
的用法示例。
在下文中一共展示了SystemProperties.getApplicationPath方法的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: getUserDataDirectory
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
public String
getUserDataDirectory()
throws PlatformManagerException
{
return( SystemProperties.getApplicationPath());
}
示例3: getAzureusProgramDir
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
public String
getAzureusProgramDir()
{
String res = SystemProperties.getApplicationPath();
if ( res.endsWith(File.separator )){
res = res.substring(0,res.length()-1);
}
return( res );
}
示例4: getInstallDir
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
public String
getInstallDir()
{
String str = SystemProperties.getApplicationPath();
if ( str.endsWith(File.separator)){
str = str.substring(0,str.length()-1);
}
return( str );
}
示例5: getBundlePath
import org.gudy.azureus2.core3.util.SystemProperties; //导入方法依赖的package包/类
private String
getBundlePath()
{
return( SystemProperties.getApplicationPath() + SystemProperties.getApplicationName() + ".app" );
}