Access Output tag in NewModuleRootManager component in .iml file

Answered

Below is a snippet of my .iml file of a module in my Android project:

<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":xxxxxx" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/../../yyyyyyyyyyy" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
<output url="file://$MODULE_DIR$/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes" />
<output-test url="file://$MODULE_DIR$/build/intermediates/javac/debugUnitTest/compileDebugUnitTestJavaWithJavac/classes" />
</component>
</module>


I wanted to access the url field of the output tag.

I tried 

ModuleRootManager.getInstance(module)

But couldn't find anything on "output". How do I obtain this?

1 comment
Comment actions Permalink

Henry,

Try with 

CompilerModuleExtension.getInstance(module).getCompilerOutputUrl()
0

Please sign in to leave a comment.