You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2009/05/14 19:12:57 UTC

DO NOT REPLY [Bug 47196] New: Can't use to exclude packages from in 1.7.1, ok in 1.6

https://issues.apache.org/bugzilla/show_bug.cgi?id=47196

           Summary: Can't use <packageset> to exclude packages from
                    <javadoc> in 1.7.1, ok in 1.6
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: eric.kaplan@armanta.com


I have the following <javadoc> command and am specifying a number of packages
to exclude from the javadoc. This works fine in Ant 1.6.1 but not in 1.7.1. I'm
running with java 1.5.0_16. For some reason, the packages I specify in the
<exclude> of the <packageset> aren't being excluded in 1.7.1, but are in 1.6.1.

<property name="doc.params.deploy" value="-d deploy/doc/api -breakiterator
-author -generic -docletpath
ydoc-3.0_01-jdk1.5/lib/ydoc.jar;ydoc-3.0_01-jdk1.5/resources;source/java
-doclet ydoc.doclets.YStandard -filterpath ydoc-3.0_01-jdk1.5/lib/ydoc.jar
-filter ydoc.filters.ExcludeFilter 
-tag y.precondition 
-tag y.postcondition 
-link http://java.sun.com/j2se/1.5/docs/api
-tag param
-tag return
-tag see
-noindex
-windowtitle 'Armanta Application Framework API'
-doctitle 'Armanta Application Framework API'
-bottom 'Copyright 2009 Armanta, Inc. All rights reserved.'
-version
-author
-protected"/>

...

<javadoc sourcepath="source/java" destdir="deploy/doc/api" windowtitle="Armanta
Application Framework API" doctitle="Armanta Application Framework API"
encoding="iso-8859-1" docencoding="iso-8859-1"
     bottom="Copyright (c) 2009 Armanta, Inc.."  
     additionalparam="${doc.params.deploy}" classpathref="build-classpath" 
     maxmemory="256m">
     <packageset dir="source/java" defaultexcludes="yes">
              <exclude name="com/armanta"/>
              <exclude name="com/armanta/app"/>
            ...
     </packageset>
</javadoc>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages from in 1.7.1, ok in 1.6

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196





--- Comment #4 from Eric J Kaplan <er...@armanta.com>  2009-05-19 07:30:28 PST ---
Created an attachment (id=23690)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23690)
Output from javadoc -verbose with ant 1.6.1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages when using the sourcepath attribute as well

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|Core tasks                  |Documentation
         Resolution|                            |FIXED




--- Comment #10 from Stefan Bodewig <bo...@apache.org>  2009-06-19 07:01:55 PST ---
I'bve come to the conclusion that 1.7.1's behavior is correct and have
documented it with svn revision 786510 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=786510 ).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages from in 1.7.1, ok in 1.6

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196





--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2009-05-18 05:01:03 PST ---
seems to work for me, see the passing AntUnit test in svn revision 775911 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=775911 )

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages from in 1.7.1, ok in 1.6

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |1.8.0




--- Comment #7 from Stefan Bodewig <bo...@apache.org>  2009-05-19 08:07:19 PST ---
I think I see the problem, I suspect it was svn revision 382928 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=382928 )

In fact, if I add a sourcepath attribute, our test fails as well.

Maybe you can remove the sourcepath attribute as a workaround, I'll look into
fixing it for trunk.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages from in 1.7.1, ok in 1.6

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196





--- Comment #3 from Stefan Bodewig <bo...@apache.org>  2009-05-19 06:04:52 PST ---
can you run ant -verbose with both versions to see whether there is any
difference to spot?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages from in 1.7.1, ok in 1.6

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196





--- Comment #8 from Eric J Kaplan <er...@armanta.com>  2009-05-19 08:12:51 PST ---
Yes, much thanks, removing the sourcepath attribute indeed fixed the problem!
I'll let you change the status of the ticket as desired.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages from in 1.7.1, ok in 1.6

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196





--- Comment #6 from Eric J Kaplan <er...@armanta.com>  2009-05-19 07:32:17 PST ---
I attached the output from running with both versions. Note in 1.6.1, it lists
only the packages I didn't exclude. In 1.7.1, it lists these pacakages,
followed by all the other packages! Let me know if you see anything.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages when using the sourcepath attribute as well

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Can't use <packageset> to   |Can't use <packageset> to
                   |exclude packages from       |exclude packages when using
                   |<javadoc> in 1.7.1, ok in   |the sourcepath attribute as
                   |1.6                         |well
           Severity|critical                    |normal




--- Comment #9 from Stefan Bodewig <bo...@apache.org>  2009-06-19 06:50:47 PST ---
reducing severity since there is a workaround

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages from in 1.7.1, ok in 1.6

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196





--- Comment #5 from Eric J Kaplan <er...@armanta.com>  2009-05-19 07:31:07 PST ---
Created an attachment (id=23691)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23691)
Output from javadoc -verbose with ant 1.7.1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47196] Can't use to exclude packages from in 1.7.1, ok in 1.6

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47196





--- Comment #2 from Eric J Kaplan <er...@armanta.com>  2009-05-18 13:50:21 PST ---
I looked, and indeed one of the tests seems to be our case. Still, makes no
sense to me! I run 1.6.1 and my build.xml works fine. Run 1.7.1 and I can't
seem to get it to exclude the listed packages. I tried again, same problem.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.