-
Notifications
You must be signed in to change notification settings - Fork 69
/
iml.xsl
47 lines (41 loc) · 1.56 KB
/
iml.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"
encoding="utf-8"/>
<xsl:param name="name"/>
<xsl:template match="module">
<module relativePaths="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="false">
<exclude-output />
<output url="file://$MODULE_DIR$/../../build/{$name}/classes/main"/>
<output-test url="file://$MODULE_DIR$/../../build/{$name}/classes/test"/>
<xsl:if test="ant/@precompile">
<content url="file://$MODULE_DIR$/../../build/{$name}/gensrc">
<sourceFolder url="file://$MODULE_DIR$/../../build/{$name}/gensrc/main"
isTestSource="false" />
</content>
</xsl:if>
<content url="file://$MODULE_DIR$/">
<sourceFolder url="file://$MODULE_DIR$/src/main" isTestSource="false" />
<xsl:if test="compile[@test]">
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
</xsl:if>
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<xsl:if test="test[@type='testng']">
<orderEntry type="library" name="testng" level="project"/>
</xsl:if>
<xsl:apply-templates select="depends"/>
<orderEntryProperties />
</component>
</module>
</xsl:template>
<xsl:template match="depends[@module]">
<orderEntry type="module" module-name="{@module}" />
</xsl:template>
<xsl:template match="depends[@lib]">
<orderEntry type="library" name="{@lib}" level="project"/>
</xsl:template>
</xsl:stylesheet>