ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52096] Package detection wrong in creation of empty package-info class (JAVAC task)
Date Fri, 28 Oct 2011 09:50:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52096

--- Comment #4 from Praveen <achu.prav@gmail.com> 2011-10-28 09:50:28 UTC ---
(In reply to comment #3)
> Yes, javac allows users to use it that way, but then it does unexpected things
> like creating package-info.class files in wrong places ;-)
> The package-info.class is only created for the purpose of tracking what needs
> to get recompiled.  If you deliberately break that there isn't anything Ant can
> do (it doesn't know the package name as it assumes you structure follows best
> practices).
> In a case like yours the only thing we could do was to offer an attribute that
> suppresses the generation of empty package-info.class files completely.  I
> don't expect this will be widely used, though.

I do have different views on it ,"Best practice" for a project folder structure
is very specific to each and every project and a very relative term.

Yes suppressing it would atleast make it behave the way the earlier versions
(1.7.X) used to behave.I am sure "javac" by itself would come with a solution
for the problem that you were trying to solve in ANT 1.8.X and then anyway this
feature in ANT need not be used.I hope its already there in the latest versions
of the JDK.

Yes suppressing option would surely help.:)

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

Mime
View raw message