On Tue, 25 May 2004, Maksimenko Alexander wrote:

> When I call the task:
> <copy toDir="${basedir}/target/classes">
> <fileset dir="${basedir}/..">
> <include name="server/src/java/**/*"/>
> <include name="shared/src/java/**/*"/>
> </fileset>
> </copy>
> ant will successfully copy all files
> But when I call the task:
> <ojbdoclet destdir="${basedir}/target/classes" checks="basic">
> <fileset dir="${basedir}/..">
> <include name="server/src/java/**/*"/>
> <include name="shared/src/java/**/*"/>
> </fileset>
> <ojbrepository destinationFile="repository_shared_types.xml"/>
> </ojbdoclet>
> I get:
> Warning: Disabling strict checks.
> Generating ojb repository descriptor (repository_shared_types.xml)
> Processed 0 types
> Processed 0 types
> INFO: Some classes refer to other classes that were not found among the 
> sources or on the classpath.
> (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
> The referring classes do not import any fully qualified classes matching 
> these classes.
> However, since no packages are imported, xjavadoc has assumed that the 
> referred classes
> belong to the same package as the referring class. The classes are:
> D:\Home\Sasha\Jproject\psc\shared\src\java\net\softwarium\psc\application\Script.java
>  
> --> File qualified to net.softwarium.psc.
> application.File
> D:\Home\Sasha\Jproject\psc\shared\src\java\net\softwarium\psc\application\Script.java
>  
> --> File qualified to net.softwarium.psc.
> 
> I tested in ant 1.6.1

The easiest solution (that avoids the XDoclet bug) would probably be the
well-proven copy-to-work-dir strategy:

* copy all sources that you whish to process into a single working
directory
* process them (e.g. javac, XDoclet, javadoc, jar)
* put the results somewhere where they should end (e.g. lib folder etc.)

This strategy is applied by OJB, as well, because it makes it easy to
accomodate multiple sources of source files and other build information.

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to