ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Good, Brian" <bg...@Corio.com>
Subject excluding source files in javadoc task?
Date Wed, 16 Oct 2002 01:36:24 GMT
I have been trying to use the javadoc task while excluding a few source
files.  It seems that the behavior in this task is different from the
behavior in the javac task or a classpath specification.  What I want to do
is:

<target name="javadoc" depends="compileAll">
	<javadoc destdir="${destdir.doc}">
		<package name="com.corio.cims.*"/>
  		<sourcepath>
  			<fileset dir="${sourcedir.java}" 
 
excludes="**/BrowseResults.java,**/AccessControlWriter.java,**/SimpleLdapCon
textFactory.java,**/LDAPQuery.java" />
  		</sourcepath>
	</javadoc>
</target>

This should work, right?  But when I run the build I get an error indicating
it wants sourcepath to only be a directory listing:

BUILD FAILED
file:D:/CIMS/install_builds/deploy.xml:104:
D:\CIMS\source\javacode\com\corio\cims\config\LDAPConfigurator.java is not a
directory.

What's a better way to specify this?  I understand I can use the
"sourcefiles" attribute but don't want to list a kajillion subdirectories
with file patterns.  It's much easier to specify the files I don't want here
than the files I do want.

Thanks,

Brian

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message