@Override public synchronized void init(ProcessingEnvironment processingEnv) { super.init(processingEnv); parseOptions(); printDebug("verbose : " + verbose); printDebug("FileLocation : " + actionsFileLocation); processedClass = new ArrayList<String>(); actions = new SortedProperties(); }
protected Properties loadOldActionMapping() throws IOException { // reprise sur une ancienne compilation FileObject oldFo = processingEnv.getFiler().getResource(StandardLocation.SOURCE_OUTPUT, "", actionsFileLocation); if (!new File(oldFo.toUri().toString()).exists()) { return null; } Properties oldProps = new SortedProperties(); InputStream inputStream = null; try { inputStream = oldFo.openInputStream(); if (inputStream != null) { oldProps.load(inputStream); } oldFo.delete(); } finally { if (inputStream != null) { inputStream.close(); } } return oldProps; }
Properties prop = new SortedProperties();
Properties prop = new SortedProperties();
result.propertiesParameters = new SortedProperties();
@Override public Properties toProperties() { Properties result = new SortedProperties();