The advice on setting up <property environment="env"
/> was very helpful, although I wish I had noticed
that in the manual myself. Now I still can't figure
out how to conditionally include
"${env.JAVA_HOME}/src" in the sourcepath for the
javadoc statement only when such a directory exists.
I have tried using an available task to determine the
directory's presence, but was not able to use that
with if or unless for any relevant task or structure.
I almost got what I wanted by passing nested filesets
to the Javadoc task, but because Javadoc is apparently
called by shelling out, the number of command-line
options (file names) available is not enough. Does
anyone have any ideas on this?
Thanks,
Matt
--- Milind Nirgun <[EMAIL PROTECTED]> wrote:
> > from superclasses). My problems seem to be (1)
> that
> > ${JAVA_HOME} seems to disappear from the
> environment
> > once in Ant. ${java.home} is no good, because it
> > contains the equivalent of ${JAVA_HOME}/jre .
>
> Use ${env.JAVA_HOME}. Make sure you have set
> <property environment="env" /> before you do this.
>
> > even if ${JAVA_HOME} were not being removed from
> the
> > environment, on Windows it contains a colon which
> will
> > not work with sourcepath.
>
> Use the <pathconvert> task to do anything with
> paths.
>
> Hope that solves your problem.
>
> -Milind
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>