forked from phoedos/pmd
Removed Xalan jars. Since we're using JDK 1.4 we can just use javax.xml.blah. Note the Designer FIXME; still need to take care of that. But this trims things down quite nicely; yay JDK 1.4!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4776 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1 +1 @@
|
||||
java -cp ../build;../lib/asm-3.0.jar;../lib/pmd-3.8.jar;../lib/xercesImpl-2.6.2.jar;../lib/xmlParserAPIs-2.6.2.jar;../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.viewer.Viewer
|
||||
java -cp ../build;../lib/asm-3.0.jar;../lib/pmd-3.8.jar;../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.viewer.Viewer
|
||||
|
@ -1 +1 @@
|
||||
java -cp ../build:../lib/asm-3.0.jar:../lib/pmd-3.8.jar:../lib/xercesImpl-2.6.2.jar:../lib/xmlParserAPIs-2.6.2.jar:../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.viewer.Viewer
|
||||
java -cp ../build:../lib/asm-3.0.jar:../lib/pmd-3.8.jar:../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.viewer.Viewer
|
||||
|
@ -14,8 +14,6 @@
|
||||
<pathelement location="${dir.build}" />
|
||||
<fileset dir="${dir.lib}">
|
||||
<include name="jaxen-1.1-beta-10.jar" />
|
||||
<include name="xercesImpl-2.6.2.jar" />
|
||||
<include name="xmlParserAPIs-2.6.2.jar" />
|
||||
<include name="asm-3.0.jar" />
|
||||
</fileset>
|
||||
</path>
|
||||
|
@ -1 +1 @@
|
||||
java -cp ../build;../lib/asm-3.0.jar;../lib/pmd-3.8.jar;../lib/xercesImpl-2.6.2.jar;../lib/xmlParserAPIs-2.6.2.jar;../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.designer.Designer
|
||||
java -cp ../build;../lib/asm-3.0.jar;../lib/pmd-3.8.jar;../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.designer.Designer
|
||||
|
@ -8,8 +8,6 @@ set CLASSPATH=../build/
|
||||
set CLASSPATH=%CLASSPATH%;../
|
||||
set CLASSPATH=%CLASSPATH%;../lib/asm-3.0.jar
|
||||
set CLASSPATH=%CLASSPATH%;../lib/jaxen-1.1-beta-10.jar
|
||||
set CLASSPATH=%CLASSPATH%;../lib/xercesImpl-2.6.2.jar
|
||||
set CLASSPATH=%CLASSPATH%;../lib/xmlParserAPIs-2.6.2.jar
|
||||
set CLASSPATH=%CLASSPATH%;c:\javacc2.1\bin\lib\JavaCC.zip
|
||||
set CLASSPATH=%CLASSPATH%;c:\ant\lib\ant.jar
|
||||
set CLASSPATH=%CLASSPATH%;c:\ant\lib\junit.jar
|
||||
|
@ -21,7 +21,8 @@ Applied patch 1583167 - Better test code management. Internal JUnits can now be
|
||||
Implemented RFE 1566313 - Command Line now takes minimumpriority attribute to filter out rulesets
|
||||
PMD now requires JDK 1.4 to run
|
||||
- PMD will still analyze code from earlier JDKs
|
||||
- PMD now uses the built-in JDK 1.4 regex utils vs Jakarta ORO
|
||||
- PMD now uses the built-in JDK 1.4 regex utils vs Jakarta ORO
|
||||
- PMD now uses the JDK javax.xml APIs rather than being hardcoded to use Xalan
|
||||
SummaryHTML Report changes from Brent Fisher - now contains linePrefix to support source output from javadoc using "linksource"
|
||||
Fixed CSVRenderer - had flipped line and priority columns
|
||||
Fixed bug in Ant task - CSV reports were being output as text.
|
||||
|
@ -33,7 +33,7 @@ cp ../LICENSE.txt changelog.txt ~/tmp/pmd-3.8/etc
|
||||
cd ../bin/
|
||||
cp pmd.* cygwin-run.sh build.xml cpd.sh cpdgui.bat designer.* ~/tmp/pmd-3.8/bin
|
||||
cd ../etc/
|
||||
cp ../lib/pmd-3.8.jar ../lib/asm-3.0.jar ../lib/xmlParserAPIs-2.6.2.jar ../lib/xercesImpl-2.6.2.jar ../lib/jaxen-1.1-beta-10.jar ~/tmp/pmd-3.8/lib/
|
||||
cp ../lib/pmd-3.8.jar ../lib/asm-3.0.jar ../lib/jaxen-1.1-beta-10.jar ~/tmp/pmd-3.8/lib/
|
||||
mkdir ~/tmp/pmd-3.8/etc/xslt
|
||||
cp xslt/*.xslt xslt/*.js xslt/*.gif xslt/*.css ~/tmp/pmd-3.8/etc/xslt/
|
||||
cp -R ../target/docs ~/tmp/pmd-3.8
|
||||
|
Binary file not shown.
Binary file not shown.
@ -213,18 +213,8 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<id>asm</id>
|
||||
<version>3.0_rc1</version>
|
||||
<version>3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
<version>2.6.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xmlParserAPIs</artifactId>
|
||||
<version>2.6.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -5,12 +5,15 @@ import net.sourceforge.pmd.dfa.IDataFlowNode;
|
||||
import net.sourceforge.pmd.jaxen.Attribute;
|
||||
import net.sourceforge.pmd.jaxen.DocumentNavigator;
|
||||
import net.sourceforge.pmd.symboltable.Scope;
|
||||
import org.apache.xerces.dom.DocumentImpl;
|
||||
//import org.apache.xerces.dom.DocumentImpl;
|
||||
import org.jaxen.BaseXPath;
|
||||
import org.jaxen.JaxenException;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
@ -231,9 +234,15 @@ public abstract class SimpleNode implements Node {
|
||||
}
|
||||
|
||||
public Document asXml() {
|
||||
Document document = new DocumentImpl();
|
||||
appendElement(document);
|
||||
return document;
|
||||
try {
|
||||
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
|
||||
DocumentBuilder db = dbf.newDocumentBuilder();
|
||||
Document document = db.newDocument();
|
||||
appendElement(document);
|
||||
return document;
|
||||
} catch (ParserConfigurationException pce) {
|
||||
throw new RuntimeException(pce);
|
||||
}
|
||||
}
|
||||
|
||||
protected void appendElement(org.w3c.dom.Node parentNode) {
|
||||
|
@ -20,8 +20,6 @@ import net.sourceforge.pmd.jsp.ast.JspCharStream;
|
||||
import net.sourceforge.pmd.jsp.ast.JspParser;
|
||||
import net.sourceforge.pmd.util.NumericConstants;
|
||||
import net.sourceforge.pmd.util.StringUtil;
|
||||
import org.apache.xml.serialize.OutputFormat;
|
||||
import org.apache.xml.serialize.XMLSerializer;
|
||||
import org.jaxen.BaseXPath;
|
||||
import org.jaxen.JaxenException;
|
||||
import org.jaxen.XPath;
|
||||
@ -630,11 +628,14 @@ public class Designer implements ClipboardOwner {
|
||||
* @throws java.io.IOException
|
||||
*/
|
||||
private String getXmlString(SimpleNode node) throws IOException {
|
||||
/*
|
||||
StringWriter writer = new StringWriter();
|
||||
XMLSerializer xmlSerializer = new XMLSerializer(writer, new OutputFormat("XML", "UTF-8", true));
|
||||
xmlSerializer.asDOMSerializer();
|
||||
xmlSerializer.serialize(node.asXml());
|
||||
return writer.toString();
|
||||
*/
|
||||
return "FIXME"; // FIXME
|
||||
}
|
||||
|
||||
public void lostOwnership(Clipboard clipboard, Transferable contents) {
|
||||
|
@ -348,8 +348,8 @@ selecting the "Ask for Directory" checkbox.</p>
|
||||
<LI>Expand the <B>Tools</B> branch (if not already) by clicking on the '<CODE>+</CODE>' directly to its left.</LI>
|
||||
<LI>In the expanded list, select <B>PMD directory</B>. This changes the right side of this dialog to the "tool" form.</LI>
|
||||
<LI>In the "tool" form, enter these parameters:<UL>
|
||||
<LI><B>Parameters:</B> <CODE>-classpath D:\java\pmd-3.8\lib\pmd-3.8.jar;D:\java\pmd-3.8\lib\asm-3.0.jar;D:\java\pmd-3.8\lib\jaxen-1.1-beta-10.jar;D:\java\pmd-3.8\lib\xmlParserAPIs-2.6.2.jar; D:\java\pmd-3.8\lib\xercesImpl-2.6.2.jar net.sourceforge.pmd.PMD <I><B>$FileDir</B></I> net.sourceforge.pmd.renderers.TextPadRenderer E:\directory\my_pmd_ruleset.xml -debug</CODE>
|
||||
<BR/>(<I>Eliminate the spaces following both '<CODE>jaxen-1.1-beta-10.jar;</CODE>' and '<CODE>xmlParserAPIs-2.6.2.jar;</CODE>' and '<CODE>asm-3.0.jar;</CODE>'. They are there to prevent the text from exceeding the right side of your screen</I>)</LI>
|
||||
<LI><B>Parameters:</B> <CODE>-classpath D:\java\pmd-3.8\lib\pmd-3.8.jar;D:\java\pmd-3.8\lib\asm-3.0.jar;D:\java\pmd-3.8\lib\jaxen-1.1-beta-10.jar net.sourceforge.pmd.PMD <I><B>$FileDir</B></I> net.sourceforge.pmd.renderers.TextPadRenderer E:\directory\my_pmd_ruleset.xml -debug</CODE>
|
||||
<BR/>(<I>Eliminate the spaces following both '<CODE>jaxen-1.1-beta-10.jar;</CODE>' and '<CODE>asm-3.0.jar;</CODE>'. They are there to prevent the text from exceeding the right side of your screen</I>)</LI>
|
||||
<LI><B>Initial Folder:</B> <CODE>$FileDir</CODE></LI>
|
||||
<LI><B>Save all documents first:</B> <CODE>Checked</CODE></LI>
|
||||
<LI><B>Capture output:</B> <CODE>Checked</CODE></LI>
|
||||
|
@ -31,8 +31,7 @@ C:\tmp\pmd-3.8\pmd\bin>
|
||||
|
||||
<li>If you are want to run PMD without the batch file, you can do a:</li>
|
||||
<source>
|
||||
C:\data\pmd\pmd>java -cp lib\pmd-3.8.jar;lib\xercesImpl-2.6.2.jar;
|
||||
lib\xmlParserAPIs-2.6.2.jar;lib\jaxen-1.1-beta-10.jar;lib\asm-3.0.jar
|
||||
C:\data\pmd\pmd>java -cp lib\pmd-3.8.jar;lib\jaxen-1.1-beta-10.jar;lib\asm-3.0.jar
|
||||
net.sourceforge.pmd.PMD
|
||||
c:\j2sdk1.4.1_01\src\java\lang xml
|
||||
rulesets/imports.xml
|
||||
|
Reference in New Issue
Block a user