You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Eugene Voytitsky <vi...@sunbay.com> on 2002/06/06 12:53:30 UTC

bug?

Hello All,

It seems that:

1. 'packagelist' attribute doesn't work in 1.5b1 and 1.5b2

2. if 'classpathref' refers to empty classpath
then Ant 1.4.1 & 1.5bX failed
(command generated by Ant looks like:
... javadoc.exe ... -classpath -sourcepath ...)

  

-- 
Best regards,
Eugene Voytitsky                          mailto:viy@sunbay.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Re[2]: bug?

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 13 Jun 2002, Eugene Voytitsky <vi...@sunbay.com> wrote:

> BUILD FAILED
> 1.xml:39: No source files and no packages have been specified.

Ahh, thanks.  Fixed in the 1.5 branch.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re[2]: bug?

Posted by Eugene Voytitsky <vi...@sunbay.com>.
Hello Stefan,

Thursday, June 13, 2002, 3:41:02 PM, you wrote:

I use the following target for testing bug suspicion:

<!-- scrap of 1.xml -->
<target name="doc">
        <delete dir="%dest_dir%"/>
        <mkdir dir="%dest_dir%"/>
        <javadoc
                sourcepath="%src_dir%"
                destdir="%dest_dir%"
                classpathref="classpath_id"
                access="package"
                author="true"
                version="true"
                use="true"
                packagelist="../${module_name}.packagelist"
        >
        </javadoc>
</target>

>> 1. 'packagelist' attribute doesn't work in 1.5b1 and 1.5b2

SB> why do you think so?

Apache Ant version 1.5Beta compiled on June 13 2002
<...skip..>
   [delete] Deleting directory %dest_dir%
    [mkdir] Created dir: %dest_dir%
BUILD FAILED
1.xml:39: No source files and no packages have been specified.
        at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1458)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:606)
        at org.apache.tools.ant.Main.start(Main.java:195)
        at org.apache.tools.ant.Main.main(Main.java:234)

The completely same build file works fine with Ant 1.4.1
        
>> 2. if 'classpathref' refers to empty classpath
>> then Ant 1.4.1 & 1.5bX failed

SB> Fixed in the 1.5 branch now.

I'm sorry but it seems that it still doesn't work:

First of all I replaced line
        packagelist="../${module_in_lower_case}.packagelist"
by
        packagenames="com.foo.*"
(because of packagelist doesn't work)
and modified classpath so that it includes/lists nothing.
                
Apache Ant version 1.5Beta compiled on June 13 2002
<...skip..>
Execute:Java13CommandLauncher: Executing '%JAVA_HOME%\bin\javadoc.exe' with arguments:
'-d'
'%dest_dir%'
'-package'
'-use'
'-classpath' // so classpath still present
''           // with empty value
'-sourcepath'
'%src_dir%'
'-version'
'-author'
'com.foo'

The ' characters around the executable and arguments are
not part of the command.

  [javadoc] javadoc: No package, class, or source file found named %dest_dir%.
  [javadoc] 2 errors
  [javadoc] javadoc: No package, class, or source file found named com.foo.

BUILD SUCCESSFUL


-- 
Best regards,
Eugene Voytitsky                            mailto:viy@sunbay.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: bug?

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 6 Jun 2002, Eugene Voytitsky <vi...@sunbay.com> wrote:

> 1. 'packagelist' attribute doesn't work in 1.5b1 and 1.5b2

why do you think so?

> 2. if 'classpathref' refers to empty classpath
> then Ant 1.4.1 & 1.5bX failed

Fixed in the 1.5 branch now.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>