Ant - Pathelement with wildcard only works in Javac forked mode?

foolhunger <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <CAP3XSWMr0bAMJ+QGaFHsMPDdqXz_3s8OXswvG9RbP5hcLabOZw@mail.gmail.com>
I encountered below issue when using Ant.

My ANT script snippets:

<path id="id.compile.classpath">
  <pathelement location="src/compile_lib1/*" />
  <pathelement location="src/compile_lib2/*" /></path>
<javac srcdir="${module.root}/${src.root}" destdir="${swap.target.classes}"
  nowarn="${javac.nowarn}" debug="${javac.debug}" fork="${javac.fork}"
  classpathref="id.compile.classpath"
includeAntRuntime="${javac.includeAntRuntime}">
  <include name="**/*.java"/></javac>

When set fork=”true” in javac task, the wildcard pathelement works fine,
but when forked is set to false, Ant seems failed to interpret wildcard
correctly. (compilation failed, due to classpath error).

Any suggestions
Thanks.

-- 
<Stay Hungry, Stay Foolish>
------------------------------------------
Best Regards
foolhunger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.