flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [40/46] FlexPMD Donation from Adobe Systems Inc
Date Fri, 25 Apr 2014 06:18:39 GMT
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/EmptyTestFunctionStatus.as
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/EmptyTestFunctionStatus.as b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/EmptyTestFunctionStatus.as
new file mode 100644
index 0000000..c88d844
--- /dev/null
+++ b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/EmptyTestFunctionStatus.as
@@ -0,0 +1,36 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flexunit.flexui.data.filter
+{
+   import flexunit.flexui.controls.FlexUnitLabels;
+   import flexunit.flexui.data.TestFunctionRowData;
+   
+   public class EmptyTestFunctionStatus implements ITestFunctionStatus
+   {
+      public function isTestFunctionVisible( test : TestFunctionRowData ) : Boolean
+      {
+         return test.assertionsMade == 0;
+      }
+      
+      public function get label() : String
+      {
+         return FlexUnitLabels.EMPTY;
+      }
+   }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ErrorTestFunctionStatus.as
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ErrorTestFunctionStatus.as b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ErrorTestFunctionStatus.as
new file mode 100644
index 0000000..55ad184
--- /dev/null
+++ b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ErrorTestFunctionStatus.as
@@ -0,0 +1,36 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flexunit.flexui.data.filter
+{
+   import flexunit.flexui.controls.FlexUnitLabels;
+   import flexunit.flexui.data.TestFunctionRowData;
+
+   public class ErrorTestFunctionStatus implements ITestFunctionStatus
+   {
+      public function isTestFunctionVisible( test : TestFunctionRowData ) : Boolean
+      {
+         return ! test.testSuccessful;
+      }
+      
+      public function get label() : String
+      {
+         return FlexUnitLabels.FAILURES_AND_ERRORS;
+      }
+   }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ITestFunctionStatus.as
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ITestFunctionStatus.as b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ITestFunctionStatus.as
new file mode 100644
index 0000000..fe17266
--- /dev/null
+++ b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ITestFunctionStatus.as
@@ -0,0 +1,28 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flexunit.flexui.data.filter
+{
+   import flexunit.flexui.data.TestFunctionRowData;
+   
+   public interface ITestFunctionStatus
+   {
+      function isTestFunctionVisible( test : TestFunctionRowData ) : Boolean;
+      function get label() : String;
+   }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/TestfFunctionStatuses.as
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/TestfFunctionStatuses.as b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/TestfFunctionStatuses.as
new file mode 100644
index 0000000..1f21549
--- /dev/null
+++ b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/TestfFunctionStatuses.as
@@ -0,0 +1,32 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flexunit.flexui.data.filter
+{
+   public class TestfFunctionStatuses
+   {
+      public static const ALL : ITestFunctionStatus = new AllTestFunctionStatus();
+      public static const EMPTY : ITestFunctionStatus = new EmptyTestFunctionStatus();
+      public static const ERRORS_AND_FAILURES : ITestFunctionStatus = new ErrorTestFunctionStatus();
+      
+      public static function toArray() : Array
+      {
+         return [ ALL, EMPTY, ERRORS_AND_FAILURES ];
+      }
+   }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationView.mxml
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationView.mxml b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationView.mxml
new file mode 100644
index 0000000..2ff3397
--- /dev/null
+++ b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationView.mxml
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Panel 
+   xmlns:mx="http://www.adobe.com/2006/mxml"
+   xmlns:ns1="com.adobe.ac.anthology.view.iteration.*"
+   xmlns:component="com.adobe.ac.anthology.utils.components.*"
+   title="MyIterations" 
+   horizontalAlign="left"
+   visible="{ model.selectedRelease != null }">
+
+    <mx:Script>
+    <![CDATA[
+       import com.adobe.ac.anthology.model.object.Iteration;
+       import com.adobe.ac.anthology.model.AnthologyModelLocator;
+       import com.adobe.ac.anthology.model.ProjectModel;
+      import com.adobe.cairngorm.business.ServiceLocator;
+      import com.adobe.ac.anthology.control.event.iteration.*;
+      import com.adobe.ac.anthology.utils.FormTools;
+      
+      [Bindable]
+      private var model : ProjectModel = AnthologyModelLocator.instance.projectModel;
+      
+      private function addIteration() : void
+ 	   {
+ 	      model.selectedRelease.addIteration( new Iteration() );
+ 	   }
+ 	   
+ 	   private function changeIteration() : void
+ 	   {
+ 	      model.selectedIteration = dg.selectedItem as Iteration;
+ 	   }
+
+    ]]>
+    </mx:Script>
+    <mx:HBox height="320"> 
+    
+    <ns1:DetailedIterationWithControl
+       id="detailedIterationForm"
+       iteration="{ model.selectedIteration }" />
+	     
+    <mx:VRule
+       height="100%"
+       strokeColor="#DDDDDD"/>   
+ 
+    <mx:VBox
+       paddingTop="15"
+       paddingLeft="15"
+       paddingRight="15"
+       paddingBottom="15">
+     
+      <mx:Text text="List of Iterations"/>
+      
+      <component:ScrawlGrid
+            id="dg"
+            dataProvider="{ model.selectedRelease.iterations }"
+            width="200" height="220"
+            change="changeIteration()">
+            
+         <component:columns>
+               
+            <mx:DataGridColumn
+               dataField="iterationNumber"
+               headerText="#"/>
+               
+            <mx:DataGridColumn
+               dataField="startDate"
+               headerText="Start Date"
+               editable="false"/>
+               
+            <mx:DataGridColumn 
+               dataField="endDate" 
+               headerText="End Date"/>
+               
+         </component:columns>
+         
+      </component:ScrawlGrid>
+      
+      <mx:HBox width="200">
+      
+         <mx:Button label="Add Iteration"
+            click="addIteration()"/>
+            
+      </mx:HBox>
+  
+    </mx:VBox>
+ 
+  </mx:HBox>   
+</mx:Panel>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationsList.mxml
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationsList.mxml b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationsList.mxml
new file mode 100644
index 0000000..317d24d
--- /dev/null
+++ b/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationsList.mxml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<component:ScrawlGrid xmlns:mx="http://www.adobe.com/2006/mxml"
+   xmlns:component="com.adobe.ac.anthology.utils.components.*">
+   <!--
+       lalala 
+       -->
+   <mx:Script>
+      <![CDATA[
+         import com.adobe.ac.anthology.model.object.Iteration;
+         
+         import mx.collections.ArrayCollection;
+         
+         
+         private var _selectedIteration : Iteration;
+         
+         public function set selectedIteration(value : Iteration) : void
+         {
+           for (var i : uint = 0; i < (dataProvider as ArrayCollection).length; i++) {
+         		var currentId : uint = dataProvider[i].id;
+         		if (currentId == value.id) {
+         			selectedItem = dataProvider[i];
+         			return;
+         		}	
+         	}
+         }
+         
+         private function displayTitle(item : Object, column : DataGridColumn) : String
+         {
+            var i  : Iteration = Iteration( item );
+            
+            return "#" + i.iterationNumber.toString() + " " + i.status;
+         }
+         
+      ]]>
+   </mx:Script>
+   
+   <component:columns>
+   
+      <mx:DataGridColumn dataField="iterationNumber" headerText="Iterations" labelFunction="displayTitle"/>
+      
+   </component:columns>   
+   
+</component:ScrawlGrid>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/build.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/build.xml b/FlexPMD/custom-ruleset/build.xml
new file mode 100644
index 0000000..e81afc3
--- /dev/null
+++ b/FlexPMD/custom-ruleset/build.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<!-- ====================================================================== -->
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above.        -->
+<!-- ====================================================================== -->
+
+<project name="custom-ruleset" default="package" basedir=".">
+
+  <!-- ====================================================================== -->
+  <!-- Import maven-build.xml into the current project                        -->
+  <!-- ====================================================================== -->
+
+  <import file="maven-build.xml"/>
+  
+  <!-- ====================================================================== -->
+  <!-- Help target                                                            -->
+  <!-- ====================================================================== -->
+
+  <target name="help">
+    <echo message="Please run: $ant -projecthelp"/>
+  </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/maven-build.properties
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/maven-build.properties b/FlexPMD/custom-ruleset/maven-build.properties
new file mode 100644
index 0000000..2d5b879
--- /dev/null
+++ b/FlexPMD/custom-ruleset/maven-build.properties
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#Generated by Maven Ant Plugin - DO NOT EDIT THIS FILE!
+#Wed Jul 07 07:49:52 CEST 2010
+maven.settings.offline=false
+maven.build.finalName=custom-ruleset-0.0.1-SNAPSHOT
+maven.build.resourceDir.0=src/main/resources
+maven.build.testOutputDir=${maven.build.dir}/test-classes
+maven.build.testResourceDir.0=src/test/resources
+maven.reporting.outputDirectory=${maven.build.dir}/site
+project.build.sourceEncoding=UTF-8
+compileSource=1.5
+maven.build.srcDir.0=src/main/java
+project.build.directory=${maven.build.dir}
+maven.test.reports=${maven.build.dir}/test-reports
+maven.build.dir=target
+project.build.outputDirectory=${maven.build.outputDir}
+maven.build.testDir.0=src/test/java
+maven.settings.interactiveMode=true
+maven.repo.local=${user.home}/.m2/repository
+maven.build.outputDir=${maven.build.dir}/classes
+flexpmd.version=1.2-SNAPSHOT

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/maven-build.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/maven-build.xml b/FlexPMD/custom-ruleset/maven-build.xml
new file mode 100644
index 0000000..4ee11a5
--- /dev/null
+++ b/FlexPMD/custom-ruleset/maven-build.xml
@@ -0,0 +1,622 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<!-- ====================================================================== -->
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above.        -->
+<!-- ====================================================================== -->
+
+<!-- ====================================================================== -->
+<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
+<!-- ====================================================================== -->
+<!--                                                                        -->
+<!-- Any modifications will be overwritten.                                 -->
+<!--                                                                        -->
+<!-- Generated by Maven Ant Plugin on 7/7/10 7:49 AM                        -->
+<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/                 -->
+<!--                                                                        -->
+<!-- ====================================================================== -->
+
+<project name="custom-ruleset-from-maven" default="package" basedir=".">
+
+  <!-- ====================================================================== -->
+  <!-- Build environment properties                                           -->
+  <!-- ====================================================================== -->
+
+  <property file="${user.home}/.m2/maven.properties"/>
+  <property file="maven-build.properties"/>
+
+  <property name="maven.build.finalName" value="custom-ruleset-0.0.1-SNAPSHOT"/>
+  <property name="maven.build.dir" value="target"/>
+  <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
+  <property name="maven.build.srcDir.0" value="src/main/java"/>
+  <property name="maven.build.resourceDir.0" value="src/main/resources"/>
+  <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
+  <property name="maven.build.testDir.0" value="src/test/java"/>
+  <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
+  <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
+  <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
+
+  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
+  <property name="maven.settings.offline" value="false"/>
+  <property name="maven.settings.interactiveMode" value="true"/>
+
+  <!-- ====================================================================== -->
+  <!-- Defining classpaths                                                    -->
+  <!-- ====================================================================== -->
+
+  <path id="build.classpath">
+    <fileset dir="${maven.repo.local}">
+      <include name="com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT/flex-pmd-core-1.2-SNAPSHOT.jar"/>
+      <include name="doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar"/>
+      <include name="oro/oro/2.0.7/oro-2.0.7.jar"/>
+      <include name="plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar"/>
+      <include name="doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar"/>
+      <include name="com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT/flex-pmd-ruleset-api-1.2-SNAPSHOT.jar"/>
+      <include name="commons-lang/commons-lang/2.4/commons-lang-2.4.jar"/>
+      <include name="com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT/as3-plugin-utils-1.2-SNAPSHOT.jar"/>
+      <include name="junit/junit/4.7/junit-4.7.jar"/>
+      <include name="pmd/pmd/4.2.5/pmd-4.2.5.jar"/>
+      <include name="ant/ant/1.6/ant-1.6.jar"/>
+      <include name="jaxen/jaxen/1.1.1/jaxen-1.1.1.jar"/>
+      <include name="dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"/>
+      <include name="jdom/jdom/1.0/jdom-1.0.jar"/>
+      <include name="xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar"/>
+      <include name="xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/>
+      <include name="xom/xom/1.0/xom-1.0.jar"/>
+      <include name="xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar"/>
+      <include name="xalan/xalan/2.6.0/xalan-2.6.0.jar"/>
+      <include name="com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar"/>
+      <include name="asm/asm/3.1/asm-3.1.jar"/>
+      <include name="com/adobe/ac/as3-parser/1.2-SNAPSHOT/as3-parser-1.2-SNAPSHOT.jar"/>
+      <include name="com/adobe/ac/as3-parser-api/1.2-SNAPSHOT/as3-parser-api-1.2-SNAPSHOT.jar"/>
+      <include name="com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT/flex-pmd-files-1.2-SNAPSHOT.jar"/>
+    </fileset>
+  </path>
+  <path id="build.test.classpath">
+    <fileset dir="${maven.repo.local}">
+      <include name="com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT/flex-pmd-core-1.2-SNAPSHOT.jar"/>
+      <include name="doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar"/>
+      <include name="oro/oro/2.0.7/oro-2.0.7.jar"/>
+      <include name="plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar"/>
+      <include name="doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar"/>
+      <include name="com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT/flex-pmd-ruleset-api-1.2-SNAPSHOT.jar"/>
+      <include name="commons-lang/commons-lang/2.4/commons-lang-2.4.jar"/>
+      <include name="com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT/as3-plugin-utils-1.2-SNAPSHOT.jar"/>
+      <include name="junit/junit/4.7/junit-4.7.jar"/>
+      <include name="pmd/pmd/4.2.5/pmd-4.2.5.jar"/>
+      <include name="ant/ant/1.6/ant-1.6.jar"/>
+      <include name="jaxen/jaxen/1.1.1/jaxen-1.1.1.jar"/>
+      <include name="dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"/>
+      <include name="jdom/jdom/1.0/jdom-1.0.jar"/>
+      <include name="xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar"/>
+      <include name="xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/>
+      <include name="xom/xom/1.0/xom-1.0.jar"/>
+      <include name="xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar"/>
+      <include name="xalan/xalan/2.6.0/xalan-2.6.0.jar"/>
+      <include name="com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar"/>
+      <include name="asm/asm/3.1/asm-3.1.jar"/>
+      <include name="com/adobe/ac/as3-parser/1.2-SNAPSHOT/as3-parser-1.2-SNAPSHOT.jar"/>
+      <include name="com/adobe/ac/as3-parser-api/1.2-SNAPSHOT/as3-parser-api-1.2-SNAPSHOT.jar"/>
+      <include name="com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT/flex-pmd-files-1.2-SNAPSHOT.jar"/>
+    </fileset>
+  </path>
+
+  <!-- ====================================================================== -->
+  <!-- Cleaning up target                                                     -->
+  <!-- ====================================================================== -->
+
+  <target name="clean" description="Clean the output directory">
+    <delete dir="${maven.build.dir}"/>
+  </target>
+
+  <!-- ====================================================================== -->
+  <!-- Compilation target                                                     -->
+  <!-- ====================================================================== -->
+
+  <target name="compile" depends="get-deps" description="Compile the code">
+    <mkdir dir="${maven.build.outputDir}"/>
+    <javac destdir="${maven.build.outputDir}" 
+           nowarn="false" 
+           debug="true" 
+           optimize="false" 
+           deprecation="true" 
+           target="1.5" 
+           verbose="false" 
+           fork="false" 
+           source="1.5">
+      <src>
+        <pathelement location="${maven.build.srcDir.0}"/>
+      </src>
+      <classpath refid="build.classpath"/>
+    </javac>
+    <copy todir="${maven.build.outputDir}">
+      <fileset dir="${maven.build.resourceDir.0}"/>
+    </copy>
+  </target>
+
+  <!-- ====================================================================== -->
+  <!-- Test-compilation target                                                -->
+  <!-- ====================================================================== -->
+
+  <target name="compile-tests" 
+          depends="compile" 
+          description="Compile the test code" 
+          unless="maven.test.skip">
+    <mkdir dir="${maven.build.testOutputDir}"/>
+    <javac destdir="${maven.build.testOutputDir}" 
+           nowarn="false" 
+           debug="true" 
+           optimize="false" 
+           deprecation="true" 
+           target="1.5" 
+           verbose="false" 
+           fork="false" 
+           source="1.5">
+      <src>
+        <pathelement location="${maven.build.testDir.0}"/>
+      </src>
+      <classpath>
+        <path refid="build.test.classpath"/>
+        <pathelement location="${maven.build.outputDir}"/>
+      </classpath>
+    </javac>
+    <copy todir="${maven.build.testOutputDir}">
+      <fileset dir="${maven.build.testResourceDir.0}"/>
+    </copy>
+  </target>
+
+  <!-- ====================================================================== -->
+  <!-- Run all tests                                                          -->
+  <!-- ====================================================================== -->
+
+  <target name="test" 
+          depends="compile-tests, junit-missing" 
+          unless="junit.skipped" 
+          description="Run the test cases">
+    <mkdir dir="${maven.test.reports}"/>
+    <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+      <sysproperty key="basedir" value="."/>
+      <formatter type="xml"/>
+      <formatter type="plain" usefile="false"/>
+      <classpath>
+        <path refid="build.test.classpath"/>
+        <pathelement location="${maven.build.outputDir}"/>
+        <pathelement location="${maven.build.testOutputDir}"/>
+      </classpath>
+      <batchtest todir="${maven.test.reports}" unless="test">
+        <fileset dir="${maven.build.testDir.0}">
+          <include name="**/Test*.java"/>
+          <include name="**/*Test.java"/>
+          <include name="**/*TestCase.java"/>
+          <exclude name="**/*Abstract*Test.java"/>
+        </fileset>
+      </batchtest>
+      <batchtest todir="${maven.test.reports}" if="test">
+        <fileset dir="${maven.build.testDir.0}">
+          <include name="**/${test}.java"/>
+          <exclude name="**/*Abstract*Test.java"/>
+        </fileset>
+      </batchtest>
+    </junit>
+  </target>
+
+  <target name="test-junit-present">
+    <available classname="junit.framework.Test" property="junit.present"/>
+  </target>
+
+  <target name="test-junit-status" 
+          depends="test-junit-present">
+    <condition property="junit.missing">
+      <and>
+        <isfalse value="${junit.present}"/>
+        <isfalse value="${maven.test.skip}"/>
+      </and>
+    </condition>
+    <condition property="junit.skipped">
+      <or>
+        <isfalse value="${junit.present}"/>
+        <istrue value="${maven.test.skip}"/>
+      </or>
+    </condition>
+  </target>
+
+  <target name="junit-missing" 
+          depends="test-junit-status" 
+          if="junit.missing">
+    <echo>=================================== WARNING ===================================</echo>
+    <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
+    <echo>===============================================================================</echo>
+  </target>
+
+  <!-- ====================================================================== -->
+  <!-- Javadoc target                                                         -->
+  <!-- ====================================================================== -->
+
+  <target name="javadoc" description="Generates the Javadoc of the application">
+    <javadoc sourcepath="${maven.build.srcDir.0}" 
+             packagenames="*" 
+             destdir="${maven.reporting.outputDirectory}/apidocs" 
+             access="protected" 
+             old="false" 
+             verbose="false" 
+             version="true" 
+             use="true" 
+             author="true" 
+             splitindex="false" 
+             nodeprecated="false" 
+             nodeprecatedlist="false" 
+             notree="false" 
+             noindex="false" 
+             nohelp="false" 
+             nonavbar="false" 
+             serialwarn="false" 
+             charset="ISO-8859-1" 
+             linksource="false" 
+             breakiterator="false"/>
+  </target>
+
+  <!-- ====================================================================== -->
+  <!-- Package target                                                         -->
+  <!-- ====================================================================== -->
+
+  <target name="package" depends="compile,test" description="Package the application">
+    <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" 
+         compress="true" 
+         index="false" 
+         basedir="${maven.build.outputDir}" 
+         excludes="**/package.html"/>
+  </target>
+
+  <!-- ====================================================================== -->
+  <!-- A dummy target for the package named after the type it creates         -->
+  <!-- ====================================================================== -->
+
+  <target name="jar" depends="package" description="Builds the jar for the application"/>
+
+  <!-- ====================================================================== -->
+  <!-- Download dependencies target                                           -->
+  <!-- ====================================================================== -->
+
+  <target name="test-offline">
+    <condition property="maven.mode.offline">
+      <equals arg1="${maven.settings.offline}" arg2="true"/>
+    </condition>
+  </target>
+
+  <target name="get-deps" 
+          depends="test-offline" 
+          description="Download all dependencies" 
+          unless="maven.mode.offline">
+    <mkdir dir="${maven.repo.local}"/>
+    <mkdir dir="${maven.repo.local}/com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT/flex-pmd-core-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT/flex-pmd-core-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT/flex-pmd-core-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT/flex-pmd-core-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT/flex-pmd-core-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-core/1.2-SNAPSHOT/flex-pmd-core-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/doxia/doxia-core/1.0-alpha-4"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar" 
+         dest="${maven.repo.local}/doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar" 
+         dest="${maven.repo.local}/doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar" 
+         dest="${maven.repo.local}/doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/oro/oro/2.0.7"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//oro/oro/2.0.7/oro-2.0.7.jar" 
+         dest="${maven.repo.local}/oro/oro/2.0.7/oro-2.0.7.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//oro/oro/2.0.7/oro-2.0.7.jar" 
+         dest="${maven.repo.local}/oro/oro/2.0.7/oro-2.0.7.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/oro/oro/2.0.7/oro-2.0.7.jar" 
+         dest="${maven.repo.local}/oro/oro/2.0.7/oro-2.0.7.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/plexus/plexus-utils/1.0.2"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar" 
+         dest="${maven.repo.local}/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar" 
+         dest="${maven.repo.local}/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar" 
+         dest="${maven.repo.local}/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/doxia/doxia-sink-api/1.0-alpha-4"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar" 
+         dest="${maven.repo.local}/doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar" 
+         dest="${maven.repo.local}/doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar" 
+         dest="${maven.repo.local}/doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT/flex-pmd-ruleset-api-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT/flex-pmd-ruleset-api-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT/flex-pmd-ruleset-api-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT/flex-pmd-ruleset-api-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT/flex-pmd-ruleset-api-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-ruleset-api/1.2-SNAPSHOT/flex-pmd-ruleset-api-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/commons-lang/commons-lang/2.4"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//commons-lang/commons-lang/2.4/commons-lang-2.4.jar" 
+         dest="${maven.repo.local}/commons-lang/commons-lang/2.4/commons-lang-2.4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//commons-lang/commons-lang/2.4/commons-lang-2.4.jar" 
+         dest="${maven.repo.local}/commons-lang/commons-lang/2.4/commons-lang-2.4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/commons-lang/commons-lang/2.4/commons-lang-2.4.jar" 
+         dest="${maven.repo.local}/commons-lang/commons-lang/2.4/commons-lang-2.4.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT/as3-plugin-utils-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT/as3-plugin-utils-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT/as3-plugin-utils-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT/as3-plugin-utils-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT/as3-plugin-utils-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-plugin-utils/1.2-SNAPSHOT/as3-plugin-utils-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/junit/junit/4.7"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//junit/junit/4.7/junit-4.7.jar" 
+         dest="${maven.repo.local}/junit/junit/4.7/junit-4.7.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//junit/junit/4.7/junit-4.7.jar" 
+         dest="${maven.repo.local}/junit/junit/4.7/junit-4.7.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/junit/junit/4.7/junit-4.7.jar" 
+         dest="${maven.repo.local}/junit/junit/4.7/junit-4.7.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/pmd/pmd/4.2.5"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//pmd/pmd/4.2.5/pmd-4.2.5.jar" 
+         dest="${maven.repo.local}/pmd/pmd/4.2.5/pmd-4.2.5.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//pmd/pmd/4.2.5/pmd-4.2.5.jar" 
+         dest="${maven.repo.local}/pmd/pmd/4.2.5/pmd-4.2.5.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/pmd/pmd/4.2.5/pmd-4.2.5.jar" 
+         dest="${maven.repo.local}/pmd/pmd/4.2.5/pmd-4.2.5.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/ant/ant/1.6"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//ant/ant/1.6/ant-1.6.jar" 
+         dest="${maven.repo.local}/ant/ant/1.6/ant-1.6.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//ant/ant/1.6/ant-1.6.jar" 
+         dest="${maven.repo.local}/ant/ant/1.6/ant-1.6.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/ant/ant/1.6/ant-1.6.jar" 
+         dest="${maven.repo.local}/ant/ant/1.6/ant-1.6.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/jaxen/jaxen/1.1.1"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//jaxen/jaxen/1.1.1/jaxen-1.1.1.jar" 
+         dest="${maven.repo.local}/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//jaxen/jaxen/1.1.1/jaxen-1.1.1.jar" 
+         dest="${maven.repo.local}/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar" 
+         dest="${maven.repo.local}/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/dom4j/dom4j/1.6.1"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" 
+         dest="${maven.repo.local}/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" 
+         dest="${maven.repo.local}/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" 
+         dest="${maven.repo.local}/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/jdom/jdom/1.0"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//jdom/jdom/1.0/jdom-1.0.jar" 
+         dest="${maven.repo.local}/jdom/jdom/1.0/jdom-1.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//jdom/jdom/1.0/jdom-1.0.jar" 
+         dest="${maven.repo.local}/jdom/jdom/1.0/jdom-1.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/jdom/jdom/1.0/jdom-1.0.jar" 
+         dest="${maven.repo.local}/jdom/jdom/1.0/jdom-1.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/xml-apis/xml-apis/1.3.02"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar" 
+         dest="${maven.repo.local}/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar" 
+         dest="${maven.repo.local}/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar" 
+         dest="${maven.repo.local}/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/xerces/xercesImpl/2.6.2"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" 
+         dest="${maven.repo.local}/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" 
+         dest="${maven.repo.local}/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" 
+         dest="${maven.repo.local}/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/xom/xom/1.0"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//xom/xom/1.0/xom-1.0.jar" 
+         dest="${maven.repo.local}/xom/xom/1.0/xom-1.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//xom/xom/1.0/xom-1.0.jar" 
+         dest="${maven.repo.local}/xom/xom/1.0/xom-1.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/xom/xom/1.0/xom-1.0.jar" 
+         dest="${maven.repo.local}/xom/xom/1.0/xom-1.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" 
+         dest="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" 
+         dest="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" 
+         dest="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/xalan/xalan/2.6.0"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//xalan/xalan/2.6.0/xalan-2.6.0.jar" 
+         dest="${maven.repo.local}/xalan/xalan/2.6.0/xalan-2.6.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//xalan/xalan/2.6.0/xalan-2.6.0.jar" 
+         dest="${maven.repo.local}/xalan/xalan/2.6.0/xalan-2.6.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/xalan/xalan/2.6.0/xalan-2.6.0.jar" 
+         dest="${maven.repo.local}/xalan/xalan/2.6.0/xalan-2.6.0.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/com/ibm/icu/icu4j/2.6.1"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar" 
+         dest="${maven.repo.local}/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar" 
+         dest="${maven.repo.local}/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar" 
+         dest="${maven.repo.local}/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/asm/asm/3.1"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//asm/asm/3.1/asm-3.1.jar" 
+         dest="${maven.repo.local}/asm/asm/3.1/asm-3.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//asm/asm/3.1/asm-3.1.jar" 
+         dest="${maven.repo.local}/asm/asm/3.1/asm-3.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.jar" 
+         dest="${maven.repo.local}/asm/asm/3.1/asm-3.1.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/com/adobe/ac/as3-parser/1.2-SNAPSHOT"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//com/adobe/ac/as3-parser/1.2-SNAPSHOT/as3-parser-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-parser/1.2-SNAPSHOT/as3-parser-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//com/adobe/ac/as3-parser/1.2-SNAPSHOT/as3-parser-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-parser/1.2-SNAPSHOT/as3-parser-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/com/adobe/ac/as3-parser/1.2-SNAPSHOT/as3-parser-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-parser/1.2-SNAPSHOT/as3-parser-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/com/adobe/ac/as3-parser-api/1.2-SNAPSHOT"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//com/adobe/ac/as3-parser-api/1.2-SNAPSHOT/as3-parser-api-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-parser-api/1.2-SNAPSHOT/as3-parser-api-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//com/adobe/ac/as3-parser-api/1.2-SNAPSHOT/as3-parser-api-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-parser-api/1.2-SNAPSHOT/as3-parser-api-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/com/adobe/ac/as3-parser-api/1.2-SNAPSHOT/as3-parser-api-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/as3-parser-api/1.2-SNAPSHOT/as3-parser-api-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <mkdir dir="${maven.repo.local}/com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT"/>
+    <get src="http://svn.sonatype.org/flexmojos/repository//com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT/flex-pmd-files-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT/flex-pmd-files-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://pentagoneci.can.adobe.com:9999/nexus/content/groups/public//com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT/flex-pmd-files-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT/flex-pmd-files-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+    <get src="http://repo1.maven.org/maven2/com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT/flex-pmd-files-1.2-SNAPSHOT.jar" 
+         dest="${maven.repo.local}/com/adobe/ac/flex-pmd-files/1.2-SNAPSHOT/flex-pmd-files-1.2-SNAPSHOT.jar" 
+         usetimestamp="false" 
+         ignoreerrors="true"/>
+  </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/pom.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/pom.xml b/FlexPMD/custom-ruleset/pom.xml
new file mode 100644
index 0000000..529c782
--- /dev/null
+++ b/FlexPMD/custom-ruleset/pom.xml
@@ -0,0 +1,64 @@
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>com.adobe.flexpmd</groupId>
+	<artifactId>custom-ruleset</artifactId>
+	<version>0.0.1-SNAPSHOT</version>
+	<packaging>jar</packaging>
+	<name>Custom FlexPMD ruleset</name>
+
+	<properties>
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+		<compileSource>1.5</compileSource>
+		<flexpmd.version>1.2-SNAPSHOT</flexpmd.version>
+	</properties>
+
+	<dependencies>
+		<dependency>
+			<groupId>com.adobe.ac</groupId>
+			<artifactId>flex-pmd-core</artifactId>
+			<version>${flexpmd.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>com.adobe.ac</groupId>
+			<artifactId>flex-pmd-ruleset-api</artifactId>
+			<version>${flexpmd.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>com.adobe.ac</groupId>
+			<artifactId>flex-pmd-files</artifactId>
+			<version>${flexpmd.version}</version>
+		</dependency>
+	</dependencies>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>${compileSource}</source>
+					<target>${compileSource}</target>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/main/java/com/adobe/flexpmd/custom/MonkeyPatchingRule.java
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/main/java/com/adobe/flexpmd/custom/MonkeyPatchingRule.java b/FlexPMD/custom-ruleset/src/main/java/com/adobe/flexpmd/custom/MonkeyPatchingRule.java
new file mode 100644
index 0000000..8b98e7c
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/main/java/com/adobe/flexpmd/custom/MonkeyPatchingRule.java
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.flexpmd.custom;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import com.adobe.ac.pmd.IFlexViolation;
+import com.adobe.ac.pmd.rules.core.AbstractFlexRule;
+import com.adobe.ac.pmd.rules.core.ViolationPosition;
+import com.adobe.ac.pmd.rules.core.ViolationPriority;
+
+/**
+ * @author xagnetti
+ */
+public class MonkeyPatchingRule extends AbstractFlexRule
+{
+   /*
+    * (non-Javadoc)
+    * @see
+    * com.adobe.ac.pmd.rules.core.AbstractFlexRule#findViolationsInCurrentFile()
+    */
+   @Override
+   protected final List< IFlexViolation > findViolationsInCurrentFile()
+   {
+      final List< IFlexViolation > violations = new ArrayList< IFlexViolation >();
+
+      if ( getCurrentFile().getPackageName().startsWith( "mx." )
+            && !getCurrentFile().getClassName().equals( "Version.as" )
+            && !getCurrentFile().getClassName().endsWith( "Style.as" ) )
+      {
+         addViolation( violations,
+                       new ViolationPosition( 0 ) );
+      }
+      return violations;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see com.adobe.ac.pmd.rules.core.AbstractFlexRule#getDefaultPriority()
+    */
+   @Override
+   protected final ViolationPriority getDefaultPriority()
+   {
+      return ViolationPriority.HIGH;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see
+    * com.adobe.ac.pmd.rules.core.AbstractFlexRule#isConcernedByTheCurrentFile()
+    */
+   @Override
+   protected final boolean isConcernedByTheCurrentFile()
+   {
+      return !getCurrentFile().isMxml();
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/java/com/adobe/flexpmd/custom/MonkeyPatchingRuleTest.java
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/java/com/adobe/flexpmd/custom/MonkeyPatchingRuleTest.java b/FlexPMD/custom-ruleset/src/test/java/com/adobe/flexpmd/custom/MonkeyPatchingRuleTest.java
new file mode 100644
index 0000000..764e375
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/java/com/adobe/flexpmd/custom/MonkeyPatchingRuleTest.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.flexpmd.custom;
+
+import org.junit.Test;
+
+import com.adobe.ac.pmd.rules.core.AbstractFlexRule;
+import com.adobe.ac.pmd.rules.core.AbstractFlexRuleTest;
+import com.adobe.ac.pmd.rules.core.ViolationPosition;
+
+public class MonkeyPatchingRuleTest extends AbstractFlexRuleTest
+{
+   @Test
+   public void testTrue()
+   {
+   }
+
+   @Override
+   protected ExpectedViolation[] getExpectedViolatingFiles()
+   {
+      return new ExpectedViolation[]
+      { new ExpectedViolation( "mx.controls.DateChooser2.as", new ViolationPosition[]
+      { new ViolationPosition( 0 ) } ) };
+   }
+
+   @Override
+   protected AbstractFlexRule getRule()
+   {
+      return new MonkeyPatchingRule();
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/AbstractRowData.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/AbstractRowData.as b/FlexPMD/custom-ruleset/src/test/resources/test/AbstractRowData.as
new file mode 100644
index 0000000..bbf54ce
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/AbstractRowData.as
@@ -0,0 +1,136 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flexUnit.flexui.data
+{
+   import flexunit.flexui.controls.FlexUnitLabelsModelLocator;
+   
+   import mx.binding.utils.ChangeWatcher;
+   import mx.formatters.NumberFormatter;
+   
+   /**
+    * Abstract class representing a row in the test cases tree.
+    * A row can be either a test class (node) or a test case (leaf)
+    */   
+   final public class AbstractRowData
+   {
+      protected var logger : ILogger;
+      public const logger : ILogger;
+                                 public const logger : ILogger = Log.getLogger( "flexUnit.flexui.data.AbstractRowData" );
+                                 public const LOGGER : ILogger = Log.getLogger( "flexUnit.flexui.data.AbstractRowData" );
+                                 public const LOG : ILogger = Log.getLogger( "flexUnit.AbstractRowData" );
+                                 public static const LOG : ILogger = Log.getLogger( "flexUnit.flexui.data.AbstractRowData" );
+                                 public const LOG : ILogger = Log.getLogger( "flexUnit.flexui.data.AbstractRowData" );
+      // public var testIsFailure : Boolean;
+                                 public var objectUse : Object;
+
+      /**
+       * @return the class name from the qualified class name
+       */      
+      /*public function get className() : String
+      {
+         if ( qualifiedClassName )
+         {
+            var splitIndex : int = qualifiedClassName.lastIndexOf( "::" );
+
+            if ( splitIndex >= 0 )
+            {
+               return qualifiedClassName.substring( splitIndex + 2 );
+            }
+         }
+
+         return qualifiedClassName;
+      }*/
+
+      /**
+       * Abstract method. Defined in TestCaseRowData and in TestClassRowData
+       * 
+       * @return the count of assertions which have been made either in average if
+       * the current row is a test class or in total if the current row is a test case
+       */
+       // One line comment
+      public function get assertionsMade() : Number
+      {
+         throw new Error( "TestSummaryRowData::assertionsMade is an abstract method" );
+      }
+
+      public function get failIcon() : Class
+      {
+         throw new Error( "TestSummaryRowData::failIcon is an abstract method" );
+      }
+
+      protected function get passIcon() : Class
+      {
+         throw new Error( "TestSummaryRowData::passIcon is an abstract method" );
+      }
+      
+      /**
+       * Abstract method which allows the legend to be correctly formatted.
+       *  
+       * @return true for the TestClassRowData and false for the TestCaseRowData
+       */      
+      public function get isAverage() : Boolean
+      {
+         throw new Error( "TestSummaryRowData::isAverage is an abstract method" );
+      }
+      
+      public function get formattedAssertionsMade() : String
+      {
+         if(true)
+         {
+         }
+         addEventListener("lalaEvent");
+         CairngormEventDispatcher.getInstance().dispatchEvent(new Event("lalaEvent"));
+         dispatchEvent( new Event( "lalaEvent" ) );
+         dispatchEvent( new Event( EVENT ) );
+         if( true );
+         CairngormEventDispatcher.getInstance().addEventListener(CONSTANT, onHearing);
+         return f.format( assertionsMade );
+      }
+      
+      /**
+       * @return the correcly formatted (no typos) legend for the number of assertions
+       * made.
+       * 
+       * Can return :
+       *  - 0 assertions have been made in average
+       *  - 0 assertions have been made in total
+       *  - 1 assertion has been made in average
+       *  - 1 assertion has been made in total
+       *  - 2 assertions have been made in average
+       *  - 2 assertions have been made in total
+       */      
+      public function get assertionsMadeLegend() : String
+      {
+         return FlexUnitLabels.formatAssertions( 
+                           formattedAssertionsMade,
+                           assertionsMade,
+                           isAverage );
+      }
+      
+      override protected function createChildren() : void
+      {
+         super.createChildren();
+      }
+	  
+	  override protected function updateDisplayList( width : int, height : int ) : void
+	  {
+		  super.updateDisplayList( width * 2, height );
+	  }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/AbstractRowData.mxml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/AbstractRowData.mxml b/FlexPMD/custom-ruleset/src/test/resources/test/AbstractRowData.mxml
new file mode 100644
index 0000000..c31373b
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/AbstractRowData.mxml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
+                xmlns="*">
+
+    <mx:Script>
+        <![CDATA[
+            public override function closePopup() : void
+            {
+                if ( useWithPopUpWrapper )
+                {
+                    dispatchEvent( new Event( CLOSE_POPUP_EVENT ) );
+                } else
+                {
+                    super.closePopup( event );
+                }
+            }
+        ]]>
+    </mx:Script>
+
+    <mx:Script>
+        <![CDATA[
+            
+        ]]>
+    </mx:Script>
+
+</mx:Application>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/BadComponent.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/BadComponent.as b/FlexPMD/custom-ruleset/src/test/resources/test/BadComponent.as
new file mode 100644
index 0000000..f45be51
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/BadComponent.as
@@ -0,0 +1,43 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package com.adobe.ac.pmd.view
+{
+   import mx.controls.Label;
+   import mx.core.UIComponent;
+   
+   public class BadComponent extends UIComponent
+   {
+      override protected function updateDisplayList( w : Number, h : Number ) : void
+      {
+         super.updateDisplayList( w, h );
+         
+         addChild( new Label() );
+         addChildAt( new Label() );
+         removeChild( new Label() );
+         removeChildAt( 0 );
+      }
+      
+      override protected function createChildren() : void
+      {
+         super.createChildren();
+         
+         addMyChildren();
+      }
+   }   
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/Color.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/Color.as b/FlexPMD/custom-ruleset/src/test/resources/test/Color.as
new file mode 100644
index 0000000..aec4604
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/Color.as
@@ -0,0 +1,29 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.colors
+
+{
+	
+	public interface Color
+	
+	{
+		function foo() : void;
+	}
+	
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/DefaultNameEvent.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/DefaultNameEvent.as b/FlexPMD/custom-ruleset/src/test/resources/test/DefaultNameEvent.as
new file mode 100644
index 0000000..6d95245
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/DefaultNameEvent.as
@@ -0,0 +1,36 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+	public class DefaultNameEvent extends Event	
+	{
+		public static const DAY_CHANGE : String = "dayChange";
+		public static const DELAYED_MIDNIGHT_REFRESH : String = "delayedMidnightRefresh";
+
+		public function DefaultNameEvent( type : String = "" )
+		{
+			super( type );
+		}
+		
+		override public function clone() : Event
+		{
+			return new DefaultNameEvent( type );
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/DeleteButtonRenderer.mxml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/DeleteButtonRenderer.mxml b/FlexPMD/custom-ruleset/src/test/resources/test/DeleteButtonRenderer.mxml
new file mode 100644
index 0000000..ea6dfd4
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/DeleteButtonRenderer.mxml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Button xmlns:mx="http://www.adobe.com/2006/mxml"
+    icon="@Embed(source='/assets/icon_tool_trash2.png')"
+    toolTip="Remove this rule ({ rule.shortName }) from your ruleset..."
+    skin="mx.skins.ProgrammaticSkin"
+    buttonMode="true"
+    click="onClick()"
+    mouseChildren="false"
+    useHandCursor="true"
+    >
+
+    <mx:Metadata>
+       [Event(name="ruleRemoved", type="flash.events.Event")]
+    </mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import com.adobe.ac.pmd.model.Rule;
+
+            import mx.controls.AdvancedDataGrid;
+            import mx.controls.listClasses.ListBase;
+            import mx.events.FlexEvent;
+            import mx.events.ListEvent;
+
+            public static const RULE_REMOVED : String = "ruleRemoved";
+
+            [Bindable]
+            private var rule : Rule;
+
+            private var grid : AdvancedDataGrid;
+
+            override public function set data( value : Object ) : void
+            {
+                super.data = value;
+
+                rule = value as Rule;
+                var ith : int = -1 + +1 + ith++ + -- ith;
+                if ( grid )
+                {
+                    changeVisibility();
+                }
+            }
+
+            override protected function commitProperties() : void
+            {
+                super.commitProperties();
+
+                grid = AdvancedDataGrid( owner );
+                visible = false;
+                grid.addEventListener( ListEvent.CHANGE, onChange );
+            }
+
+            private function changeVisibility() : void
+            {
+                visible = grid.isItemSelected( data ) && rule != null;
+            }
+
+            private function onChange( event : ListEvent ) : void
+            {
+                changeVisibility();
+            }
+
+            private function onClick() : void
+            {
+                if ( rule )
+                {
+                    rule.remove();
+
+                    dispatchEvent( new Event( RULE_REMOVED, true ) );
+                }
+            }
+        ]]>
+    </mx:Script>
+
+	<mx:states>
+		<mx:State/>
+		<mx:State/>
+		<mx:State/>
+		<mx:State/>
+		<mx:State/>
+	</mx:states>
+
+</mx:Button>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/ErrorToltipSkin.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/ErrorToltipSkin.as b/FlexPMD/custom-ruleset/src/test/resources/test/ErrorToltipSkin.as
new file mode 100644
index 0000000..e15d298
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/ErrorToltipSkin.as
@@ -0,0 +1,317 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package com.adobe.radon.core.skin
+{
+
+	import flash.display.GradientType;
+	import flash.display.Graphics;
+	import flash.display.InterpolationMethod;
+	import flash.display.SpreadMethod;
+	import flash.filters.DropShadowFilter;
+	import flash.geom.Matrix;
+
+	import mx.core.EdgeMetrics;
+	import mx.graphics.RectangularDropShadow;
+	import mx.skins.RectangularBorder;
+
+	/**
+	 *  The skin for a ToolTip.
+	 */
+	public class ErrorToolTipSkin extends RectangularBorder
+	{
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 */
+		public function ErrorToolTipSkin() 
+		{
+			super(); 
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Variables
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		private var dropShadow:RectangularDropShadow;
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  borderMetrics
+		//----------------------------------
+
+		/**
+		 *  @private
+		 *  Storage for the borderMetrics property.
+		 */
+		private var _borderMetrics:EdgeMetrics;
+
+		/**
+		 *  @private
+		 */
+		override public function get borderMetrics():EdgeMetrics
+		{     
+			if (_borderMetrics)
+				return _borderMetrics;
+
+			var borderStyle:String = getStyle("borderStyle");
+			switch (borderStyle)
+			{
+				case "errorTipRight":
+				{
+					_borderMetrics = new EdgeMetrics(15, 1, 3, 3);
+					break;
+				}
+
+				case "errorTipAbove":
+				{
+					_borderMetrics = new EdgeMetrics(3, 1, 3, 15);
+					break;
+				}
+
+				case "errorTipBelow":
+				{
+					_borderMetrics = new EdgeMetrics(3, 13, 3, 3);
+					break;
+				}
+
+				default: // "toolTip"
+				{
+					_borderMetrics = new EdgeMetrics(3, 1, 3, 3);
+					break;
+				}
+			}
+
+			return _borderMetrics;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 *  If borderStyle may have changed, clear the cached border metrics.
+		 */
+		override public function styleChanged(styleProp:String):void
+		{
+			if (styleProp == "borderStyle" ||
+				styleProp == "styleName" ||
+				styleProp == null)
+			{
+				_borderMetrics = null;
+			}
+
+			invalidateDisplayList();
+		}
+
+		/**
+		 *  @private
+		 *  Draw the background and border.
+		 */
+		override protected function updateDisplayList(w:Number, h:Number):void
+		{  
+			super.updateDisplayList(w, h);
+
+			var borderStyle:String = getStyle("borderStyle");
+			var backgroundColor:uint = getStyle("backgroundColor");
+			var backgroundAlpha:Number= getStyle("backgroundAlpha");
+			var borderColor:uint = getStyle("borderColor");
+			var cornerRadius:Number = getStyle("cornerRadius");
+			var shadowColor:uint = getStyle("shadowColor");
+			var shadowAlpha:Number = 0.1;
+
+			var graphics:Graphics = graphics;
+			graphics.clear();
+
+			filters = [];
+
+			var type:String = GradientType.LINEAR;
+			var colors:Array = [0xff8300, 0xff4200];
+			var alphas:Array = [1, 1];
+			var ratios:Array = [0, 125 ];
+			var spreadMethod:String = SpreadMethod.PAD;
+			var interp:String = InterpolationMethod.RGB;
+			var focalPtRatio:Number = 0;
+
+			var matrix:Matrix = new Matrix();
+			var boxRotation:Number = Math.PI/2; // 90Ëš
+			var txx:Number = 0;
+			var tyy:Number = 0;
+
+			switch (borderStyle)
+			{
+				case "toolTip":
+				{
+					// face
+					drawRoundRect(
+						3, 1, w - 6, h - 4, cornerRadius,
+						backgroundColor, backgroundAlpha) 
+
+					if (!dropShadow)
+						dropShadow = new RectangularDropShadow();
+
+					dropShadow.distance = 3;
+					dropShadow.angle = 90;
+					dropShadow.color = 0;
+					dropShadow.alpha = 0.4;
+
+					dropShadow.tlRadius = cornerRadius + 2;
+					dropShadow.trRadius = cornerRadius + 2;
+					dropShadow.blRadius = cornerRadius + 2;
+					dropShadow.brRadius = cornerRadius + 2;
+
+					dropShadow.drawShadow(graphics, 3, 0, w - 6, h - 4);
+
+					break;
+				}
+
+				case "errorTipRight":
+				{
+					// border 
+					matrix.createGradientBox(w - 11, h - 2, boxRotation, tx, ty);
+					graphics.beginGradientFill(
+						type, 
+						colors,
+						alphas,
+						ratios, 
+						matrix, 
+						spreadMethod, 
+						interp, 
+						focalPtRatio);
+
+					drawRoundRect(
+						11, 0, w - 11, h - 2, 0 );
+
+					// left pointer 
+					graphics.beginGradientFill(
+						type, 
+						colors,
+						alphas,
+						ratios, 
+						matrix, 
+						spreadMethod, 
+						interp, 
+						focalPtRatio);
+
+					graphics.moveTo(11, 7);
+					graphics.lineTo(0, 13);
+					graphics.lineTo(11, 19);
+					graphics.moveTo(11, 7);
+					graphics.endFill();
+
+					filters = [ new DropShadowFilter(2, 90, 0, 0.4) ];
+					break;
+				}
+
+				case "errorTipAbove":
+				{
+					// border 
+					matrix.createGradientBox(w, h - 13, boxRotation, tx, ty);
+					graphics.beginGradientFill(
+						type, 
+						colors,
+						alphas,
+						ratios, 
+						matrix, 
+						spreadMethod, 
+						interp, 
+						focalPtRatio);
+
+					drawRoundRect(
+						0, 0, w, h - 13, 0 ); 
+
+					// bottom pointer 
+					graphics.beginGradientFill(
+						type, 
+						colors,
+						alphas,
+						ratios, 
+						matrix, 
+						spreadMethod, 
+						interp, 
+						focalPtRatio);
+
+					graphics.moveTo(9, h - 13);
+					graphics.lineTo(15, h - 2);
+					graphics.lineTo(21, h - 13);
+					graphics.moveTo(9, h - 13);
+					graphics.endFill();
+
+					filters = [ new DropShadowFilter(2, 90, 0, 0.4) ];
+					break;
+				}
+
+				case "errorTipBelow":
+				{
+					// border 
+					matrix.createGradientBox(w, h - 13, boxRotation, tx, ty);
+					graphics.beginGradientFill(
+						type, 
+						colors,
+						alphas,
+						ratios, 
+						matrix, 
+						spreadMethod, 
+						interp, 
+						focalPtRatio);
+
+					drawRoundRect(
+						0, 11, w, h - 13, 0 );
+
+					// top pointer 
+					graphics.beginGradientFill(
+						type, 
+						colors,
+						alphas,
+						ratios, 
+						matrix, 
+						spreadMethod, 
+						interp, 
+						focalPtRatio);
+
+					graphics.moveTo(9, 11);
+					graphics.lineTo(15, 0);
+					graphics.lineTo(21, 11);
+					graphics.moveTo(10, 11);
+					graphics.endFill();
+
+					filters = [ new DropShadowFilter(2, 90, 0, 0.4) ];
+					break;
+				}
+			}
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/GenericType.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/GenericType.as b/FlexPMD/custom-ruleset/src/test/resources/test/GenericType.as
new file mode 100644
index 0000000..94d42f5
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/GenericType.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flexUnit.flexui.data
+{
+   public class GenericType extends com.adobe.ac.GenericType
+   {
+      public var logger : *;
+      public const logger : *;
+      public static const LOG : * = Log.getLogger( "flexUnit.flexui.data.AbstractRowData" );
+
+      public function get assertionsMade() : *
+      {
+         callLater( assertionsMadeLegend, [ null ] );
+      }
+
+      public override function set assertionsMadeLegend( fooBar : * ) : void
+      {
+      	var tmp : * = new Object();
+      }
+   }
+}


Mime
View raw message