ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ot...@ivillage.com
Subject getting package names of .java files from Ant
Date Tue, 02 Oct 2001 17:18:49 GMT
Hello,

Is there a way to get a list of all the packages in .java files 'automagically' from within
Ant?
It looks like <javadoc> task needs a comma-separated lsit of packages and I'd hate to
have to hack something that parses packages out of .java files if this is something that can
already be accomplished by using a built-in Ant feature.

How do people normally create javadocs from within Ant?
How do they get that comma-separated list?

    <target name="javadocs" depends="compile">
        <javadoc
         sourcepath="${build.src}"
         packagenames="${packages}"
         destdir="${build.javadocs}"
         ...
            <classpath refid="classpath"/>
        </javadoc>
    </target>


Thanks!
Otis

_________________________________________________________________
iVillage.com: Solutions for Your Life 
Check out the most exciting women's community on the Web   
http://www.ivillage.com

Mime
View raw message