Skip to content
Browse files

Added readme

  • Loading branch information...
1 parent 307ac81 commit 8a10354cc011426e80edab58f05d30605ef0d208 @jkennedy1980 committed May 5, 2011
Showing with 25 additions and 0 deletions.
  1. +10 −0 README
  2. +15 −0 pom.xml
View
10 README
@@ -0,0 +1,10 @@
+# Objective-C CPD Language
+
+This jar can be used in conjunction with PMD/CPD to scan for copy and pasted code within
+XCode projects. To use this language definition, you need to add the jar to your
+PMD/CPD classpath and provide a --language directive indicating that you are scanning
+Objective-C code. Here is a command line example:
+
+java -Xmx512m -classpath asm-3.1.jar:jaxen-1.1.1.jar:pmd-4.2.5.jar:ObjCLanguage-0.0.1-SNAPSHOT.jar net.sourceforge.pmd.cpd.CPD --minimum-tokens 100 --files [Path to XCode project classes] --language ObjectiveC --encoding UTF-8 --format net.sourceforge.pmd.cpd.XMLRenderer
+
+<http://pmd.sourceforge.net/cpd.html>
View
15 pom.xml
@@ -12,6 +12,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <packaging>jar</packaging>
</properties>
<build>
@@ -25,8 +26,21 @@
<target>1.6</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>false</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
</build>
+
<dependencies>
<dependency>
<groupId>pmd</groupId>
@@ -41,4 +55,5 @@
<scope>test</scope>
</dependency>
</dependencies>
+
</project>

0 comments on commit 8a10354

Please sign in to comment.
Something went wrong with that request. Please try again.