added support for multiple source directories for generation of the kdoc, so we can include java & kunit etc

This commit is contained in:
James Strachan
2012-03-03 06:35:18 +00:00
parent ffa2b7b085
commit cfe4b7f736
3 changed files with 24 additions and 17 deletions
+2 -15
View File
@@ -112,28 +112,15 @@
<path refid="classpath"/> <path refid="classpath"/>
<pathelement location="${kotlin-home}/lib/kotlin-compiler.jar"/> <pathelement location="${kotlin-home}/lib/kotlin-compiler.jar"/>
<pathelement location="${output}/classes/kdoc"/> <pathelement location="${output}/classes/kdoc"/>
<!--
lets use the local Ant build rather than the mvn build
<fileset dir="${basedir}/kdoc/target">
<include name="**/*.jar"/>
</fileset>
-->
<!-- TODO Dirty Hack until kdoc jar has stdlib inside it --> <!-- TODO Dirty Hack until kdoc jar has stdlib inside it -->
<pathelement location="${output}/classes/stdlib"/> <pathelement location="${output}/classes/stdlib"/>
</classpath> </classpath>
<!--
<arg value="-src"/>
<arg value="${basedir}/stdlib/ktSrc"/>
-->
<arg value="-output"/> <arg value="-output"/>
<arg value="${output}/classes/stdlib"/> <arg value="${output}/classes/apidoc"/>
<arg value="-docOutput"/> <arg value="-docOutput"/>
<arg value="${output}/apidoc/stdlib"/> <arg value="${output}/apidoc/stdlib"/>
<arg value="-module"/> <arg value="-module"/>
<arg value="${basedir}/modules/ApiDocsModule.kt"/> <arg value="${basedir}/kdoc/ApiDocsModule.kt"/>
</java> </java>
<fail message="No stdlib API docs generated."> <fail message="No stdlib API docs generated.">
+22 -2
View File
@@ -33,7 +33,9 @@
<root url="jar://$MODULE_DIR$/../dist/kotlinc/lib/kotlin-compiler.jar!/" /> <root url="jar://$MODULE_DIR$/../dist/kotlinc/lib/kotlin-compiler.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES>
<root url="file://$MODULE_DIR$/../compiler/cli/src" />
</SOURCES>
</library> </library>
</orderEntry> </orderEntry>
<orderEntry type="module-library"> <orderEntry type="module-library">
@@ -102,7 +104,25 @@
<orderEntry type="module-library"> <orderEntry type="module-library">
<library> <library>
<CLASSES> <CLASSES>
<root url="jar://$MODULE_DIR$/../dist/kotlinc/lib/asm-all-3.3.1.jar!/" /> <root url="jar://$MODULE_DIR$/../lib/asm-util-3.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../lib/asm-tree-3.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../lib/asm-analysis-3.3.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />