Last active
November 16, 2017 04:21
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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