Welcome to DeadEd.com
Saturday, May 17 2008 @ 08:50 AM CDT

ListAllJavaFilesTask


Description
Lists all .java files in the workspace you are running this from that match these rules:

  • exists under a Java Source package
  • package name starts with "com.mycompany"
  • excludes package names that end with "xmlbinding"
  • excludes package names that end with "xmlbinding.impl"
  • excludes classes that start with "_"
  • excludes classes that start with "EJSStateless"
  • excludes classes that start with "EJSRemoteStateless"

To use this as an ANT task, you will need to add a taskdef to your build file:
<taskdef name="listAllJavaFiles" classname="com.deaded.ant.ListAllJavaFilesTask"
	classpath="commonAntTasks.jar"/>

Parameters

Attribute Description Required
Filename The name (and location) of the file to write the list to Yes

Example

<listAllJavaFiles filename="C:/temp/filelist.txt"/>


Last Updated Monday, November 21 2005 @ 07:34 PM CST; 1,564 Hits View Printable Version