Java Code Examples for javax.tools.FileObject#getLastModified()
The following examples show how to use
javax.tools.FileObject#getLastModified() .
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: DocumentationProcessor.java From armeria with Apache License 2.0 | 6 votes |
private Properties readProperties(String className) throws IOException { if (propertiesMap.containsKey(className)) { return propertiesMap.get(className); } final FileObject resource = processingEnv .getFiler() .getResource(StandardLocation.CLASS_OUTPUT, "", getFileName(className)); final Properties properties = new Properties(); if (resource.getLastModified() == 0L) { // returns 0 if file does not exist propertiesMap.put(className, properties); return properties; } try (Reader reader = resource.openReader(false)) { properties.load(reader); return properties; } }
Example 2
Source File: ClassWriter.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 3
Source File: ClassWriter.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 4
Source File: ClassWriter.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 5
Source File: ClassWriter.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 6
Source File: ClassWriter.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 7
Source File: ClassWriter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 8
Source File: ClassWriter.java From javaide with GNU General Public License v3.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 9
Source File: ClassWriter.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 10
Source File: ClassWriter.java From hottub with GNU General Public License v2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 11
Source File: ClassWriter.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }
Example 12
Source File: ClassWriter.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
long getLastModified(FileObject filename) { long mod = 0; try { mod = filename.getLastModified(); } catch (SecurityException e) { throw new AssertionError("CRT: couldn't get source file modification date: " + e.getMessage()); } return mod; }