flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [36/46] FlexPMD Donation from Adobe Systems Inc
Date Fri, 25 Apr 2014 06:18:35 GMT
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/filters/MyPopup.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/filters/MyPopup.as b/FlexPMD/custom-ruleset/src/test/resources/test/filters/MyPopup.as
new file mode 100644
index 0000000..a48f4e0
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/filters/MyPopup.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
+{
+   public class MyPopup extends Canvas
+   {
+      public function MyPopup()
+      {
+         filters = [ new DropShadowFilter() ];
+      }   
+   }
+}
\ 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/filters/MyPopup.mxml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/filters/MyPopup.mxml b/FlexPMD/custom-ruleset/src/test/resources/test/filters/MyPopup.mxml
new file mode 100644
index 0000000..40ad830
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/filters/MyPopup.mxml
@@ -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.
+
+-->
+<mx:Canvas
+   xmlns:mx="http://www.adobe.com/2006/mxml"
+   xmlns:view="com.view.core.gui.*"
+   showFlexChrome="false"
+   layout="absolute"
+   height="768" width="1024"
+   applicationComplete="facade.startup(this)"
+   creationComplete="currentState='defaultLoginWindowState'"
+   filters="{ [ new DropShadowFilter() ]}"
+   >
+   <mx:filters>
+      <mx:DropShadowFilter/>
+   </mx:filters>
+</mx:Canvas>
\ 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/flexpmd114/a/Test.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/a/Test.as b/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/a/Test.as
new file mode 100644
index 0000000..9832bad
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/a/Test.as
@@ -0,0 +1,39 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 a
+{
+	import mx.controls.Alert;
+	
+	public class Test
+	{
+		public function Test()
+		{
+		}
+		
+		public function alert():void {
+			var o:Object = new Object();
+			Alert.show("A");
+			function localFunction(): void {}
+			var functionVarFunction:Function = function(): void { }
+				
+			functionVarFunction();
+		}
+
+	}
+}
\ 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/flexpmd114/b/Test.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/b/Test.as b/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/b/Test.as
new file mode 100644
index 0000000..4f5e782
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/b/Test.as
@@ -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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package b
+{
+	import mx.controls.Alert;
+	
+	public class Test
+	{
+		public function Test()
+		{
+		}
+		
+		public function alert():void {
+			var o:Object = new Object();
+			Alert.show("B");
+		}
+
+	}
+}
\ 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/flexpmd114/c/Test.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/c/Test.as b/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/c/Test.as
new file mode 100644
index 0000000..0237c27
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/flexpmd114/c/Test.as
@@ -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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package c
+{
+	import mx.controls.Alert;
+	
+	public class Test
+	{
+		public function Test()
+		{
+		}
+		
+		public function alert():void {
+			var o:Object = new Object();
+			Alert.show("C");
+		}
+
+	}
+}
\ 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/flexunit/RaoulTest.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/flexunit/RaoulTest.as b/FlexPMD/custom-ruleset/src/test/resources/test/flexunit/RaoulTest.as
new file mode 100644
index 0000000..2606372
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/flexunit/RaoulTest.as
@@ -0,0 +1,69 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 suite.cases
+{
+    import flexunit.framework.TestCase;
+
+    import math.RaoulUtil;
+
+    public class RaoulTest
+    {
+        private var classToTestRef : math.RaoulUtil;
+        private static var _allowEdit : ArrayCollection = new ArrayCollection( [ COMMENT_ADDED, COMMENT_UPDATED ] );
+
+        private static var _locked : Boolean;
+        {
+        	loacked = true;
+        }
+
+        [Before]
+        public function setUp() : void
+        {
+            classToTestRef = new RaoulUtil();
+        }
+
+        [Test]
+        public function foo() : void
+        {
+            classToTestRef.foo1();
+        }
+
+        [Test]
+        public function fooAgain() : void
+        {
+            classToTestRef.foo();
+        }
+
+        public static function editAllowed( status : ActionItemCommentStatus ) : Boolean
+        {
+            return _allowEdit.contains( status );
+        }
+
+        /** Locked constructor will fail if used outside of the enum class */
+        public function RaoulTest( key : int, name : String )
+        {
+            if ( _locked )
+            {
+                throw new Error( "Enumeration constructor is private, do not use externally" );
+            }
+            _key = key;
+            _name = name;
+        }
+    }
+}
\ 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/flexunit/RulesetTest.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/flexunit/RulesetTest.as b/FlexPMD/custom-ruleset/src/test/resources/test/flexunit/RulesetTest.as
new file mode 100644
index 0000000..fc6819b
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/flexunit/RulesetTest.as
@@ -0,0 +1,62 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.model
+{
+   import com.adobe.ac.pmd.control.events.GetRulesetContentEvent;
+   import com.adobe.ac.pmd.model.events.RulesetReceivedEvent;
+   
+   import flexunit.framework.CairngormEventSource;
+   import flexunit.framework.EventfulTestCase;
+   
+   import mx.collections.ArrayCollection;
+
+   public class RulesetTest extends EventfulTestCase
+   {
+      override public function setUp():void
+      {
+         model = new Ruleset();
+      }
+      
+      public function testGetRulesetContent() : void
+      {
+         model.getRulesetContent( "ref" );
+      }
+      
+      public function testOnReceiveRulesetContent() : void
+      {
+         var receivedRuleset : Ruleset = new Ruleset();
+         
+         listenForEvent( model, RulesetReceivedEvent.EVENT_NAME );
+         
+         receivedRuleset.name = "name";
+         receivedRuleset.description = "description";
+         receivedRuleset.rules = new ArrayCollection();
+         receivedRuleset.rulesets = new ArrayCollection();
+         
+         model.onReceiveRulesetContent( receivedRuleset );
+         
+         assertEvents();
+         assertEquals( model, RulesetReceivedEvent( lastDispatchedExpectedEvent ).ruleset );
+         assertEquals( receivedRuleset.name, model.name );
+         assertEquals( receivedRuleset.description, model.description );
+         assertEquals( receivedRuleset.rules, model.rules );
+         assertEquals( receivedRuleset.rulesets, model.rulesets );
+      }
+   }
+}
\ 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/fu/main/flex/Main.mxml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/fu/main/flex/Main.mxml b/FlexPMD/custom-ruleset/src/test/resources/test/fu/main/flex/Main.mxml
new file mode 100644
index 0000000..c98afcc
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/fu/main/flex/Main.mxml
@@ -0,0 +1,22 @@
+<?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" layout="absolute">
+    <mx:Text text="Hello World!"/>
+</mx:Application>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/fu/main/flex/TestRunnerApplication.mxml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/fu/main/flex/TestRunnerApplication.mxml b/FlexPMD/custom-ruleset/src/test/resources/test/fu/main/flex/TestRunnerApplication.mxml
new file mode 100644
index 0000000..7bee4d2
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/fu/main/flex/TestRunnerApplication.mxml
@@ -0,0 +1,50 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+               xmlns:mx="library://ns.adobe.com/flex/halo"
+               xmlns:s="library://ns.adobe.com/flex/spark" minHeight="768" minWidth="1024"
+               creationComplete="runTests()">
+    <s:layout>
+        <s:BasicLayout/>
+    </s:layout>
+
+    <fx:Script>
+        <![CDATA[
+            import org.sonatype.flexmojos.unitestingsupport.ControlSocket;
+            import org.sonatype.flexmojos.unitestingsupport.SocketReporter;
+
+
+            private var suites:Array = [MySuite];
+
+            private static var socketReporter:SocketReporter = SocketReporter.getInstance();
+
+            private static var controlSocket:ControlSocket = ControlSocket.getInstance();
+
+            private function runTests():void
+            {
+                socketReporter.port = 13539;
+                controlSocket.port = 13540;
+                controlSocket.connect();
+                socketReporter.runTests(suites);
+            }
+        ]]>
+    </fx:Script>
+
+</s:Application>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/fu/test/flex/MySuite.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/fu/test/flex/MySuite.as b/FlexPMD/custom-ruleset/src/test/resources/test/fu/test/flex/MySuite.as
new file mode 100644
index 0000000..1f34017
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/fu/test/flex/MySuite.as
@@ -0,0 +1,26 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{	
+	[Suite]
+	[RunWith("org.flexunit.runners.Suite")]	
+	public class MySuite {		
+		public var myTest:MyTest;		
+	}
+}
\ 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/fu/test/flex/MyTest.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/fu/test/flex/MyTest.as b/FlexPMD/custom-ruleset/src/test/resources/test/fu/test/flex/MyTest.as
new file mode 100644
index 0000000..c411ab3
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/fu/test/flex/MyTest.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+	import org.flexunit.assertThat;
+
+	public class MyTest {		
+		
+		[Test]
+		public function dummyTest():void
+		{
+			assertThat(true);
+		}
+
+		private static var eventDispatcher:EventDispatcher = new EventDispatcher();
+		
+		[Test(async)]
+		public function dummyTestFlexPMD132Async():void
+		{
+			Async.handleEvent(this, eventDispatcher, "myEvent", eventHandler);
+			eventDispatcher.dispatchEvent(new Event("myEvent")); // NO PMD DispatchHardCodedEventName
+		}
+		
+		private function eventHandler(event:Event, ptd:*):void // NO PMD UnusedParameter,UseGenericType
+		{
+			Assert.assertTrue(true);
+		}
+
+	}
+}
\ 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/functional/FunctionalClient.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/functional/FunctionalClient.as b/FlexPMD/custom-ruleset/src/test/resources/test/functional/FunctionalClient.as
new file mode 100644
index 0000000..df50a14
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/functional/FunctionalClient.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 functional
+{
+	import functional.func1.api.Func1ExposedClass;
+	import functional.func1.restricted.Func1RestrictedClass; // VIOLATION
+	import functional.func2.api.Func2ExposedClass;
+	import functional.func2.restricted.Func2RestrictedClass; // VIOLATION
+	
+	public class FunctionClient
+	{
+	}
+}
\ 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/functional/func1/api/Func1ExposedClass.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/functional/func1/api/Func1ExposedClass.as b/FlexPMD/custom-ruleset/src/test/resources/test/functional/func1/api/Func1ExposedClass.as
new file mode 100644
index 0000000..6461d6e
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/functional/func1/api/Func1ExposedClass.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 functional.func1.api
+
+{
+	import functional.func1.restricted.Func1RestrictedClass; 
+	import functional.func2.api.Func2ExposedClass;
+	import functional.func2.restricted.Func2RestrictedClass; // VIOLATION
+	
+	public class Func1ExposedClass
+	{
+	}
+}
\ 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/functional/func1/restricted/Func1RestrictedClass.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/functional/func1/restricted/Func1RestrictedClass.as b/FlexPMD/custom-ruleset/src/test/resources/test/functional/func1/restricted/Func1RestrictedClass.as
new file mode 100644
index 0000000..9ad7ba2
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/functional/func1/restricted/Func1RestrictedClass.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 functional.func1.restricted
+{
+	import functional.func1.api.Func1ExposedClass;
+	import functional.func2.api.Func2ExposedClass;
+	import functional.func2.restricted.Func2RestrictedClass; // VIOLATION
+	
+	public class Func1RestrictedClass extends EventDispatcher
+	{
+		public var publicVar : Boolan;
+	}
+}
\ 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/functional/func2/api/Func2ExposedClass.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/functional/func2/api/Func2ExposedClass.as b/FlexPMD/custom-ruleset/src/test/resources/test/functional/func2/api/Func2ExposedClass.as
new file mode 100644
index 0000000..2a2f5d4
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/functional/func2/api/Func2ExposedClass.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 functional.func2.api
+{
+	import functional.func1.api.Func1ExposedClass;
+	import functional.func1.restricted.Func1RestrictedClass; // VIOLATION
+	import functional.func2.restricted.Func2RestrictedClass;
+	
+	public class Func2ExposedClass
+	{
+	}
+}
\ 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/functional/func2/restricted/Func2RestrictedClass.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/functional/func2/restricted/Func2RestrictedClass.as b/FlexPMD/custom-ruleset/src/test/resources/test/functional/func2/restricted/Func2RestrictedClass.as
new file mode 100644
index 0000000..73f1789
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/functional/func2/restricted/Func2RestrictedClass.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 functional.func2.restricted
+{
+	import functional.func1.api.Func1ExposedClass;
+	import functional.func1.restricted.Func1RestrictedClass; // VIOLATION
+	import functional.func2.api.Func2ExposedClass;
+	
+	public class Func2RestrictedClass
+	{
+	}
+}
\ 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/mx/controls/DateChooser2.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/mx/controls/DateChooser2.as b/FlexPMD/custom-ruleset/src/test/resources/test/mx/controls/DateChooser2.as
new file mode 100644
index 0000000..8900d5b
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/mx/controls/DateChooser2.as
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.controls
+{
+	public class DateChooser extends UIComponent implements IFocusManagerComponent, IFontContextComponent
+	{
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/custom-ruleset/src/test/resources/test/org/as3commons/concurrency/thread/Color.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/org/as3commons/concurrency/thread/Color.as b/FlexPMD/custom-ruleset/src/test/resources/test/org/as3commons/concurrency/thread/Color.as
new file mode 100644
index 0000000..9265cf3
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/org/as3commons/concurrency/thread/Color.as
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.as3commons.concurrency.threads
+{
+	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/parsley/InaccessibleMetaData.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/parsley/InaccessibleMetaData.as b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/InaccessibleMetaData.as
new file mode 100644
index 0000000..307ab35
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/InaccessibleMetaData.as
@@ -0,0 +1,53 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 parsley
+{
+   [Event(name="message", type="flash.events.Event")]
+   public class InaccessibleMetaData
+   {
+      public var publicVar;
+	  
+      [Inject] // VIOLATION
+      private var privateVar : String;
+      
+      [Inject]
+      public function set publicSetter( value : String ) : void
+      {
+         privateSetter = value;
+      }
+	  
+      [Inject] // VIOLATION
+      private function set privateSetter( value : String ) : void
+      {
+         publicVar = value;
+      }
+
+      [MessageHandler]
+	   public function publicFunction( event : MyEvent ) : void
+	   {
+         privateFunction( event );
+	   }
+
+	   [MessageHandler] // VIOLATION
+      private function privateFunction( event : MyEvent ) : void
+      {
+         privateVar = event.toString();
+      }
+   }
+}
\ 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/parsley/InaccessibleMetaDataInternalClass.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/parsley/InaccessibleMetaDataInternalClass.as b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/InaccessibleMetaDataInternalClass.as
new file mode 100644
index 0000000..e05cd20
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/InaccessibleMetaDataInternalClass.as
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 parsley
+{
+   [AsyncInit]
+   internal class InaccessibleMetaDataInternalClass
+   {
+   }
+}
\ 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/parsley/MessageInterceptorSignature.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MessageInterceptorSignature.as b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MessageInterceptorSignature.as
new file mode 100644
index 0000000..2cac794
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MessageInterceptorSignature.as
@@ -0,0 +1,47 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 parsley
+{
+   public class MessageInterceptorSignature
+   {
+      [MessageInterceptor(type="a.b.MyMessage")]
+      public function messageInterceptor( processor : MessageProcessor ) : void
+      {
+         processor.proceed();
+      }
+
+      [MessageInterceptor(type="a.b.MyMessage")]
+      public function messageInterceptor() : void // VIOLATION
+      {
+      }
+
+      [MessageInterceptor(type="a.b.MyMessage")]
+      public function messageInterceptor( type : MyMessage ) : void // VIOLATION
+      {
+         type.something();
+      }
+
+      [MessageInterceptor(type="a.b.MyMessage")]
+      public function messageInterceptor( processor : MessageProcessor, type : MyMessage ) : void // VIOLATION
+      {
+         processor.proceed();
+         type.something();
+      }
+   }
+}
\ 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/parsley/MismatchedManagedEvent.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MismatchedManagedEvent.as b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MismatchedManagedEvent.as
new file mode 100644
index 0000000..d5af8df
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MismatchedManagedEvent.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 parsley
+{
+   [Event(name="messageA", type="flash.events.Event")]
+   [Event(name="messageB", type="flash.events.Event")]
+   [ManagedEvents(names="messageA,messageB")]
+   [ManagedEvents(names="messageC")] // VIOLATION
+   public class MismatchedManagedEvent
+   {
+   }
+}
\ 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/parsley/MisplacedMetaData.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MisplacedMetaData.as b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MisplacedMetaData.as
new file mode 100644
index 0000000..71c1e2c
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/MisplacedMetaData.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 parsley
+{
+   [Inject] // VIOLATION
+   [MessageBinding(type="a.b.MyMessage", messageProperty="a")] // VIOLATION
+   [MessageDispatcher] // VIOLATION
+   [MessageError] // VIOLATION
+   [MessageHandler] // VIOLATION
+   [MessageInterceptor] // VIOLATION
+   [Init] // VIOLATION
+   [Destroy] // VIOLATION
+   [ResourceBinding(key="a")] // VIOLATION
+   [Factory] // VIOLATION
+   [ObjectDefinition] // VIOLATION
+   [Target] // VIOLATION
+   [Internal] // VIOLATION
+   public class MisplacedMetaData
+   {
+      [InjectConstructor] // VIOLATION
+      [ManagedEvents(names="a")] // VIOLATION
+      [MessageError] // VIOLATION
+      [MessageHandler] // VIOLATION
+      [MessageInterceptor] // VIOLATION
+      [Init] // VIOLATION
+      [Destroy] // VIOLATION
+      [Factory] // VIOLATION
+      public var property : String;
+      
+      [InjectConstructor] // VIOLATION
+      public function MisplacedMetaData()
+      {
+      }
+      
+      [ManagedEvents(names="a")] // VIOLATION
+      [MessageBinding(type="a.b.MyMessage", messageProperty="a")] // VIOLATION
+      [MessageDispatcher] // VIOLATION
+      [AsyncInit] // VIOLATION
+      [ResourceBinding(key="a")] // VIOLATION
+      [ObjectDefinition] // VIOLATION
+      [Target] // VIOLATION
+      [Internal] // VIOLATION
+      public function doSomething( message : MyMessage ) : void
+      {
+         message.toString();
+         property.toString();
+      }
+   }
+}
\ 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/parsley/RedundantMessageHandlerTypeAttribute.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/parsley/RedundantMessageHandlerTypeAttribute.as b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/RedundantMessageHandlerTypeAttribute.as
new file mode 100644
index 0000000..c67f3a8
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/RedundantMessageHandlerTypeAttribute.as
@@ -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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package parsley
+{
+   public class RedundantMessageHandlerTypeAttribute
+   {
+      [MessageHandler]
+      public function doSomething( message : MyMessage ) : void
+      {
+         message.toString();
+      }
+
+      [MessageHandler(type="a.b.MyMessage")] // VIOLATION
+      public function doSomething( message : MyMessage ) : void
+      {
+         message.toString();
+      }
+   }
+}
\ 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/parsley/RedundantMethodAttribute.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/parsley/RedundantMethodAttribute.as b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/RedundantMethodAttribute.as
new file mode 100644
index 0000000..76cfecb
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/RedundantMethodAttribute.as
@@ -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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package parsley
+{
+   public class RedundantMethodAttribute
+   {
+      [MessageHandler]
+      public function doSomething( message : MyMessage ) : void
+      {
+         message.toString();
+      }
+
+      [MessageHandler(method="doSomething")] // VIOLATION
+      public function doSomething( message : MyMessage ) : void
+      {
+         message.toString();
+      }
+   }
+}
\ 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/parsley/UnknownMetaDataAttribute.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/parsley/UnknownMetaDataAttribute.as b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/UnknownMetaDataAttribute.as
new file mode 100644
index 0000000..05b9be4
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/parsley/UnknownMetaDataAttribute.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 parsley
+{
+   [AsyncInit(x="y")] // VIOLATION
+   public class UnknownMetaDataAttribute
+   {
+      [Inject(x="y")] // VIOLATION
+      public var inject;
+
+      [MessageHandler(x="y")] // VIOLATION
+      public function messageHandler() : 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/schedule_internal.as
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/src/test/resources/test/schedule_internal.as b/FlexPMD/custom-ruleset/src/test/resources/test/schedule_internal.as
new file mode 100644
index 0000000..74e0e76
--- /dev/null
+++ b/FlexPMD/custom-ruleset/src/test/resources/test/schedule_internal.as
@@ -0,0 +1,22 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 flexlib.scheduling.scheduleClasses
+{
+   public namespace schedule_internal = "http://www.adobe.com/ac/scheduling/internal";
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/flex-pmd-ant-task/.pmd
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-ant-task/.pmd b/FlexPMD/flex-pmd-ant-task/.pmd
new file mode 100644
index 0000000..b5c19d9
--- /dev/null
+++ b/FlexPMD/flex-pmd-ant-task/.pmd
@@ -0,0 +1,25 @@
+<?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.
+
+-->
+<pmd>
+    <useProjectRuleSet>false</useProjectRuleSet>
+    <ruleSetFile>../flex-pmd-parent/pmd.xml</ruleSetFile>
+    <includeDerivedFiles>false</includeDerivedFiles>
+    <violationsAsErrors>true</violationsAsErrors>
+</pmd>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/flex-pmd-ant-task/pom.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-ant-task/pom.xml b/FlexPMD/flex-pmd-ant-task/pom.xml
new file mode 100644
index 0000000..d3328d2
--- /dev/null
+++ b/FlexPMD/flex-pmd-ant-task/pom.xml
@@ -0,0 +1,177 @@
+<?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.
+
+-->
+<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.ac</groupId>
+	<artifactId>flex-pmd-ant-task</artifactId>
+	<name>Adobe Flex PMD Ant task</name>
+
+  <parent>
+	<groupId>com.adobe.ac</groupId>
+	<artifactId>flex-pmd-java-parent</artifactId>
+	<version>1.3-SNAPSHOT</version>
+	<relativePath>../flex-pmd-java-parent/pom.xml</relativePath>
+  </parent>
+  
+  	<description />
+	<packaging>jar</packaging>
+
+	<build>
+		<testResources>
+			<testResource>
+				<directory>${project.build.directory}/test/generated-resources</directory>
+			</testResource>
+		</testResources>
+
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>unpack-test-resources</id>
+						<phase>generate-resources</phase>
+						<goals>
+							<goal>unpack-dependencies</goal>
+						</goals>
+						<configuration>
+							<includeGroupIds>${project.groupId}</includeGroupIds>
+							<includes>**/*.as,**/*.mxml</includes>
+							<outputDirectory>${project.build.directory}/test/generated-resources</outputDirectory>
+							<excludeTransitive>true</excludeTransitive>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			
+			<plugin>
+				<artifactId>maven-antrun-plugin</artifactId>
+				<version>${maven-antrun-plugin.version}</version>
+				<executions>
+					<execution>
+						<id>package-ant-task</id>
+						<phase>install</phase>
+						<configuration>
+							<tasks>
+								<echo message="Building ant-task" />
+								<mkdir dir="${project.build.directory}/release" />
+								<echo message="" />
+								<echo message="Copying Flex PMD dependencies..." />
+								<copy file="${project.build.directory}/${project.build.finalName}.jar" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.com.adobe.ac.flex-pmd-core.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.com.adobe.ac.flex-pmd-ruleset.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.com.adobe.ac.flex-pmd-files.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.com.adobe.ac.flex-pmd-ruleset-api.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.com.adobe.ac.as3-parser.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.com.adobe.ac.as3-parser-api.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<echo message="Copying Ant dependencies..." />
+								<copy file="${maven.dependency.com.adobe.ac.as3-plugin-utils.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.pmd.pmd.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.org.apache.ant.ant.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.commons-lang.commons-lang.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<copy file="${maven.dependency.plexus.plexus-utils.jar.path}" todir="${project.build.directory}/release" overwrite="true" />
+								<echo message="Extracting license..." />
+								<copy file="../flex-pmd-parent/src/etc/header.txt" tofile="${project.build.directory}/release/LICENSE.txt" overwrite="true" />
+								<echo message="Compressing zip..." />
+								<zip destfile="${project.build.directory}/${project.build.finalName}.zip" basedir="${project.build.directory}/release" excludes="*.zip" />
+							</tasks>
+						</configuration>
+						<goals>
+							<goal>run</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+
+
+	<dependencies>
+		<dependency>
+			<groupId>${project.groupId}</groupId>
+			<version>${project.version}</version>
+			<artifactId>flex-pmd-core</artifactId>
+		</dependency>
+		
+		<dependency>
+			<groupId>org.apache.ant</groupId>
+			<artifactId>ant</artifactId>
+			<version>${ant.version}</version>
+		</dependency>
+
+		<dependency>
+			<groupId>${project.parent.groupId}</groupId>
+			<artifactId>flex-pmd-test-resources</artifactId>
+			<version>${project.parent.version}</version>
+			<classifier>resources</classifier>
+			<type>zip</type>
+			<scope>provided</scope>
+		</dependency>
+
+		<!-- Dependencies for packaging from ANT -->
+
+		<dependency>
+			<groupId>${project.groupId}</groupId>
+			<version>${project.version}</version>
+			<artifactId>flex-pmd-ruleset</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>${project.groupId}</groupId>
+			<version>${project.version}</version>
+			<artifactId>flex-pmd-ruleset-api</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>${project.groupId}</groupId>
+			<version>${project.version}</version>
+			<artifactId>flex-pmd-files</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>${project.groupId}</groupId>
+			<artifactId>as3-plugin-utils</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>${project.groupId}</groupId>
+			<artifactId>as3-parser</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>${project.groupId}</groupId>
+			<artifactId>as3-parser-api</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>pmd</groupId>
+			<artifactId>pmd</artifactId>
+			<version>${pmd.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>plexus</groupId>
+			<artifactId>plexus-utils</artifactId>
+			<version>${plexus-utils.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-lang</groupId>
+			<artifactId>commons-lang</artifactId>
+			<version>${commons-lang.version}</version>
+		</dependency>
+	</dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/flex-pmd-ant-task/src/main/assemble/bin.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-ant-task/src/main/assemble/bin.xml b/FlexPMD/flex-pmd-ant-task/src/main/assemble/bin.xml
new file mode 100644
index 0000000..134549d
--- /dev/null
+++ b/FlexPMD/flex-pmd-ant-task/src/main/assemble/bin.xml
@@ -0,0 +1,38 @@
+<!--
+
+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.
+
+-->
+<assembly>
+  <id>ant</id>
+  <formats>
+    <format>jar</format>
+  </formats>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <dependencySets>
+    <dependencySet>
+      <includes>
+         <include>com.adobe.ac:flex-pmd-core</include>
+         <include>org.apache.ant:ant</include>
+         <include>com.adobe.ac:as3-parser</include>
+         <include>com.adobe.ac:as3-plugin-utils</include>
+         <include>com.adobe.ac:flex-pmd-ruleset</include>
+         <include>com.adobe.ac:flex-pmd-ruleset-api</include>
+         <include>pmd:pmd</include>
+      </includes>
+    </dependencySet>
+  </dependencySets>    
+</assembly>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/flex-pmd-ant-task/src/main/java/com/adobe/ac/pmd/ant/FlexPmdAntTask.java
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-ant-task/src/main/java/com/adobe/ac/pmd/ant/FlexPmdAntTask.java b/FlexPMD/flex-pmd-ant-task/src/main/java/com/adobe/ac/pmd/ant/FlexPmdAntTask.java
new file mode 100644
index 0000000..40e7167
--- /dev/null
+++ b/FlexPMD/flex-pmd-ant-task/src/main/java/com/adobe/ac/pmd/ant/FlexPmdAntTask.java
@@ -0,0 +1,119 @@
+/*
+ * 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.ant;
+
+import java.io.File;
+
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Task;
+
+import com.adobe.ac.pmd.FlexPmdParameters;
+import com.adobe.ac.pmd.FlexPmdViolations;
+import com.adobe.ac.pmd.LoggerUtils;
+import com.adobe.ac.pmd.engines.FlexPmdXmlEngine;
+import com.adobe.ac.pmd.engines.PmdEngineUtils;
+
+public class FlexPmdAntTask extends Task // NO_UCD
+{
+   private boolean failOnError;
+   private boolean failOnRuleViolation;
+   private File    outputDirectory;
+   private String  packageToExclude;
+   private File    ruleSet;
+   private File    sourceDirectory;
+
+   @Override
+   public final void execute()
+   {
+      try
+      {
+         presetParameters();
+
+         new LoggerUtils().loadConfiguration();
+
+         final FlexPmdXmlEngine engine = new FlexPmdXmlEngine( new FlexPmdParameters( packageToExclude,
+                                                                                      outputDirectory,
+                                                                                      ruleSet,
+                                                                                      sourceDirectory ) );
+         final FlexPmdViolations violations = new FlexPmdViolations();
+
+         engine.executeReport( violations );
+
+         if ( failOnError )
+         {
+            final String message = PmdEngineUtils.findFirstViolationError( violations );
+
+            if ( message.length() > 0 )
+            {
+               throw new BuildException( message );
+            }
+         }
+         if ( failOnRuleViolation
+               && !violations.getViolations().isEmpty() )
+         {
+            throw new BuildException( "At least one violation has been found" );
+         }
+      }
+      catch ( final Exception e )
+      {
+         throw new BuildException( e );
+      }
+   }
+
+   public final String getPackageToExclude()
+   {
+      return packageToExclude;
+   }
+
+   public final void setFailOnError( final boolean failOnErrorToBeSet )
+   {
+      failOnError = failOnErrorToBeSet;
+   }
+
+   public final void setFailOnRuleViolation( final boolean failOnRuleViolation )
+   {
+      this.failOnRuleViolation = failOnRuleViolation;
+   }
+
+   public final void setOutputDirectory( final File outputDirectoryToBeSet )
+   {
+      outputDirectory = outputDirectoryToBeSet;
+   }
+
+   public final void setPackageToExclude( final String packageToExcludeToBeSet )
+   {
+      packageToExclude = packageToExcludeToBeSet;
+   }
+
+   public final void setRuleSet( final File ruleSetToBeSet )
+   {
+      ruleSet = ruleSetToBeSet;
+   }
+
+   public final void setSourceDirectory( final File sourceDirectoryToBeSet )
+   {
+      sourceDirectory = sourceDirectoryToBeSet;
+   }
+
+   private void presetParameters()
+   {
+      if ( packageToExclude == null )
+      {
+         packageToExclude = "";
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/flex-pmd-ant-task/src/test/java/com/adobe/ac/pmd/ant/FlexPmdAntTaskTest.java
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-ant-task/src/test/java/com/adobe/ac/pmd/ant/FlexPmdAntTaskTest.java b/FlexPMD/flex-pmd-ant-task/src/test/java/com/adobe/ac/pmd/ant/FlexPmdAntTaskTest.java
new file mode 100644
index 0000000..256e871
--- /dev/null
+++ b/FlexPMD/flex-pmd-ant-task/src/test/java/com/adobe/ac/pmd/ant/FlexPmdAntTaskTest.java
@@ -0,0 +1,82 @@
+/*
+ * 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.ant;
+
+import java.io.File;
+
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Project;
+import org.junit.Test;
+
+import com.adobe.ac.pmd.FlexPmdTestBase;
+
+public class FlexPmdAntTaskTest extends FlexPmdTestBase
+{
+   private static final String TARGET = "target";
+
+   @Test(expected = BuildException.class)
+   public void testExecuteWithFailOnError()
+   {
+      final FlexPmdAntTask task = new FlexPmdAntTask();
+      final Project project = new Project();
+
+      task.setFailOnError( true );
+      task.setSourceDirectory( getTestDirectory() );
+      task.setOutputDirectory( new File( TARGET ) );
+      task.setProject( project );
+      task.execute();
+   }
+
+   @Test(expected = BuildException.class)
+   public void testExecuteWithFailOnViolation()
+   {
+      final FlexPmdAntTask task = new FlexPmdAntTask();
+      final Project project = new Project();
+
+      task.setFailOnRuleViolation( true );
+      task.setPackageToExclude( "" );
+      task.setRuleSet( null );
+      task.setSourceDirectory( getTestDirectory() );
+      task.setOutputDirectory( new File( TARGET ) );
+      task.setProject( project );
+      task.execute();
+   }
+
+   @Test(expected = BuildException.class)
+   public void testExecuteWithoutSettingParameters()
+   {
+      final FlexPmdAntTask task = new FlexPmdAntTask();
+      final Project project = new Project();
+
+      task.setProject( project );
+      task.execute();
+   }
+
+   @Test
+   public void testExecuteWithParameters()
+   {
+      final FlexPmdAntTask task = new FlexPmdAntTask();
+      final Project project = new Project();
+
+      task.setSourceDirectory( getTestDirectory() );
+      task.setOutputDirectory( new File( TARGET ) );
+      task.setProject( project );
+      task.execute();
+      new File( TARGET
+            + "/pmd.xml" ).delete();
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/flex-pmd-automator-workflow/pom.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-automator-workflow/pom.xml b/FlexPMD/flex-pmd-automator-workflow/pom.xml
new file mode 100644
index 0000000..d896492
--- /dev/null
+++ b/FlexPMD/flex-pmd-automator-workflow/pom.xml
@@ -0,0 +1,56 @@
+<!--
+
+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.ac</groupId>
+	<artifactId>flex-pmd-automator</artifactId>
+	<packaging>pom</packaging>
+	<name>Adobe Flex PMD Mac OSX Automator workflow</name>
+
+	<parent>
+		<artifactId>flex-pmd-hybrid-parent</artifactId>
+		<groupId>com.adobe.ac</groupId>
+		<version>1.3-SNAPSHOT</version>
+		<relativePath>../flex-pmd-hybrid-parent/pom.xml</relativePath>
+	</parent>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-assembly-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>bundle-automator-workflow</id>
+						<goals>
+							<goal>single</goal>
+						</goals>
+						<phase>install</phase>
+						<configuration>
+							<descriptors>
+								<descriptor>src/main/assembly/workflow.xml</descriptor>
+							</descriptors>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/flex-pmd-automator-workflow/src/main/assembly/workflow.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-automator-workflow/src/main/assembly/workflow.xml b/FlexPMD/flex-pmd-automator-workflow/src/main/assembly/workflow.xml
new file mode 100644
index 0000000..a7cf1e3
--- /dev/null
+++ b/FlexPMD/flex-pmd-automator-workflow/src/main/assembly/workflow.xml
@@ -0,0 +1,46 @@
+<!--
+
+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.
+
+-->
+<assembly>
+    <id>workflow</id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <fileSets>
+        <fileSet>
+            <directory>src/main/automator</directory>
+            <outputDirectory></outputDirectory>
+        </fileSet>
+        <fileSet>
+        	<directory>../flex-pmd-command-line/target/release</directory>
+            <outputDirectory>command-line</outputDirectory>
+        </fileSet>
+        <fileSet>
+        	<directory>../flex-pmd-violations-viewer/target</directory>
+            <outputDirectory>violations-viewer</outputDirectory>
+            <excludes>
+            	<exclude>**/*.xml</exclude>
+            	<exclude>classes</exclude>
+            	<exclude>css</exclude>
+            	<exclude>images</exclude>
+            	<exclude>site</exclude>
+            </excludes>
+        </fileSet>
+    </fileSets>
+</assembly>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/QuickLook/Preview.pdf
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/QuickLook/Preview.pdf b/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/QuickLook/Preview.pdf
new file mode 100644
index 0000000..aded733
Binary files /dev/null and b/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/QuickLook/Preview.pdf differ


Mime
View raw message