git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272181 13f79535-47bb-0310-9956-ffa450edef68master
@@ -30,13 +30,13 @@ import org.apache.tools.todo.types.ScannerUtil; | |||||
* http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html</a>.</p> | * http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html</a>.</p> | ||||
* | * | ||||
* @author <a href="mailto:peter@apache.org">Peter Donald</a> | * @author <a href="mailto:peter@apache.org">Peter Donald</a> | ||||
* @ant.task name="extension-display" | |||||
* @ant.task name="jarlib-display" | |||||
*/ | */ | ||||
public class ExtensionDisplayTask | |||||
public class JarLibDisplayTask | |||||
extends AbstractTask | extends AbstractTask | ||||
{ | { | ||||
private final static Resources REZ = | private final static Resources REZ = | ||||
ResourceManager.getPackageResources( ExtensionDisplayTask.class ); | |||||
ResourceManager.getPackageResources( JarLibDisplayTask.class ); | |||||
/** | /** | ||||
* The library to display information about. | * The library to display information about. | ||||
@@ -74,7 +74,7 @@ public class ExtensionDisplayTask | |||||
{ | { | ||||
validate(); | validate(); | ||||
final LibraryDisplay displayer = new LibraryDisplay(); | |||||
final LibraryDisplayer displayer = new LibraryDisplayer(); | |||||
// Check if list of files to check has been specified | // Check if list of files to check has been specified | ||||
if( !m_filesets.isEmpty() ) | if( !m_filesets.isEmpty() ) | ||||
{ | { |
@@ -25,7 +25,7 @@ import org.apache.avalon.excalibur.extension.Specification; | |||||
* @author <a href="mailto:peter@apache.org">Peter Donald</a> | * @author <a href="mailto:peter@apache.org">Peter Donald</a> | ||||
* @version $Revision$ $Date$ | * @version $Revision$ $Date$ | ||||
*/ | */ | ||||
class LibraryDisplay | |||||
class LibraryDisplayer | |||||
{ | { | ||||
/** | /** | ||||
* Display the extensions and specifications contained | * Display the extensions and specifications contained | ||||
@@ -104,7 +104,7 @@ class LibraryDisplay | |||||
* | * | ||||
* @param manifest the manifest | * @param manifest the manifest | ||||
* @return the specifications or null if none | * @return the specifications or null if none | ||||
* @throws org.apache.myrmidon.api.TaskException if malformed specification sections | |||||
* @throws TaskException if malformed specification sections | |||||
*/ | */ | ||||
private Specification[] getSpecifications( final Manifest manifest ) | private Specification[] getSpecifications( final Manifest manifest ) | ||||
throws TaskException | throws TaskException |
@@ -324,13 +324,13 @@ Legal: | |||||
</target> | </target> | ||||
<target name="extension-test"> | <target name="extension-test"> | ||||
<extension-display file="../../src/ant1compat/jar/ant.jar"/> | |||||
<extension-display> | |||||
<jarlib-display file="../../src/ant1compat/jar/ant.jar"/> | |||||
<jarlib-display> | |||||
<fileset dir="../../"> | <fileset dir="../../"> | ||||
<include name="src/ant1compat/jar/*.jar"/> | <include name="src/ant1compat/jar/*.jar"/> | ||||
<include name="lib/*.jar"/> | <include name="lib/*.jar"/> | ||||
</fileset> | </fileset> | ||||
</extension-display> | |||||
</jarlib-display> | |||||
</target> | </target> | ||||
</project> | </project> |