You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2014/08/27 00:44:15 UTC
[44/51] [partial] Refactored the PMD Maven build - Adjusted the
directory structure - Fixed a lot of compile problems - Fixed the maven setup
- Made PMD build with Flexmojos 7.1.0 and Apache Flex 4.13.0 - Fixed a few
UnitTests
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/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
deleted file mode 100644
index c88d844..0000000
--- a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/EmptyTestFunctionStatus.as
+++ /dev/null
@@ -1,36 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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/e43b7a87/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
deleted file mode 100644
index 55ad184..0000000
--- a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ErrorTestFunctionStatus.as
+++ /dev/null
@@ -1,36 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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/e43b7a87/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
deleted file mode 100644
index fe17266..0000000
--- a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/ITestFunctionStatus.as
+++ /dev/null
@@ -1,28 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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/e43b7a87/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
deleted file mode 100644
index 1f21549..0000000
--- a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/flexunit/filter/TestfFunctionStatuses.as
+++ /dev/null
@@ -1,32 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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/e43b7a87/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
deleted file mode 100644
index 2ff3397..0000000
--- a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationView.mxml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?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/e43b7a87/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
deleted file mode 100644
index 317d24d..0000000
--- a/FlexPMD/as3-plugin-utils/src/test/resources/com/adobe/ac/ncss/mxml/IterationsList.mxml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?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/e43b7a87/FlexPMD/checkstyle.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/checkstyle.xml b/FlexPMD/checkstyle.xml
new file mode 100644
index 0000000..a7cb9ab
--- /dev/null
+++ b/FlexPMD/checkstyle.xml
@@ -0,0 +1,78 @@
+<?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.
+
+-->
+ <!--
+ This configuration file was written by the eclipse-cs plugin
+ configuration editor
+ -->
+ <!--
+ Checkstyle-Configuration: AdobeProfessionalSerives Description: Adobe
+ Professional Services checkstyle ruleset
+ -->
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+<module name="Checker">
+ <property name="severity" value="warning" />
+ <module name="TreeWalker">
+ <module name="AbstractClassName" />
+ <module name="ConstantName" />
+ <module name="LocalFinalVariableName" />
+ <module name="LocalVariableName" />
+ <module name="MemberName" />
+ <module name="MethodName" />
+ <module name="ParameterName" />
+ <module name="StaticVariableName" />
+ <module name="TypeName" />
+ <module name="FileLength" />
+ <module name="LineLength">
+ <property name="max" value="120" />
+ </module>
+ <module name="MethodLength">
+ <property name="max" value="50" />
+ </module>
+ <module name="ParameterNumber">
+ <property name="max" value="4" />
+ </module>
+ <module name="AvoidInlineConditionals">
+ <property name="severity" value="ignore" />
+ </module>
+ <module name="DefaultComesLast" />
+ <module name="EmptyStatement" />
+ <module name="ExplicitInitialization">
+ <property name="severity" value="ignore" />
+ </module>
+ <module name="FallThrough" />
+ <module name="HiddenField" />
+ <module name="IllegalInstantiation" />
+ <module name="IllegalCatch" />
+ <module name="IllegalThrows" />
+ <module name="MagicNumber">
+ <property name="severity" value="ignore" />
+ </module>
+ <module name="ParameterAssignment" />
+ <module name="SimplifyBooleanExpression" />
+ <module name="SimplifyBooleanReturn" />
+ <module name="SuperClone" />
+ <module name="UnnecessaryParentheses" />
+ <module name="FinalClass" />
+ <module name="DesignForExtension">
+ <property name="severity" value="ignore" />
+ </module>
+ <module name="ArrayTypeStyle" />
+ </module>
+</module>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/cleanup.profile.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/cleanup.profile.xml b/FlexPMD/cleanup.profile.xml
new file mode 100644
index 0000000..f437848
--- /dev/null
+++ b/FlexPMD/cleanup.profile.xml
@@ -0,0 +1,95 @@
+<?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.
+
+-->
+ <!-- Profile to be imported in Eclipse clean-up tool -->
+<profiles version="2">
+ <profile kind="CleanUpProfile" name="Ac" version="2">
+ <setting
+ id="cleanup.use_this_for_non_static_field_access_only_if_necessary"
+ value="true" />
+ <setting id="cleanup.always_use_blocks" value="true" />
+ <setting id="cleanup.qualify_static_method_accesses_with_declaring_class"
+ value="false" />
+ <setting id="cleanup.remove_unused_private_fields" value="true" />
+ <setting id="cleanup.always_use_this_for_non_static_method_access"
+ value="false" />
+ <setting id="cleanup.qualify_static_field_accesses_with_declaring_class"
+ value="false" />
+ <setting
+ id="cleanup.use_this_for_non_static_method_access_only_if_necessary"
+ value="true" />
+ <setting id="cleanup.remove_unused_private_types" value="true" />
+ <setting id="cleanup.always_use_parentheses_in_expressions"
+ value="false" />
+ <setting
+ id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class"
+ value="true" />
+ <setting id="cleanup.remove_unused_local_variables" value="true" />
+ <setting id="cleanup.add_missing_override_annotations" value="true" />
+ <setting id="cleanup.remove_trailing_whitespaces_all" value="true" />
+ <setting id="cleanup.organize_imports" value="true" />
+ <setting id="cleanup.remove_unnecessary_nls_tags" value="true" />
+ <setting id="cleanup.add_missing_methods" value="false" />
+ <setting id="cleanup.remove_trailing_whitespaces_ignore_empty"
+ value="false" />
+ <setting id="cleanup.use_parentheses_in_expressions" value="true" />
+ <setting id="cleanup.make_type_abstract_if_missing_method"
+ value="false" />
+ <setting id="cleanup.sort_members" value="true" />
+ <setting
+ id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class"
+ value="true" />
+ <setting id="cleanup.use_blocks_only_for_return_and_throw"
+ value="false" />
+ <setting id="cleanup.use_blocks" value="true" />
+ <setting id="cleanup.make_private_fields_final" value="true" />
+ <setting id="cleanup.remove_unused_private_methods" value="true" />
+ <setting id="cleanup.correct_indentation" value="false" />
+ <setting id="cleanup.use_this_for_non_static_field_access"
+ value="true" />
+ <setting id="cleanup.remove_unnecessary_casts" value="true" />
+ <setting id="cleanup.sort_members_all" value="true" />
+ <setting id="cleanup.format_source_code_changes_only" value="false" />
+ <setting id="cleanup.make_local_variable_final" value="true" />
+ <setting id="cleanup.never_use_parentheses_in_expressions"
+ value="true" />
+ <setting id="cleanup.remove_trailing_whitespaces" value="true" />
+ <setting id="cleanup.convert_to_enhanced_for_loop" value="true" />
+ <setting id="cleanup.format_source_code" value="false" />
+ <setting id="cleanup.add_missing_nls_tags" value="false" />
+ <setting id="cleanup.add_missing_annotations" value="true" />
+ <setting id="cleanup.use_this_for_non_static_method_access"
+ value="true" />
+ <setting id="cleanup.make_variable_declarations_final" value="true" />
+ <setting id="cleanup.make_parameters_final" value="true" />
+ <setting id="cleanup.remove_private_constructors" value="true" />
+ <setting id="cleanup.add_generated_serial_version_id" value="false" />
+ <setting id="cleanup.add_missing_deprecated_annotations"
+ value="true" />
+ <setting id="cleanup.qualify_static_member_accesses_with_declaring_class"
+ value="true" />
+ <setting id="cleanup.always_use_this_for_non_static_field_access"
+ value="false" />
+ <setting id="cleanup.never_use_blocks" value="false" />
+ <setting id="cleanup.add_serial_version_id" value="false" />
+ <setting id="cleanup.add_default_serial_version_id" value="true" />
+ <setting id="cleanup.remove_unused_imports" value="true" />
+ <setting id="cleanup.remove_unused_private_members" value="true" />
+ </profile>
+</profiles>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/custom-ruleset/pom.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/custom-ruleset/pom.xml b/FlexPMD/custom-ruleset/pom.xml
index 529c782..ca04ee2 100644
--- a/FlexPMD/custom-ruleset/pom.xml
+++ b/FlexPMD/custom-ruleset/pom.xml
@@ -19,11 +19,13 @@ 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>
+
+ <groupId>org.apache.flex.pmd</groupId>
<artifactId>custom-ruleset</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
- <name>Custom FlexPMD ruleset</name>
+
+ <name>Custom FlexPMD ruleset</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -33,17 +35,17 @@ limitations under the License.
<dependencies>
<dependency>
- <groupId>com.adobe.ac</groupId>
+ <groupId>org.apache.flex.pmd</groupId>
<artifactId>flex-pmd-core</artifactId>
<version>${flexpmd.version}</version>
</dependency>
<dependency>
- <groupId>com.adobe.ac</groupId>
+ <groupId>org.apache.flex.pmd</groupId>
<artifactId>flex-pmd-ruleset-api</artifactId>
<version>${flexpmd.version}</version>
</dependency>
<dependency>
- <groupId>com.adobe.ac</groupId>
+ <groupId>org.apache.flex.pmd</groupId>
<artifactId>flex-pmd-files</artifactId>
<version>${flexpmd.version}</version>
</dependency>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-formatter.properties
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-formatter.properties b/FlexPMD/flex-formatter.properties
new file mode 100644
index 0000000..84976c6
--- /dev/null
+++ b/FlexPMD/flex-formatter.properties
@@ -0,0 +1,74 @@
+# 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.
+
+#FlexPrettyPrintSettings
+#Mon May 18 16:11:58 CEST 2009
+Actionscript.spacesBeforeComma=0
+Actionscript.newLineAfterBindable=true
+Actionscript.putCatchOnNewLine=true
+MXML.spacesAroundEquals=0
+Actionscript.wrapArrayDeclMode=8
+Actionscript.useBraceStyle=false
+Actionscript.advancedSpacesInsideLiteralBraces=0
+MXML.attrWrapMode=52
+Actionscript.alwaysGenerateIndent=false
+MXML.keepBlankLines=true
+MXML.attrsToKeepOnSameLine=1
+MXML.spacesBeforeEmptyTagEnd=0
+MXML.wrapIndentStyle=1000
+Actionscript.spacesAfterLabel=1
+Actionscript.advancedSpacesAroundEqualsInOptionalParameters=1
+MXML.tagsCannotFormat=mx\:String,
+Actionscript.breakLinesBeforeComma=false
+Actionscript.collapseSpacesForAdjacentParens=false
+Actionscript.advancedUseSpacesAroundEqualsInOptionalParameters=true
+Actionscript.advancedSpacesInsideArrayRefBrackets=0
+Actionscript.blankLinesBeforeFunctions=1
+Actionscript.useGlobalSpacesInsideParens=true
+MXML.sortAttrData=%namespace%\n%properties%\n%styles%\n%events%\n%effects%\n
+Actionscript.wrapMethodDeclMode=8
+Actionscript.blankLinesBeforeClasses=1
+MXML.useAttrsToKeepOnSameLine=false
+Actionscript.putElseOnNewLine=true
+MXML.maxLineLength=100
+Actionscript.spacesBeforeControlOpenParen=1
+MXML.sortExtraAttrs=true
+MXML.blankLinesBeforeTags=0
+Actionscript.spacesInsideParens=1
+Actionscript.maxLineLength=120
+Actionscript.putEmptyStatementsOnNewLine=true
+Flex.useTabs=false
+Actionscript.keepSLCommentsOnColumn1=true
+MXML.sortAttrMode=2
+Actionscript.spacesAroundBinarySymbolicOperator=1
+MXML.tagsToHaveBlankLinesAddedBeforeThem=
+Actionscript.wrapEmbeddedXMLMode=2
+Actionscript.spacesAfterComma=1
+Actionscript.advancedSpacesInsideArrayDeclBrackets=0
+Actionscript.advancedSpacesInsideParens=0
+Actionscript.blankLinesBeforeControlStatements=1
+Actionscript.wrapIndentStyle=1000
+Actionscript.wrapExpressionMode=8
+Actionscript.putOpenBraceOnNewLine=true
+MXML.attrsPerLine=1
+Actionscript.spacesAroundAssignment=1
+Actionscript.spacesAroundColons=1
+Actionscript.keepBlankLines=true
+Actionscript.keepElseIfOnSameLine=true
+MXML.attrGroups=name\=properties|sort\=13|wrap\=54|attrs\=id,width,height,styleName,label,text,allowDisjointSelection,allowMultipleSelection,allowThumbOverlap,allowTrackClick,autoLayout,autoRepeat,automationName,cachePolicy,class,clipContent,condenseWhite,conversion,creationIndex,creationPolicy,currentState,data,dataDescriptor,dataProvider,dataTipFormatFunction,dayNames,defaultButton,direction,disabledDays,disabledRanges,displayedMonth,displayedYear,doubleClickEnabled,emphasized,enabled,explicitHeight,explicitMaxHeight,explicitMaxWidth,explicitMinHeight,explicitMinWidth,explicitWidth,firstDayOfWeek,focusEnabled,fontContext,horizontalLineScrollSize,horizontalPageScrollSize,horizontalScrollBar,horizontalScrollPolicy,horizontalScrollPosition,htmlText,icon,iconField,imeMode,includeInLayout,indeterminate,labelField,labelFunction,labelPlacement,labels,layout,lineScrollSize,listData,liveDragging,maxChars,maxHeight,maxScrollPosition,maxWidth,maxYear,maximum,measuredHeight,measuredMinHeight,
measuredMinWidth,measuredWidth,menuBarItemRenderer,menuBarItems,menus,minHeight,minScrollPosition,minWidth,minYear,minimum,mode,monthNames,monthSymbol,mouseFocusEnabled,pageScrollSize,pageSize,percentHeight,percentWidth,scaleX,scaleY,scrollPosition,selectable,selectableRange,selected,selectedDate,selectedField,selectedIndex,selectedRanges,showDataTip,showRoot,showToday,sliderDataTipClass,sliderThumbClass,snapInterval,source,states,stepSize,stickyHighlighting,text,thumbCount,tickInterval,tickValues,toggle,toolTip,transitions,truncateToFit,validationSubField,value,value,verticalLineScrollSize,verticalPageScrollSize,verticalScrollBar,verticalScrollPolicy,verticalScrollPosition,x,y,yearNavigationEnabled,yearSymbol,|\nname\=events|sort\=11|wrap\=54|attrs\=add,buttonDown,change,childAdd,childIndexChange,childRemove,clickHandler,complete,creationComplete,currentStateChange,currentStateChanging,dataChange,dragComplete,dragDrop,dragEnter,dragExit,dragOver,effectEnd,effectStart,enterState,exi
tState,hide,initialize,invalid,itemClick,itemRollOut,itemRollOver,menuHide,menuShow,mouseDownOutside,mouseWheelOutside,move,preinitialize,progress,record,remove,resize,scroll,show,thumbDrag,thumbPress,thumbRelease,toolTipCreate,toolTipEnd,toolTipHide,toolTipShow,toolTipShown,toolTipStart,updateComplete,valid,valueCommit,|\nname\=styles|sort\=11|wrap\=54|attrs\=backgroundAlpha,backgroundAttachment,backgroundColor,backgroundDisabledColor,backgroundImage,backgroundSize,backgroundSkin,barColor,barSkin,borderColor,borderSides,borderSkin,borderStyle,borderThickness,bottom,color,cornerRadius,dataTipOffset,dataTipPrecision,dataTipStyleName,disabledColor,disabledIcon,disabledIconColor,disabledSkin,disbledOverlayAlpha,downArrowDisabledSkin,downArrowDownSkin,downArrowOverSkin,downArrowUpSkin,downIcon,downSkin,dropShadowColor,dropShadowEnabled,errorColor,fillAlphas,fillColors,focusAlpha,focusBlendMode,focusRoundedCorners,focusSkin,focusThickness,fontAntiAliasType,fontFamily,fontGridFitType,font
Sharpness,fontSize,fontStyle,fontThickness,fontWeight,fontfamily,headerColors,headerStyleName,highlightAlphas,horizontalAlign,horizontalCenter,horizontalGap,horizontalScrollBarStyleName,icon,iconColor,indeterminateMoveInterval,indeterminateSkin,itemDownSkin,itemOverSkin,itemUpSkin,kerning,labelOffset,labelStyleName,labelWidth,leading,left,letterSpacing,maskSkin,menuStyleName,nextMonthDisabledSkin,nextMonthDownSkin,nextMonthOverSkin,nextMonthSkin,nextMonthUpSkin,nextYearDisabledSkin,nextYearDownSkin,nextYearOverSkin,nextYearSkin,nextYearUpSkin,overIcon,overSkin,paddingBottom,paddingLeft,paddingRight,paddingTop,prevMonthDisabledSkin,prevMonthDownSkin,prevMonthOverSkin,prevMonthSkin,prevMonthUpSkin,prevYearDisabledSkin,prevYearDownSkin,prevYearOverSkin,prevYearSkin,prevYearUpSkin,repeatDelay,repeatInterval,right,rollOverColor,rollOverIndicatorSkin,selectedDisabledIcon,selectedDisabledSkin,selectedDownIcon,selectedDownSkin,selectedOverIcon,selectedOverSkin,selectedUpIcon,selectedUpSkin,
selectionColor,selectionIndicatorSkin,shadowColor,shadowDirection,shadowDistance,showTrackHighlight,skin,slideDuration,slideEasingFunction,strokeColor,strokeWidth,textAlign,textDecoration,textIndent,textRollOverColor,textSelectedColor,themeColor,thumbDisabledSkin,thumbDownSkin,thumbIcon,thumbOffset,thumbOverSkin,thumbUpSkin,tickColor,tickLength,tickOffset,tickThickness,todayColor,todayIndicatorSkin,todayStyleName,top,tracHighlightSkin,trackColors,trackHeight,trackMargin,trackSkin,upArrowDisabledSkin,upArrowDownSkin,upArrowOverSkin,upArrowUpSkin,upIcon,upSkin,verticalAlign,verticalCenter,verticalGap,verticalScrollBarStyleName,weekDayStyleName,|\nname\=effects|sort\=11|wrap\=54|attrs\=addedEffect,completeEffect,creationCompleteEffect,focusInEffect,focusOutEffect,hideEffect,mouseDownEffect,mouseUpEffect,moveEffect,removedEffect,resizeEffect,rollOutEffect,rollOverEffect,showEffect,|\nname\=namespace|sort\=11|wrap\=54|attrs\=xmlns\:.*,|\n
+MXML.addNewlineAfterLastAttr=true
+Actionscript.braceStyle=5
+Actionscript.wrapMethodCallMode=8
+MXML.tagsCanFormat=mx\:List,
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-pmd-ant-task/.pmd
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-ant-task/.pmd b/FlexPMD/flex-pmd-ant-task/.pmd
deleted file mode 100644
index b5c19d9..0000000
--- a/FlexPMD/flex-pmd-ant-task/.pmd
+++ /dev/null
@@ -1,25 +0,0 @@
-<?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/e43b7a87/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
deleted file mode 100644
index d3328d2..0000000
--- a/FlexPMD/flex-pmd-ant-task/pom.xml
+++ /dev/null
@@ -1,177 +0,0 @@
-<?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/e43b7a87/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
deleted file mode 100644
index 134549d..0000000
--- a/FlexPMD/flex-pmd-ant-task/src/main/assemble/bin.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<!--
-
-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/e43b7a87/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
deleted file mode 100644
index 40e7167..0000000
--- a/FlexPMD/flex-pmd-ant-task/src/main/java/com/adobe/ac/pmd/ant/FlexPmdAntTask.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * 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/e43b7a87/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
deleted file mode 100644
index 256e871..0000000
--- a/FlexPMD/flex-pmd-ant-task/src/test/java/com/adobe/ac/pmd/ant/FlexPmdAntTaskTest.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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/e43b7a87/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
deleted file mode 100644
index d896492..0000000
--- a/FlexPMD/flex-pmd-automator-workflow/pom.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<!--
-
-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/e43b7a87/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
deleted file mode 100644
index a7cf1e3..0000000
--- a/FlexPMD/flex-pmd-automator-workflow/src/main/assembly/workflow.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-
-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/e43b7a87/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
deleted file mode 100644
index aded733..0000000
Binary files a/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/QuickLook/Preview.pdf and /dev/null differ
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/document.wflow
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/document.wflow b/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/document.wflow
deleted file mode 100644
index 462d407..0000000
--- a/FlexPMD/flex-pmd-automator-workflow/src/main/automator/run.FlexPMD.workflow/Contents/document.wflow
+++ /dev/null
@@ -1,545 +0,0 @@
-<?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.
-
--->
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>AMApplicationBuild</key>
- <string>153</string>
- <key>AMApplicationVersion</key>
- <string>2.0</string>
- <key>AMDocumentVersion</key>
- <string>2</string>
- <key>actions</key>
- <array>
- <dict>
- <key>action</key>
- <dict>
- <key>AMAccepts</key>
- <dict>
- <key>Container</key>
- <string>List</string>
- <key>Optional</key>
- <true/>
- <key>Types</key>
- <array>
- <string>com.apple.applescript.alias-object</string>
- </array>
- </dict>
- <key>AMActionVersion</key>
- <string>1.1</string>
- <key>AMParameterProperties</key>
- <dict>
- <key>defaultLocation</key>
- <dict>
- <key>isPathPopUp</key>
- <true/>
- <key>variableUUIDsInMenu</key>
- <array/>
- </dict>
- <key>granularity</key>
- <dict/>
- <key>multipleSelection</key>
- <dict/>
- <key>promptMessage</key>
- <dict>
- <key>tokenizedValue</key>
- <array>
- <string>Choose a source folder for executing FlexPMD against</string>
- </array>
- </dict>
- </dict>
- <key>AMProvides</key>
- <dict>
- <key>Container</key>
- <string>List</string>
- <key>Types</key>
- <array>
- <string>com.apple.applescript.alias-object</string>
- </array>
- </dict>
- <key>ActionBundlePath</key>
- <string>/System/Library/Automator/Ask for Finder Items.action</string>
- <key>ActionName</key>
- <string>Ask for Finder Items</string>
- <key>ActionParameters</key>
- <dict>
- <key>defaultLocation</key>
- <string>~</string>
- <key>granularity</key>
- <integer>1</integer>
- <key>multipleSelection</key>
- <false/>
- <key>promptMessage</key>
- <string>Choose a source folder for executing FlexPMD against</string>
- </dict>
- <key>Application</key>
- <array>
- <string>Finder</string>
- </array>
- <key>BundleIdentifier</key>
- <string>com.apple.Automator.AskForFinderItems</string>
- <key>CFBundleVersion</key>
- <string>1.1</string>
- <key>CanShowSelectedItemsWhenRun</key>
- <true/>
- <key>CanShowWhenRun</key>
- <false/>
- <key>Category</key>
- <array>
- <string>AMCategoryFilesAndFolders</string>
- </array>
- <key>Class Name</key>
- <string>AMAppleScriptAction</string>
- <key>InputUUID</key>
- <string>048C977D-98A1-423E-8435-0D294C8AEACB</string>
- <key>Keywords</key>
- <array>
- <string>Find</string>
- <string>Item</string>
- <string>File</string>
- <string>Folder</string>
- <string>Ask</string>
- <string>Choose</string>
- <string>Prompt</string>
- </array>
- <key>OutputUUID</key>
- <string>85D7C03F-8983-4BF2-83C6-7DF3F3838515</string>
- <key>StartAction</key>
- <false/>
- <key>UUID</key>
- <string>B38DA4F4-3B0A-479A-8996-6FEFB5CE76DE</string>
- <key>UnlocalizedApplications</key>
- <array>
- <string>Finder</string>
- </array>
- <key>arguments</key>
- <dict>
- <key>0</key>
- <dict>
- <key>default value</key>
- <string>~/Desktop</string>
- <key>name</key>
- <string>defaultLocation</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>0</string>
- </dict>
- <key>1</key>
- <dict>
- <key>default value</key>
- <false/>
- <key>name</key>
- <string>multipleSelection</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>1</string>
- </dict>
- <key>2</key>
- <dict>
- <key>default value</key>
- <string>Choose a Finder Item:</string>
- <key>name</key>
- <string>promptMessage</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>2</string>
- </dict>
- <key>3</key>
- <dict>
- <key>default value</key>
- <integer>0</integer>
- <key>name</key>
- <string>granularity</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>3</string>
- </dict>
- </dict>
- <key>isViewVisible</key>
- <true/>
- <key>location</key>
- <string>457.500000:586.000000</string>
- <key>nibPath</key>
- <string>/System/Library/Automator/Ask for Finder Items.action/Contents/Resources/English.lproj/main.nib</string>
- </dict>
- <key>isViewVisible</key>
- <true/>
- </dict>
- <dict>
- <key>action</key>
- <dict>
- <key>AMAccepts</key>
- <dict>
- <key>Container</key>
- <string>List</string>
- <key>Optional</key>
- <true/>
- <key>Types</key>
- <array>
- <string>com.apple.cocoa.string</string>
- </array>
- </dict>
- <key>AMActionVersion</key>
- <string>2.0.1</string>
- <key>AMParameterProperties</key>
- <dict>
- <key>COMMAND_STRING</key>
- <dict/>
- <key>CheckedForUserDefaultShell</key>
- <dict/>
- <key>inputMethod</key>
- <dict/>
- <key>shell</key>
- <dict/>
- <key>source</key>
- <dict/>
- </dict>
- <key>AMProvides</key>
- <dict>
- <key>Container</key>
- <string>List</string>
- <key>Types</key>
- <array>
- <string>com.apple.cocoa.string</string>
- </array>
- </dict>
- <key>ActionBundlePath</key>
- <string>/System/Library/Automator/Run Shell Script.action</string>
- <key>ActionName</key>
- <string>Run Shell Script</string>
- <key>ActionParameters</key>
- <dict>
- <key>COMMAND_STRING</key>
- <string>#####################
-# Script Variables #
-#####################
-
-#
-# The FlexPMD version
-#
-flexPmdVersion=1.0.RC3
-
-#
-# The directory where the FlexPMD automator workflow has been extracted
-#
-flexPmdWorkflowLocation="/Users/xagnetti/Work/repositories/opensource.adobe/flexpmd/trunk/flex-pmd-automator-workflow/target/flex-pmd-automator-${flexPmdVersion}-workflow"
-
-#
-# The directory where the FlexPMD command line client is stored
-#
-flexPmdCommandLineDirectory=${flexPmdWorkflowLocation}/command-line
-
-#
-# The directory where the FlexPMD violations viewer application is stored
-#
-viewerDirectory=${flexPmdWorkflowLocation}/violations-viewer
-
-#
-# The temporary directory where files are stored by the script
-#
-tmpDirectory=~/flexpmd
-
-
-#####################
-# Script Core #
-#####################
-
-tmpSourceDirectory=${tmpDirectory}/sourceDirectory
-resultDirectory=${tmpDirectory}
-tmpStdout=${tmpDirectory}/stdout
-tmpStderr=${tmpDirectory}/stderr
-
-rm -rf ${tmpDirectory}
-mkdir ${tmpDirectory}
-rm ${tmpSourceDirectory}
-rm ${resultDirectory}/pmd.xml
-rm ${tmpStderr}
-rm ${tmpStdout}
-
-cat > ${tmpSourceDirectory}
-
-sourceDirectory=`cat ${tmpSourceDirectory}`
-
-cd ${flexPmdCommandLineDirectory}
-
-java -jar flex-pmd-command-line-${flexPmdVersion}.jar -s "${sourceDirectory}" -o ${resultDirectory} > ${tmpStdout} 2> ${tmpStderr}
-
-report=${resultDirectory}/pmd.xml
-
-echo file://${viewerDirectory}/flex-pmd-violations-viewer-${flexPmdVersion}.html?report=$report
-</string>
- <key>CheckedForUserDefaultShell</key>
- <true/>
- <key>inputMethod</key>
- <integer>0</integer>
- <key>shell</key>
- <string>/bin/bash</string>
- <key>source</key>
- <string></string>
- </dict>
- <key>Application</key>
- <array>
- <string>Automator</string>
- </array>
- <key>BundleIdentifier</key>
- <string>com.apple.RunShellScript</string>
- <key>CFBundleVersion</key>
- <string>2.0.1</string>
- <key>CanShowSelectedItemsWhenRun</key>
- <false/>
- <key>CanShowWhenRun</key>
- <true/>
- <key>Category</key>
- <array>
- <string>AMCategoryUtilities</string>
- </array>
- <key>Class Name</key>
- <string>RunShellScriptAction</string>
- <key>InputUUID</key>
- <string>403A6D3E-FD99-4B71-8D42-C1C2E54807E3</string>
- <key>Keywords</key>
- <array>
- <string>Shell</string>
- <string>Script</string>
- <string>Command</string>
- <string>Run</string>
- <string>Unix</string>
- </array>
- <key>OutputUUID</key>
- <string>457C1F3B-569E-467A-95C7-DAFC85801AD5</string>
- <key>ShowWhenRun</key>
- <false/>
- <key>UUID</key>
- <string>7F7B8E52-6DD4-47FA-AF9D-74246B8DFA1A</string>
- <key>UnlocalizedApplications</key>
- <array>
- <string>Automator</string>
- </array>
- <key>arguments</key>
- <dict>
- <key>0</key>
- <dict>
- <key>default value</key>
- <integer>0</integer>
- <key>name</key>
- <string>inputMethod</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>0</string>
- </dict>
- <key>1</key>
- <dict>
- <key>default value</key>
- <string>/bin/sh</string>
- <key>name</key>
- <string>shell</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>1</string>
- </dict>
- <key>2</key>
- <dict>
- <key>default value</key>
- <string></string>
- <key>name</key>
- <string>source</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>2</string>
- </dict>
- <key>3</key>
- <dict>
- <key>default value</key>
- <string></string>
- <key>name</key>
- <string>COMMAND_STRING</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>3</string>
- </dict>
- <key>4</key>
- <dict>
- <key>default value</key>
- <false/>
- <key>name</key>
- <string>CheckedForUserDefaultShell</string>
- <key>required</key>
- <string>0</string>
- <key>type</key>
- <string>0</string>
- <key>uuid</key>
- <string>4</string>
- </dict>
- </dict>
- <key>isViewVisible</key>
- <true/>
- <key>location</key>
- <string>457.500000:431.000000</string>
- <key>nibPath</key>
- <string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib</string>
- </dict>
- <key>isViewVisible</key>
- <true/>
- </dict>
- <dict>
- <key>action</key>
- <dict>
- <key>AMAccepts</key>
- <dict>
- <key>Container</key>
- <string>List</string>
- <key>Optional</key>
- <false/>
- <key>Types</key>
- <array>
- <string>com.apple.cocoa.url</string>
- </array>
- </dict>
- <key>AMActionVersion</key>
- <string>1.0</string>
- <key>AMParameterProperties</key>
- <dict/>
- <key>AMProvides</key>
- <dict>
- <key>Container</key>
- <string>List</string>
- <key>Types</key>
- <array>
- <string>com.apple.cocoa.url</string>
- </array>
- </dict>
- <key>AMRequiredResources</key>
- <array/>
- <key>ActionBundlePath</key>
- <string>/System/Library/Automator/Display Webpages 2.action</string>
- <key>ActionName</key>
- <string>Display Webpages</string>
- <key>ActionParameters</key>
- <dict/>
- <key>Application</key>
- <array>
- <string>Safari</string>
- </array>
- <key>BundleIdentifier</key>
- <string>com.apple.Automator.Display_Webpages</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>CanShowSelectedItemsWhenRun</key>
- <false/>
- <key>CanShowWhenRun</key>
- <false/>
- <key>Category</key>
- <array>
- <string>AMCategoryInternet</string>
- </array>
- <key>Class Name</key>
- <string>Display_Webpages</string>
- <key>InputUUID</key>
- <string>84EA6E4D-9337-4CF6-9976-60DA2E4DB5FC</string>
- <key>Keywords</key>
- <array>
- <string>URL</string>
- <string>Web</string>
- <string>Display</string>
- <string>Open</string>
- <string>Show</string>
- </array>
- <key>OutputUUID</key>
- <string>8F04C323-3143-449D-8C71-0C5CACC0C875</string>
- <key>UUID</key>
- <string>89B93EE5-8B2B-48D4-B0D9-1AC49BB0AA6D</string>
- <key>UnlocalizedApplications</key>
- <array>
- <string>Safari</string>
- </array>
- <key>arguments</key>
- <dict/>
- </dict>
- </dict>
- </array>
- <key>connectors</key>
- <dict>
- <key>073CDD95-EB15-47E3-AE4D-9667F1C01ECF</key>
- <dict>
- <key>from</key>
- <string>B38DA4F4-3B0A-479A-8996-6FEFB5CE76DE - B38DA4F4-3B0A-479A-8996-6FEFB5CE76DE</string>
- <key>to</key>
- <string>7F7B8E52-6DD4-47FA-AF9D-74246B8DFA1A - 7F7B8E52-6DD4-47FA-AF9D-74246B8DFA1A</string>
- </dict>
- <key>56A224D4-DCA7-469A-974D-DAAAFF5B5871</key>
- <dict>
- <key>from</key>
- <string>7F7B8E52-6DD4-47FA-AF9D-74246B8DFA1A - 7F7B8E52-6DD4-47FA-AF9D-74246B8DFA1A</string>
- <key>to</key>
- <string>89B93EE5-8B2B-48D4-B0D9-1AC49BB0AA6D - 89B93EE5-8B2B-48D4-B0D9-1AC49BB0AA6D</string>
- </dict>
- </dict>
- <key>state</key>
- <dict>
- <key>EditorSplitViewPosition</key>
- <real>576</real>
- <key>MainSplitViewPosition_v2</key>
- <real>525</real>
- <key>windowFrame</key>
- <string>{{0, 51}, {1440, 827}}</string>
- <key>windowFrameTopLeft</key>
- <string>{{0, 0}, {1440, 827}}</string>
- <key>workflowViewScrollPosition</key>
- <string>{{0, 0}, {915, 576}}</string>
- </dict>
- <key>variables</key>
- <array>
- <dict>
- <key>UUID</key>
- <string>12F77683-5982-4DA7-A149-C34344BC6E5E</string>
- <key>identifier</key>
- <string>com.apple.Automator.Variable.Path</string>
- <key>name</key>
- <string>New Path</string>
- <key>value</key>
- <string>~/Desktop</string>
- </dict>
- </array>
-</dict>
-</plist>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-pmd-bundles/pom.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-bundles/pom.xml b/FlexPMD/flex-pmd-bundles/pom.xml
deleted file mode 100644
index 4251e89..0000000
--- a/FlexPMD/flex-pmd-bundles/pom.xml
+++ /dev/null
@@ -1,129 +0,0 @@
-<!--
-
-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>
- <artifactId>${project.parent.artifactId}-all-in-one-bundle</artifactId>
- <name>Adobe Flex PMD All-in-one bundle</name>
- <packaging>pom</packaging>
-
- <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>
-
- <dependencies>
-
-
- <dependency>
- <groupId>com.martiansoftware</groupId>
- <artifactId>jsap</artifactId>
- <version>${jsap.version}</version>
- </dependency>
-
- <!-- FlexPMD -->
-
- <dependency>
- <groupId>${project.parent.groupId}</groupId>
- <artifactId>flex-pmd-ant-task</artifactId>
- <version>${project.parent.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>${project.parent.groupId}</groupId>
- <artifactId>flex-pmd-command-line</artifactId>
- <version>${project.parent.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>${project.parent.groupId}</groupId>
- <artifactId>flex-pmd-automator</artifactId>
- <version>${project.parent.version}</version>
- <type>pom</type>
- <scope>compile</scope>
- </dependency>
-
- <!-- FlexCPD -->
-
- <dependency>
- <groupId>${project.parent.groupId}</groupId>
- <artifactId>flex-pmd-cpd-ant-task</artifactId>
- <version>${project.parent.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>${project.parent.groupId}</groupId>
- <artifactId>flex-pmd-cpd-command-line</artifactId>
- <version>${project.parent.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- FlexMetrics -->
-
- <dependency>
- <groupId>${project.parent.groupId}</groupId>
- <artifactId>flex-pmd-metrics-ant-task</artifactId>
- <version>${project.parent.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>${project.parent.groupId}</groupId>
- <artifactId>flex-pmd-metrics-command-line</artifactId>
- <version>${project.parent.version}</version>
- <scope>compile</scope>
- </dependency>
-
- </dependencies>
-
- <build>
- <plugins>
-
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>${maven-antrun-plugin.version}</version>
- <executions>
- <execution>
- <id>package-ant-task</id>
- <phase>install</phase>
- <configuration>
- <tasks>
- <mkdir dir="${project.build.directory}/release" />
- <unzip src="${project.build.directory}/../../flex-pmd-ant-task/target/flex-pmd-ant-task-${project.parent.version}.zip" dest="${project.build.directory}/release" />
- <unzip src="${project.build.directory}/../../flex-pmd-cpd-ant-task/target/flex-pmd-cpd-ant-task-${project.parent.version}.zip" dest="${project.build.directory}/release" />
- <unzip src="${project.build.directory}/../../flex-pmd-metrics-ant-task/target/flex-pmd-metrics-ant-task-${project.parent.version}.zip" dest="${project.build.directory}/release" />
- <unzip src="${project.build.directory}/../../flex-pmd-command-line/target/flex-pmd-command-line-${project.parent.version}.zip" dest="${project.build.directory}/release" />
- <unzip src="${project.build.directory}/../../flex-pmd-cpd-command-line/target/flex-pmd-cpd-command-line-${project.parent.version}.zip" dest="${project.build.directory}/release" />
- <unzip src="${project.build.directory}/../../flex-pmd-metrics-command-line/target/flex-pmd-metrics-command-line-${project.parent.version}.zip" dest="${project.build.directory}/release" />
- <unzip src="${project.build.directory}/../../flex-pmd-automator-workflow/target/flex-pmd-automator-${project.parent.version}-workflow.zip" dest="${project.build.directory}/release" />
- <delete dir="${project.build.directory}/release/command-line" />
- <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>
-
-</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-pmd-command-line-api/.pmd
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-command-line-api/.pmd b/FlexPMD/flex-pmd-command-line-api/.pmd
deleted file mode 100644
index b5c19d9..0000000
--- a/FlexPMD/flex-pmd-command-line-api/.pmd
+++ /dev/null
@@ -1,25 +0,0 @@
-<?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/e43b7a87/FlexPMD/flex-pmd-command-line-api/pom.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-command-line-api/pom.xml b/FlexPMD/flex-pmd-command-line-api/pom.xml
deleted file mode 100644
index cdd9c3e..0000000
--- a/FlexPMD/flex-pmd-command-line-api/pom.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<!--
-
-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-command-line-api</artifactId>
- <name>Adobe Flex PMD Command line API</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>
-
- <dependencies>
- <dependency>
- <groupId>com.martiansoftware</groupId>
- <artifactId>jsap</artifactId>
- <version>${jsap.version}</version>
- </dependency>
- </dependencies>
-
-</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/CommandLineOptions.java
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/CommandLineOptions.java b/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/CommandLineOptions.java
deleted file mode 100644
index e8aa66e..0000000
--- a/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/CommandLineOptions.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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;
-
-public enum CommandLineOptions implements ICommandLineOptions
-{
- EXLUDE_PACKAGE("excludePackage"),
- MXML_FACTOR("mxmlFactor"),
- OUTPUT("outputDirectory"),
- RULE_SET("ruleSet"),
- SOURCE_DIRECTORY("sourceDirectory");
-
- private String name;
-
- private CommandLineOptions( final String nameToBeSet )
- {
- name = nameToBeSet;
- }
-
- @Override
- public String toString()
- {
- return name;
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/CommandLineUtils.java
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/CommandLineUtils.java b/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/CommandLineUtils.java
deleted file mode 100644
index ba212a4..0000000
--- a/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/CommandLineUtils.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * 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;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-
-import com.martiansoftware.jsap.FlaggedOption;
-import com.martiansoftware.jsap.JSAP;
-import com.martiansoftware.jsap.JSAPException;
-
-public final class CommandLineUtils
-{
- public static List< File > computeSourceList( final String source )
- {
- if ( !source.contains( "," ) )
- {
- return null;
- }
- final List< File > sourceList = new ArrayList< File >();
- for ( int i = 0; i < source.split( "," ).length; i++ )
- {
- sourceList.add( new File( source.split( "," )[ i ] ) ); // NOPMD
- }
- return sourceList;
- }
-
- public static void registerParameter( final JSAP jsap,
- final ICommandLineOptions option,
- final boolean required ) throws JSAPException
- {
- final String optionName = option.toString();
-
- jsap.registerParameter( new FlaggedOption( optionName ).setStringParser( JSAP.STRING_PARSER )
- .setRequired( required )
- .setShortFlag( optionName.charAt( 0 ) )
- .setLongFlag( optionName ) );
- }
-
- private CommandLineUtils()
- {
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/ICommandLineOptions.java
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/ICommandLineOptions.java b/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/ICommandLineOptions.java
deleted file mode 100644
index 8d0e250..0000000
--- a/FlexPMD/flex-pmd-command-line-api/src/main/java/com/adobe/ac/pmd/ICommandLineOptions.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * 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;
-
-public interface ICommandLineOptions
-{
-
-}
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e43b7a87/FlexPMD/flex-pmd-command-line-api/src/test/java/com/adobe/ac/pmd/CommandLineOptionsTest.java
----------------------------------------------------------------------
diff --git a/FlexPMD/flex-pmd-command-line-api/src/test/java/com/adobe/ac/pmd/CommandLineOptionsTest.java b/FlexPMD/flex-pmd-command-line-api/src/test/java/com/adobe/ac/pmd/CommandLineOptionsTest.java
deleted file mode 100644
index 9ced093..0000000
--- a/FlexPMD/flex-pmd-command-line-api/src/test/java/com/adobe/ac/pmd/CommandLineOptionsTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * 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;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
-
-public class CommandLineOptionsTest
-{
- @Test
- public void testToString()
- {
- assertEquals( "outputDirectory",
- CommandLineOptions.OUTPUT.toString() );
- }
-}