Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JarAnalyzer Source Code Files
Apache Ant Source Code Files are inside the JarAnalyzer source package
like JarAnalyzer-src-1.2.zip.
Unzip the source package and go to the "src" sub-directory,
you will see source code files.
Here is the list of Java source code files of the JarAnalyzer 1.2 in \Users\fyicenter\JarAnalyzer\src:
✍: FYIcenter.com
⏎ com/kirkk/analyzer/textui/JarAnalyzerTask.java
package com.kirkk.analyzer.textui;
import java.io.File;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
/*
* Very simple ant task for the JarAnalyzer
* http://www.kirkk.com/wiki/wiki.php/Main/JarAnalyzer
*/
public class JarAnalyzerTask extends Task
{
private File srcdir;
private File destfile;
private String packageFilter;
private String jarFilter;
private String summaryclass;
public void setJarFilter(String jarFilter) {
this.jarFilter = jarFilter;
}
public void setPackageFilter(String packageFilter) {
this.packageFilter = packageFilter;
}
public void setSrcdir(File srcdir)
{
this.srcdir = srcdir;
}
public void setDestfile(File destfile)
{
this.destfile = destfile;
}
public void setSummaryclass(String summaryclass)
{
this.summaryclass = summaryclass;
}
public void execute() throws BuildException
{
validateAttributes();
try
{
Class clazz = Class.forName(summaryclass);
Summary summary = (Summary)clazz.newInstance();
summary.createSummary(srcdir, destfile, packageFilter, jarFilter);
log(destfile + " successfully created");
}
catch(Exception exc)
{
throw new BuildException(exc);
}
}
private void validateAttributes()
{
if(null == srcdir)
{
throw new BuildException("Missing srcdir");
}
if(null == destfile)
{
throw new BuildException("Missing destfile");
}
if(!(srcdir.exists() && srcdir.isDirectory()))
{
throw new BuildException("srcdir must be a valid directory");
}
if(destfile.isDirectory())
{
throw new BuildException("srcdir must be a file");
}
if(null == summaryclass)
{
throw new BuildException("Missing summaryclass");
}
}
}
⏎ com/kirkk/analyzer/textui/JarAnalyzerTask.java
Or download all of them as a single archive file:
File name: JarAnalyzer-1.20-fyi.zip File size: 19949 bytes Release date: 2007-08-03 Download
⇐ Download JarAnalyzer Source Package
2021-07-01, ≈15🔥, 0💬
Popular Posts:
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
commons-collections4-4.4 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
What Is poi-3.5.jar - Part 2? poi-3.5.jar is one of the JAR files for Apache POI 3.5, which provides...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....