Skip to content

Instantly share code, notes, and snippets.

@jitanghu
Last active November 16, 2017 04:21
Show Gist options
  • Save jitanghu/9320776 to your computer and use it in GitHub Desktop.
Save jitanghu/9320776 to your computer and use it in GitHub Desktop.
A xslt script translating android eclipse .classpath file to idea 13 module file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output/>
<content url="file://$MODULE_DIR$">
<xsl:apply-templates select="classpath/classpathentry" />
</content>
<orderEntry type="inheritedJdk"/>
<orderEntry type="sourceFolder" forTests="false"/>
</component>
</module>
</xsl:template>
<xsl:template match="classpathentry">
<sourceFolder url="file://$MODULE_DIR$/{@path}" isTestSource="false"/>
</xsl:template>
</xsl:transform>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment