Java Code Examples for org.netbeans.modules.php.api.util.FileUtils#findFileOnUsersPath()
The following examples show how to use
org.netbeans.modules.php.api.util.FileUtils#findFileOnUsersPath() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnalysisOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getMessDetectorPath() { String messDetectorPath = getPreferences().get(MESS_DETECTOR_PATH, null); if (messDetectorPath == null && !messDetectorSearched) { messDetectorSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(MessDetector.NAME, MessDetector.LONG_NAME); if (!scripts.isEmpty()) { messDetectorPath = scripts.get(0); setMessDetectorPath(messDetectorPath); } } return messDetectorPath; }
Example 2
Source File: TesterOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getTesterPath() { String path = getPreferences().get(TESTER_PATH, null); if (path == null && !testerSearched) { testerSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(Tester.TESTER_FILE_NAME); if (!scripts.isEmpty()) { path = scripts.get(0); setTesterPath(path); } } return path; }
Example 3
Source File: CodeceptionOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getCodeceptionPath() { String codeceptionPath = getPreferences().get(CODECEPTION_PATH, null); if (codeceptionPath == null && !codeceptionSearched) { List<String> scripts = FileUtils.findFileOnUsersPath(Codecept.SCRIPT_NAME, Codecept.SCRIPT_NAME_LONG, Codecept.SCRIPT_NAME_PHAR); if (!scripts.isEmpty()) { codeceptionPath = scripts.get(0); setCodeceptionPath(codeceptionPath); } } return codeceptionPath; }
Example 4
Source File: ComposerOptions.java From netbeans with Apache License 2.0 | 5 votes |
public String getComposerPath() { String composerPath = preferences.get(COMPOSER_PATH, null); if (composerPath == null && !composerSearched) { composerSearched = true; List<String> paths = FileUtils.findFileOnUsersPath(Composer.COMPOSER_FILENAMES.toArray(new String[0])); if (!paths.isEmpty()) { composerPath = paths.get(0); setComposerPath(composerPath); } } return composerPath; }
Example 5
Source File: Doctrine2Options.java From netbeans with Apache License 2.0 | 5 votes |
public String getScript() { String script = getPreferences().get(SCRIPT, null); if (script == null && !scriptSearched) { scriptSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(Doctrine2Script.SCRIPT_NAME, Doctrine2Script.SCRIPT_NAME_LONG); if (!scripts.isEmpty()) { script = scripts.get(0); setScript(script); } } return script; }
Example 6
Source File: SymfonyOptions.java From netbeans with Apache License 2.0 | 5 votes |
public synchronized String getSymfony() { String symfony = getPreferences().get(SYMFONY, null); if (symfony == null && !symfonySearched) { symfonySearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(SymfonyScript.SCRIPT_NAME, SymfonyScript.SCRIPT_NAME_LONG); if (!scripts.isEmpty()) { symfony = scripts.get(0); setSymfony(symfony); } } return symfony; }
Example 7
Source File: ApiGenOptions.java From netbeans with Apache License 2.0 | 5 votes |
public String getApiGen() { String apiGen = getPreferences().get(APIGEN, null); if (apiGen == null && !apigenSearched) { apigenSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(ApiGenScript.SCRIPT_NAME, ApiGenScript.SCRIPT_NAME_LONG); if (!scripts.isEmpty()) { apiGen = scripts.get(0); setApiGen(apiGen); } } return apiGen; }
Example 8
Source File: AnalysisOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getPHPStanPath() { String phpstanPath = getPreferences().get(PHPSTAN_PATH, null); if (phpstanPath == null && !phpstanSearched) { phpstanSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(PHPStan.NAME, PHPStan.LONG_NAME); if (!scripts.isEmpty()) { phpstanPath = scripts.get(0); setMessDetectorPath(phpstanPath); } } return phpstanPath; }
Example 9
Source File: AnalysisOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getCodingStandardsFixerPath() { String codingStandardsFixerPath = getPreferences().get(CODING_STANDARDS_FIXER_PATH, null); if (codingStandardsFixerPath == null && !codingStandardsFixerSearched) { codingStandardsFixerSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(CodingStandardsFixer.NAME, CodingStandardsFixer.LONG_NAME); if (!scripts.isEmpty()) { codingStandardsFixerPath = scripts.get(0); setCodingStandardsFixerPath(codingStandardsFixerPath); } } return codingStandardsFixerPath; }
Example 10
Source File: PhpDocOptions.java From netbeans with Apache License 2.0 | 5 votes |
public synchronized String getPhpDoc() { String phpDoc = getPreferences().get(PHPDOC, null); if (phpDoc == null && !phpDocSearched) { phpDocSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(PhpDocScript.SCRIPT_NAME, PhpDocScript.SCRIPT_NAME_LONG, PhpDocScript.SCRIPT_NAME_PHAR); if (!scripts.isEmpty()) { phpDoc = scripts.get(0); setPhpDoc(phpDoc); } } return phpDoc; }
Example 11
Source File: AnalysisOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getCodeSnifferPath() { String codeSnifferPath = getPreferences().get(CODE_SNIFFER_PATH, null); if (codeSnifferPath == null && !codeSnifferSearched) { codeSnifferSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(CodeSniffer.NAME, CodeSniffer.LONG_NAME); if (!scripts.isEmpty()) { codeSnifferPath = scripts.get(0); setCodeSnifferPath(codeSnifferPath); } } return codeSnifferPath; }
Example 12
Source File: PhingOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getPhing() { String path = preferences.get(PHING_PATH, null); if (path == null && !phingSearched) { phingSearched = true; List<String> files = FileUtils.findFileOnUsersPath(PhingExecutable.PHING_NAMES); if (!files.isEmpty()) { path = files.get(0); setPhing(path); } } return path; }
Example 13
Source File: ZendOptions.java From netbeans with Apache License 2.0 | 5 votes |
public synchronized String getZend() { String zend = getPreferences().get(ZEND, null); if (zend == null && !zendSearched) { zendSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(ZendScript.SCRIPT_NAME, ZendScript.SCRIPT_NAME_LONG); if (!scripts.isEmpty()) { zend = scripts.get(0); setZend(zend); } } return zend; }
Example 14
Source File: PhpUnitOptions.java From netbeans with Apache License 2.0 | 5 votes |
public String getSkeletonGeneratorPath() { String skeletonGeneratorPath = getPreferences().get(SKELETON_GENERATOR_PATH, null); if (skeletonGeneratorPath == null && !skeletonGeneratorSearched) { skeletonGeneratorSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath( SkeletonGenerator.SCRIPT_NAME, SkeletonGenerator.SCRIPT_NAME_LONG, SkeletonGenerator.SCRIPT_NAME_PHAR); if (!scripts.isEmpty()) { skeletonGeneratorPath = scripts.get(0); setSkeletonGeneratorPath(skeletonGeneratorPath); } } return skeletonGeneratorPath; }
Example 15
Source File: PhpUnitOptions.java From netbeans with Apache License 2.0 | 5 votes |
public String getPhpUnitPath() { String phpUnitPath = getPreferences().get(PHP_UNIT_PATH, null); if (phpUnitPath == null && !phpUnitSearched) { phpUnitSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(PhpUnit.SCRIPT_NAME, PhpUnit.SCRIPT_NAME_LONG, PhpUnit.SCRIPT_NAME_PHAR); if (!scripts.isEmpty()) { phpUnitPath = scripts.get(0); setPhpUnitPath(phpUnitPath); } } return phpUnitPath; }
Example 16
Source File: AtoumOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getAtoumPath() { String path = getPreferences().get(ATOUM_PATH, null); if (path == null && !atoumSearched) { atoumSearched = true; List<String> scripts = FileUtils.findFileOnUsersPath(Atoum.PHAR_FILE_NAME, Atoum.ATOUM_FILE_NAME); if (!scripts.isEmpty()) { path = scripts.get(0); setAtoumPath(path); } } return path; }
Example 17
Source File: SymfonyOptions.java From netbeans with Apache License 2.0 | 5 votes |
@CheckForNull public String getInstaller() { String path = getPreferences().get(INSTALLER, null); if (path == null && !installerSearched) { installerSearched = true; List<String> files = FileUtils.findFileOnUsersPath(InstallerExecutable.NAME); if (!files.isEmpty()) { path = files.get(0); setInstaller(path); } } return path; }
Example 18
Source File: PhpEnvironment.java From netbeans with Apache License 2.0 | 4 votes |
static List<String> getAllPhpInterpreters(String phpFilename) { return FileUtils.findFileOnUsersPath(phpFilename); }