forked from phoedos/pmd
Upgrading to PMD 1.2.2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2308 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
<classpathentry kind="src" path="src/"/>
|
<classpathentry kind="src" path="src/"/>
|
||||||
<classpathentry kind="lib" path="lib/log4j-1.2.8.jar"/>
|
<classpathentry kind="lib" path="lib/log4j-1.2.8.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/commons-logging.jar"/>
|
<classpathentry kind="lib" path="lib/commons-logging.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/pmd-1.2.1.jar"/>
|
<classpathentry kind="lib" path="lib/pmd-1.2.2.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/jaxen-core-1.0-fcs.jar"/>
|
<classpathentry kind="lib" path="lib/jaxen-core-1.0-fcs.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/saxpath-1.0-fcs.jar"/>
|
<classpathentry kind="lib" path="lib/saxpath-1.0-fcs.jar"/>
|
||||||
<classpathentry kind="var"
|
<classpathentry kind="var"
|
||||||
|
BIN
pmd-eclipse/lib/pmd-1.2.2.jar
Normal file
BIN
pmd-eclipse/lib/pmd-1.2.2.jar
Normal file
Binary file not shown.
@ -12,7 +12,7 @@
|
|||||||
</library>
|
</library>
|
||||||
<library name="lib/log4j-1.2.8.jar"/>
|
<library name="lib/log4j-1.2.8.jar"/>
|
||||||
<library name="lib/commons-logging.jar"/>
|
<library name="lib/commons-logging.jar"/>
|
||||||
<library name="lib/pmd-1.2.1.jar"/>
|
<library name="lib/pmd-1.2.2.jar"/>
|
||||||
<library name="lib/jaxen-core-1.0-fcs.jar"/>
|
<library name="lib/jaxen-core-1.0-fcs.jar"/>
|
||||||
<library name="lib/saxpath-1.0-fcs.jar"/>
|
<library name="lib/saxpath-1.0-fcs.jar"/>
|
||||||
</runtime>
|
</runtime>
|
||||||
|
@ -4,9 +4,9 @@ import java.io.OutputStream;
|
|||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
import net.sourceforge.pmd.Rule;
|
import net.sourceforge.pmd.Rule;
|
||||||
import net.sourceforge.pmd.RuleProperties;
|
|
||||||
import net.sourceforge.pmd.RuleSet;
|
import net.sourceforge.pmd.RuleSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,6 +18,9 @@ import net.sourceforge.pmd.RuleSet;
|
|||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*
|
*
|
||||||
* $Log$
|
* $Log$
|
||||||
|
* Revision 1.2 2003/10/14 21:26:32 phherlin
|
||||||
|
* Upgrading to PMD 1.2.2
|
||||||
|
*
|
||||||
* Revision 1.1 2003/06/30 20:16:06 phherlin
|
* Revision 1.1 2003/06/30 20:16:06 phherlin
|
||||||
* Redesigning plugin configuration
|
* Redesigning plugin configuration
|
||||||
*
|
*
|
||||||
@ -161,12 +164,11 @@ public class RuleSetWriter {
|
|||||||
m_line.append("<properties>");
|
m_line.append("<properties>");
|
||||||
outputLine();
|
outputLine();
|
||||||
indent();
|
indent();
|
||||||
RuleProperties properties = rule.getProperties();
|
Properties properties = rule.getProperties();
|
||||||
for(Enumeration keys = properties.keys(); keys.hasMoreElements(); outputLine())
|
for(Enumeration keys = properties.keys(); keys.hasMoreElements(); outputLine())
|
||||||
{
|
{
|
||||||
String name = (String)keys.nextElement();
|
String name = (String)keys.nextElement();
|
||||||
String value = properties.getValue(name);
|
String value = properties.getProperty(name);
|
||||||
String valueType = properties.getValueType(name);
|
|
||||||
setupNewLine();
|
setupNewLine();
|
||||||
m_line.append("<property name=\"");
|
m_line.append("<property name=\"");
|
||||||
m_line.append(name);
|
m_line.append(name);
|
||||||
@ -184,8 +186,6 @@ public class RuleSetWriter {
|
|||||||
} else {
|
} else {
|
||||||
m_line.append(" value=\"");
|
m_line.append(" value=\"");
|
||||||
m_line.append(value);
|
m_line.append(value);
|
||||||
m_line.append("\" type=\"");
|
|
||||||
m_line.append(valueType);
|
|
||||||
m_line.append("\"/>");
|
m_line.append("\"/>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ import net.sourceforge.pmd.Rule;
|
|||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*
|
*
|
||||||
* $Log$
|
* $Log$
|
||||||
|
* Revision 1.2 2003/10/14 21:26:32 phherlin
|
||||||
|
* Upgrading to PMD 1.2.2
|
||||||
|
*
|
||||||
* Revision 1.1 2003/06/30 20:16:06 phherlin
|
* Revision 1.1 2003/06/30 20:16:06 phherlin
|
||||||
* Redesigning plugin configuration
|
* Redesigning plugin configuration
|
||||||
*
|
*
|
||||||
@ -58,14 +61,6 @@ public class RuleProperty {
|
|||||||
return property;
|
return property;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the type.
|
|
||||||
* @return String
|
|
||||||
*/
|
|
||||||
public String getType() {
|
|
||||||
return rule.getProperties().getValueType(property);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the value.
|
* Returns the value.
|
||||||
* @return String
|
* @return String
|
||||||
@ -79,7 +74,7 @@ public class RuleProperty {
|
|||||||
* @param booleanValue The booleanValue to set
|
* @param booleanValue The booleanValue to set
|
||||||
*/
|
*/
|
||||||
public void setBooleanValue(boolean booleanValue) {
|
public void setBooleanValue(boolean booleanValue) {
|
||||||
rule.getProperties().setValue(property, String.valueOf(booleanValue));
|
rule.getProperties().setProperty(property, String.valueOf(booleanValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -87,7 +82,7 @@ public class RuleProperty {
|
|||||||
* @param doubleValue The doubleValue to set
|
* @param doubleValue The doubleValue to set
|
||||||
*/
|
*/
|
||||||
public void setDoubleValue(double doubleValue) {
|
public void setDoubleValue(double doubleValue) {
|
||||||
rule.getProperties().setValue(property, String.valueOf(doubleValue));
|
rule.getProperties().setProperty(property, String.valueOf(doubleValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,15 +90,7 @@ public class RuleProperty {
|
|||||||
* @param integerValue The integerValue to set
|
* @param integerValue The integerValue to set
|
||||||
*/
|
*/
|
||||||
public void setIntegerValue(int integerValue) {
|
public void setIntegerValue(int integerValue) {
|
||||||
rule.getProperties().setValue(property, String.valueOf(integerValue));
|
rule.getProperties().setProperty(property, String.valueOf(integerValue));
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the type.
|
|
||||||
* @param type The type to set
|
|
||||||
*/
|
|
||||||
public void setType(String type) {
|
|
||||||
rule.getProperties().setValueType(property, type);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -111,7 +98,7 @@ public class RuleProperty {
|
|||||||
* @param value The value to set
|
* @param value The value to set
|
||||||
*/
|
*/
|
||||||
public void setValue(String value) {
|
public void setValue(String value) {
|
||||||
rule.getProperties().setValue(property, value);
|
rule.getProperties().setProperty(property, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user