Drupal получить адрес электронной почты на сайте?

Я пробовал предлагаемое решение, и косая черта в имени файла не работала для меня, например: ... (). getResourceAsStream ("/ my.properties"); null был возвращен

Удаление слэша работало: .... getResourceAsStream ("my.properties");

Вот от doc API: перед делегированием из данного имени ресурса создается имя абсолютного ресурса с использованием этого алгоритма:

If the name begins with a '/' ('\u002f'), then the absolute name of the resource is the portion of the name following the '/'.
Otherwise, the absolute name is of the following form:

    modified_package_name/name 

Where the modified_package_name is the package name of this object with '/' substituted for '.' ('\u002e'). 
23
задан Finbarr 9 August 2010 в 18:33
поделиться