Thomas Dudziak wrote:

On Tue, 25 May 2004, Maksimenko Alexander wrote:



But unfortunately I can't do this because my source files are in different directories
If I specify common parent directory:


<ojbdoclet destdir="${dir.javalike}" checks="basic">
<fileset dir="..">
<include name="server/src/java/**/*"/>
<include name="shared/src/java/**/*"/>
</fileset>
<ojbrepository destinationFile="repository_types.xml"/>
</ojbdoclet>
XDoclet want find any file.



Mhm, this does look like an Ant problem, not a XDoclet problem (as XDoclet simply uses the Ant facilities here). Have you tried this very fileset with a different task, say copy ? Also, I'm not sure whether the 'fileset dir=".."' will work. Try prefixing the includes, e.g.:



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

  <ojbdoclet destdir="${dir.javalike}" checks="basic">
      <fileset>
          <include name="../server/src/java/**/*"/>
          <include name="../shared/src/java/**/*"/>
      </fileset>
      <ojbrepository destinationFile="repository_types.xml"/>
  </ojbdoclet>

You may also want to specify the root directory of your source in the
dir attribute of the fileset (instead of using '..').

Tom


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







--
?????????? ?????????
Softwarium, www.softwarium.net


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



Reply via email to