org.androidannotations.helper
Class FileHelper

java.lang.Object
  extended by org.androidannotations.helper.FileHelper

public class FileHelper
extends Object


Constructor Summary
FileHelper()
           
 
Method Summary
static Option<File> findRootProject(ProcessingEnvironment processingEnv)
           
static Option<org.androidannotations.helper.FileHelper.FileHolder> findRootProjectHolder(ProcessingEnvironment processingEnv)
          We use a dirty trick to find the AndroidManifest.xml file, since it's not available in the classpath.
static File resolveOutputDirectory(ProcessingEnvironment processingEnv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHelper

public FileHelper()
Method Detail

findRootProject

public static Option<File> findRootProject(ProcessingEnvironment processingEnv)

findRootProjectHolder

public static Option<org.androidannotations.helper.FileHelper.FileHolder> findRootProjectHolder(ProcessingEnvironment processingEnv)
We use a dirty trick to find the AndroidManifest.xml file, since it's not available in the classpath. The idea is quite simple : create a fake class file, retrieve its URI, and start going up in parent folders to find the AndroidManifest.xml file. Any better solution will be appreciated.


resolveOutputDirectory

public static File resolveOutputDirectory(ProcessingEnvironment processingEnv)


Copyright © 2010-2014. All Rights Reserved.