<target name="<%=new GenerationHelper().getNameOrGeneratedIdString(javadocStep)%>"> | |
<delete dir="${build.root}/../javadoc" /> | |
<javadoc | |
destdir="${build.root}/../javadoc" | |
maxmemory="1024m" | |
source="1.5" | |
useexternalfile="true" | |
author="true" | |
version="true" | |
use="true" | |
windowtitle="Javadoc"> | |
<%for (String linkString : javadocStep.getLinks()) {%> | |
<link offline="false" href="<%=linkString%>"/> | |
<%}%> | |
<!-- TODO better handling of dir parameter --> | |
<!-- TODO better handling of SourceBuildLocation model extension --> | |
<%for (SourceBuildLocation sourceLocation : javadocStep.getSources()) {%> | |
<%if (sourceLocation instanceof LocalBuildLocation) {%> | |
<fileset dir="<%=((LocalBuildLocation)sourceLocation).getPath()%>" defaultexcludes="true"> | |
<%}%> | |
<%if (sourceLocation instanceof SVNBuildLocation) { | |
SVNBuildLocation svnBuildLocation = (SVNBuildLocation) sourceLocation; | |
SVNLocation svnLocation = (SVNLocation) svnBuildLocation.getSvnLocation();%> | |
<fileset dir="${build.root}/svn/<%=svnLocation.getLocalPath()%>/<%=svnBuildLocation.getFolderName()%>" defaultexcludes="true"> | |
<%}%> | |
<%if (sourceLocation instanceof GITBuildLocation) { | |
GITBuildLocation gitBuildLocation = (GITBuildLocation) sourceLocation; | |
GITLocation gitLocation = (GITLocation) gitBuildLocation.getGitLocation();%> | |
<fileset dir="${build.root}/git/<%=gitLocation.getLocalPath()%>/<%=gitBuildLocation.getFolderName()%>" defaultexcludes="true"> | |
<%}%> | |
<%for (String includeString : javadocStep.getIncludes()) {%> | |
<include name="<%=includeString%>"/> | |
<%}%> | |
<%for (String excludeString : javadocStep.getExcludes()) {%> | |
<exclude name="<%=excludeString%>"/> | |
<%}%> | |
</fileset> | |
<%}%> | |
<!-- TODO better handling of copyright (escape chars) --> | |
<!-- <bottom>copyright</bottom> --> | |
</javadoc> | |
</target> | |