Задача Ant JavaDoc, генерирующая `NoClassDefFoundError` из пользовательского тега, даже если класс * находится * в пути к классам
У меня проблемы с заданием JavaDoc Ant. Это дает мне java.lang.NoClassDefFoundError
для класса, который, насколько я могу судить, определенно находится на пути к классам. Согласно документации, NoClassDefFoundError
генерируется, когда класс существовал во время компиляции, но не может быть найден во время выполнения. (A NoClassDefFoundError
это неClassNotFoundException
.)
Когда я удаляю элемент classpath, он терпит неудачу, как и ожидалось (много ошибок в пакете / символе не найдено), и все равно выдает то же NoClassDefFoundError
, Почему это не работает для теглета, находится ли класс в пути к классам или нет?
Особенности:
Класс, который он не может найти, называется com.github.xbn.io.SimpleDebugable
, и это в этом файле jar:
- Jar файл:
C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\z_build\jar_dependencies\xbnjava-0.1.4.2-all.jar
Задача JavaDoc Ant. Приведенный выше файл jar является самым первым элементом в classpath.
<target name="doca" description="Generates javadoc documentation.">
<property name="jar_base_dir" value="C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\z_build\jar_dependencies\"/>
<property name="taglet_jar" value="C:\data_jeffy\programming\build\codelet-0.1.4.1\download\codelet-0.1.4.1-all.jar"/>
<javadoc
packagenames="com.github.aliteralmind.codelet,com.github.aliteralmind.codelet.alter,com.github.aliteralmind.codelet.simplesig,com.github.aliteralmind.codelet.taglet,com.github.aliteralmind.codelet.type,com.github.aliteralmind.codelet.util"
defaultexcludes="yes"
destdir="C:\data_jeffy\programming\build\codelet-0.1.4.1\documentation\javadoc"
splitindex="true"
additionalparam="-J-Dcodelet_config_dir=C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\codelet_config\"
classpath="${jar_base_dir}xbnjava-0.1.4.2-all.jar;
C:\data_jeffy\programming\build\codelet-0.1.4.1\download\codelet-0.1.4.1-all.jar;
${jar_base_dir}templatefeather-0.1.1.2-all.jar;
${jar_base_dir}commons-io-2.4.jar;
${jar_base_dir}guava-16.0.1.jar;
${jar_base_dir}jdk_751__tools__contains_com_sun.jar"
>
<sourcepath>
<pathelement path="C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src"/>
</sourcepath>
<!-- Custom taglets-->
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletTaglet"
path="${taglet_jar}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletDotOutTaglet"
path="${taglet_jar}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletAndOutTaglet"
path="${taglet_jar}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.FileTextletTaglet"
path="${taglet_jar}"/>
</javadoc>
</target>
Это приводит к этому:
[javadoc] javadoc: error - In doclet class com.sun.tools.doclets.standard.Standard,
method start has thrown an exception java.lang.reflect.InvocationTargetException
[javadoc] java.lang.NoClassDefFoundError: com/github/xbn/io/SimpleDebuggable
Полный вывод:
[C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet]ant docx
Buildfile: C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\build.xml
docx:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package com.github.aliteralmind.codelet...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.alter...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.simplesig...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.taglet...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.type...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.util...
[javadoc] Constructing Javadoc information...
[javadoc] 1 error
[javadoc] javadoc: error - In doclet class com.sun.tools.doclets.standard.Standard, method start has thrown an exception java.lang.reflect.InvocationTargetException
[javadoc] java.lang.NoClassDefFoundError: com/github/xbn/io/SimpleDebuggable
[javadoc] at java.lang.ClassLoader.defineClass1(Native Method)
[javadoc] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[javadoc] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[javadoc] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[javadoc] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[javadoc] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[javadoc] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[javadoc] at java.security.AccessController.doPrivileged(Native Method)
[javadoc] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[javadoc] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[javadoc] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[javadoc] at com.github.aliteralmind.codelet.CodeletBootstrap.wasLoaded(Unknown Source)
[javadoc] at com.github.aliteralmind.codelet.CodeletBootstrap.loadConfiguration(Unknown Source)
[javadoc] at com.github.aliteralmind.codelet.CodeletBootstrap.<clinit>(Unknown Source)
[javadoc] at com.github.aliteralmind.codelet.taglet.CodeletTaglet.<clinit>(Unknown Source)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:606)
[javadoc] at com.sun.tools.doclets.internal.toolkit.taglets.TagletManager.addCustomTag(TagletManager.java:219)
[javadoc] at com.sun.tools.doclets.internal.toolkit.Configuration.initTagletManager(Configuration.java:466)
[javadoc] at com.sun.tools.doclets.internal.toolkit.Configuration.setOptions(Configuration.java:437)
[javadoc] at com.sun.tools.doclets.internal.toolkit.Configuration.setOptions(Configuration.java:447)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:120)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)
[javadoc] at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:606)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
[javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
[javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:167)
[javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:59)
[javadoc] at com.sun.tools.javadoc.Main.main(Main.java:49)
[javadoc] Caused by: java.lang.ClassNotFoundException: com.github.xbn.io.SimpleDebuggable
[javadoc] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[javadoc] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[javadoc] at java.security.AccessController.doPrivileged(Native Method)
[javadoc] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[javadoc] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[javadoc] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[javadoc] ... 37 more
BUILD SUCCESSFUL
Total time: 1 second
Когда вы полностью удаляете файл jar из пути к классам, он терпит неудачу, как и ожидалось, с несколькими сотнями package com.github.xbn.... does not exist
а также symbol not found
ошибки, означающие, что элемент classpath явно "работает". Так почему же это не работает для taglet?
Вывод с банкой не на пути к классам:
[C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet]ant docx
Buildfile: C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\build.xml
docx:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package com.github.aliteralmind.codelet...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.alter...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.simplesig...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.taglet...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.type...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.util...
[javadoc] Constructing Javadoc information...
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\BasicCustomizers.java:18: error: package com.github.xbn.linefilter.alter does not exist
[javadoc] import com.github.xbn.linefilter.alter.TextLineAlterer;
[javadoc] ^
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\BasicCustomizers.java:19: error: package com.github.xbn.linefilter does not exist
[javadoc] import com.github.xbn.linefilter.FilteredLineIterator;
[javadoc] ^
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\BasicCustomizers.java:20: error: package com.github.xbn.analyze.alter does not exist
[javadoc] import com.github.xbn.analyze.alter.ExpirableElements;
[javadoc] ^
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\BasicCustomizers.java:21: error: package com.github.xbn.analyze.alter does not exist
[javadoc] import com.github.xbn.analyze.alter.MultiAlterType;
[javadoc] ^
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\BasicCustomizers.java:22: error: package com.github.xbn.array does not exist
[javadoc] import com.github.xbn.array.NullElement;
[javadoc] ^
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\BasicCustomizers.java:23: error: package com.github.xbn.lang does not exist
[javadoc] import com.github.xbn.lang.IllegalArgumentStateException;
[javadoc] ^
Продолжение (~1500 строк удалено):
[javadoc] import com.github.xbn.linefilter.FilteredLineIterator;
[javadoc] ^
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\util\zCodeletCustomizers.java:25: error: package com.github.xbn.analyze.alter does notexist
[javadoc] import com.github.xbn.analyze.alter.ExpirableElements;
[javadoc] ^
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\util\zCodeletCustomizers.java:26: error: package com.github.xbn.analyze.alter does notexist
[javadoc] import com.github.xbn.analyze.alter.MultiAlterType;
[javadoc] ^
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\util\zCodeletCustomizers.java:27: error: package com.github.xbn.array does not exist
[javadoc] 1 error
[javadoc] import com.github.xbn.array.NullElement;
[javadoc] 371 warnings
[javadoc] ^
Продолжение: здесь, в самом конце, выдает ту же ошибку, что и в том случае, когда банка находилась в пути к классам:
[javadoc] javadoc: error - In doclet class com.sun.tools.doclets.standard.Standard,
method start has thrown an exception java.lang.reflect.InvocationTargetException
[javadoc] java.lang.NoClassDefFoundError: com/github/xbn/io/SimpleDebuggable
[javadoc] at java.lang.ClassLoader.defineClass1(Native Method)
[javadoc] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[javadoc] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[javadoc] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[javadoc] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[javadoc] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[javadoc] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[javadoc] at java.security.AccessController.doPrivileged(Native Method)
[javadoc] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[javadoc] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[javadoc] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[javadoc] at com.github.aliteralmind.codelet.CodeletBootstrap.wasLoaded(Unknown Source)
[javadoc] at com.github.aliteralmind.codelet.CodeletBootstrap.loadConfiguration(Unknown Source)
[javadoc] at com.github.aliteralmind.codelet.CodeletBootstrap.<clinit>(Unknown Source)
[javadoc] at com.github.aliteralmind.codelet.taglet.CodeletTaglet.<clinit>(Unknown Source)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:606)
[javadoc] at com.sun.tools.doclets.internal.toolkit.taglets.TagletManager.addCustomTag(TagletManager.java:219)
[javadoc] at com.sun.tools.doclets.internal.toolkit.Configuration.initTagletManager(Configuration.java:466)
[javadoc] at com.sun.tools.doclets.internal.toolkit.Configuration.setOptions(Configuration.java:437)
[javadoc] at com.sun.tools.doclets.internal.toolkit.Configuration.setOptions(Configuration.java:447)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:120)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)
[javadoc] at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:606)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
[javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
[javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:167)
[javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:59)
[javadoc] at com.sun.tools.javadoc.Main.main(Main.java:49)
[javadoc] Caused by: java.lang.ClassNotFoundException: com.github.xbn.io.SimpleDebuggable
[javadoc] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[javadoc] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[javadoc] at java.security.AccessController.doPrivileged(Native Method)
[javadoc] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[javadoc] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[javadoc] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[javadoc] ... 37 more
BUILD SUCCESSFUL
Total time: 1 second
В исходной (выше) цели пути тэглета указывают на файл jar. Ниже я извлек файлы классов тегов из jar-файла в каталог (извлекаются только эти четыре класса taglet, все остальное остается в jar-файле) и изменил пути тегов к корневому каталогу.
<property name="jar_base_dir" value="C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\z_build\jar_dependencies\"/>
<property name="taglet_base_dir" value="C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\bin\com\github\aliteralmind\codelet\taglet"/>
<javadoc
packagenames="com.github.aliteralmind.codelet,com.github.aliteralmind.codelet.alter,com.github.aliteralmind.codelet.simplesig,com.github.aliteralmind.codelet.taglet,com.github.aliteralmind.codelet.type,com.github.aliteralmind.codelet.util"
defaultexcludes="yes"
destdir="C:\data_jeffy\programming\build\codelet-0.1.4.1\documentation\javadoc"
splitindex="true"
additionalparam="-J-Dcodelet_config_dir=${dir_sandbox}${codelet.config.dir}${fs}"
classpath="${jar_base_dir}xbnjava-0.1.4.2-all.jar;
C:\data_jeffy\programming\build\codelet-0.1.4.1\download\codelet-0.1.4.1-all.jar;
${jar_base_dir}templatefeather-0.1.1.2-all.jar;
${jar_base_dir}commons-io-2.4.jar;
${jar_base_dir}guava-16.0.1.jar;
${jar_base_dir}jdk_751__tools__contains_com_sun.jar"
>
<sourcepath>
<pathelement path="C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src"/>
</sourcepath>
<!-- Custom taglets-->
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletTaglet"
path="${taglet_base_dir}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletDotOutTaglet"
path="${taglet_base_dir}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletAndOutTaglet"
path="${taglet_base_dir}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.FileTextletTaglet"
path="${taglet_base_dir}"/>
</javadoc>
А теперь NoClassDefFoundError
не бывает Вместо этого это
javadoc: error - Error - Exception java.lang.ClassNotFoundException
thrown while trying to register Taglet com.github.aliteralmind.codelet.taglet.CodeletTaglet...
Теперь проблема в том, что эта ошибка "проглатывается" JavaDoc. Я не знаю, как увидеть след этого java.lang.ClassNotFoundException
,
Полный вывод:
docb:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package com.github.aliteralmind.codelet...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.alter...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.simplesig...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.taglet...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.type...
[javadoc] Loading source files for package com.github.aliteralmind.codelet.util...
[javadoc] Constructing Javadoc information...
[javadoc] javadoc: error - Error - Exception java.lang.ClassNotFoundException
thrown while trying to register Taglet com.github.aliteralmind.codelet.taglet.CodeletTaglet...
[javadoc] javadoc: error - Error - Exception java.lang.ClassNotFoundException
thrown while trying to register Taglet com.github.aliteralmind.codelet.taglet.CodeletDotOutTaglet...
[javadoc] javadoc: error - Error - Exception java.lang.ClassNotFoundException
thrown while trying to register Taglet com.github.aliteralmind.codelet.taglet.CodeletAndOutTaglet...
[javadoc] Standard Doclet version 1.7.0_72
[javadoc] javadoc: error - Error - Exception java.lang.ClassNotFoundException thrown while trying to register Taglet com.github.aliteralmind.codelet.taglet.FileTextletTaglet...
[javadoc] Building tree for all the packages and classes...
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\BasicCustomizers.java:90:
warning - @.codelet is an unknown tag.
...lots of lines deleted...
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\util\JavaDocUtil.java:185:
warning - @.codelet.and.out is an unknown tag.
[javadoc] C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src\com\github\aliteralmind\codelet\util\JavaDocUtil.java:185:
warning - @.codelet.and.out is an unknown tag.
[javadoc] Building index for all the packages and classes...
[javadoc] Building index for all classes...
[javadoc] Generating C:\data_jeffy\programming\build\codelet-0.1.4.1\documentation\javadoc\help-doc.html...
[javadoc] 4 errors
[javadoc] 57 warnings
BUILD SUCCESSFUL
Total time: 2 seconds
И снова с подробным выводом: http://dpaste.com/3T0B40X
1 ответ
Проблема заключается в пути тегов. Путь к классу должен избыточно передаваться как в основную задачу JavaDoc, так и в каждый из пользовательских тегов. Все тэглеты должны иметь разные ClassLoader
s, и, следовательно, требуют дублированного пути к классам.
В документации ant для атрибута "path" тега прямо не сказано, что это путь к классу, и это меня смутило:
Путь, указывающий путь поиска для класса taglet (например, /home/taglets). Путь также может быть указан вложенным элементом
Рабочая цель:
<target name="docc" description="Generates javadoc documentation.">
<property name="jar_base_dir" value="C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\z_build\jar_dependencies\"/>
<property name="taglet_base_dir" value="C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\bin\"/>
<property name="javadoc_classpath"
value="${jar_base_dir}xbnjava-0.1.4.2-all.jar;C:\data_jeffy\programming\build\codelet-0.1.4.1\download\codelet-0.1.4.1-all.jar;${jar_base_dir}templatefeather-0.1.1.2-all.jar;${jar_base_dir}commons-io-2.4.jar;${jar_base_dir}guava-16.0.1.jar;${jar_base_dir}jdk_751__tools__contains_com_sun.jar;${jar_base_dir}commons-lang3-3.3.2.jar"/>
<javadoc
packagenames="com.github.aliteralmind.codelet,com.github.aliteralmind.codelet.alter,com.github.aliteralmind.codelet.simplesig,com.github.aliteralmind.codelet.taglet,com.github.aliteralmind.codelet.type,com.github.aliteralmind.codelet.util"
defaultexcludes="yes"
destdir="C:\data_jeffy\programming\build\codelet-0.1.4.1\documentation\javadoc"
splitindex="true"
additionalparam="-J-Dcodelet_config_dir=${dir_sandbox}${codelet.config.dir}${fs}"
classpath="${javadoc_classpath}"
>
<sourcepath>
<pathelement path="C:\data_jeffy\programming\sandbox\z__for_git_commit_only\codelet\src"/>
</sourcepath>
<!-- Custom taglets-->
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletTaglet"
path="${javadoc_classpath}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletDotOutTaglet"
path="${javadoc_classpath}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletAndOutTaglet"
path="${javadoc_classpath}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.FileTextletTaglet"
path="${javadoc_classpath}"/>
</javadoc>
</target>
Более портативная альтернатива:
<target name="docd" description="Generates javadoc documentation.">
<property name="sandbox_grandparent" value="C:/data_jeffy/programming/"/>
<property name="sandbox_parent" value="${sandbox_grandparent}sandbox/z__for_git_commit_only/"/>
<property name="sandbox" value="${sandbox_parent}codelet/"/>
<path id="project_classpath2">
<pathelement location="${sandbox_parent}codelet/bin/"/>
<pathelement location="${sandbox_grandparent}/build/codelet-0.1.4.1/download/codelet-0.1.4.1-all.jar"/>
<fileset dir="${sandbox}z_build/jar_dependencies/" includes="*.jar"/>
</path>
<pathconvert pathsep=";" property="javadoc_classpath" refid="project_classpath2"/>
<javadoc
packagenames="com.github.aliteralmind.codelet.*"
defaultexcludes="yes"
destdir="${sandbox_grandparent}/build/codelet-0.1.4.1/documentation/javadoc"
splitindex="true"
additionalparam="-J-Dcodelet_config_dir=${dir_sandbox}${codelet.config.dir}${fs}"
classpathref="project_classpath2"
>
<sourcepath>
<pathelement path="${sandbox}src"/>
</sourcepath>
<!-- Custom taglets-->
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletTaglet"
path="${javadoc_classpath}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletDotOutTaglet"
path="${javadoc_classpath}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.CodeletAndOutTaglet"
path="${javadoc_classpath}"/>
<taglet name="com.github.aliteralmind.codelet.taglet.FileTextletTaglet"
path="${javadoc_classpath}"/>
</javadoc>
</target>