http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab1.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab1.mxml b/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab1.mxml new file mode 100644 index 0000000..dfe492c --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab1.mxml @@ -0,0 +1,24 @@ +<?xml version="1.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. + +--> +<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> + + <s:Label text="tab1"/> + +</s:View>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab2.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab2.mxml b/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab2.mxml new file mode 100644 index 0000000..e3a3783 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab2.mxml @@ -0,0 +1,24 @@ +<?xml version="1.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. + +--> +<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> + + <s:Label text="tab2"/> + +</s:View> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/resources/descriptor.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/resources/descriptor.xml b/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/resources/descriptor.xml new file mode 100644 index 0000000..cdc220d --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/examples/mobile/simple-air/src/main/resources/descriptor.xml @@ -0,0 +1,297 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<application xmlns="http://ns.adobe.com/air/application/17.0"> + +<!-- Adobe AIR Application Descriptor File Template. + + Specifies parameters for identifying, installing, and launching AIR applications. + + xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.5 + The last segment of the namespace specifies the version + of the AIR runtime required for this application to run. + + minimumPatchLevel - The minimum patch level of the AIR runtime required to run + the application. Optional. +--> + + <!-- A universally unique application identifier. Must be unique across all AIR applications. + Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. --> + <id>SimpleAirMobile</id> + + <!-- Used as the filename for the application. Required. --> + <filename>SimpleAirMobile</filename> + + <!-- The name that is displayed in the AIR application installer. + May have multiple values for each language. See samples or xsd schema file. Optional. --> + <name>SimpleAirMobile</name> + + <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade. + Values can also be 1-part or 2-part. It is not necessary to have a 3-part value. + An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . --> + <versionNumber>1.0.0</versionNumber> + + <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. --> + <!-- <versionLabel></versionLabel> --> + + <!-- Description, displayed in the AIR application installer. + May have multiple values for each language. See samples or xsd schema file. Optional. --> + <!-- <description></description> --> + + <!-- Copyright information. Optional --> + <!-- <copyright></copyright> --> + + <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 --> + <!-- <publisherID></publisherID> --> + + <!-- Settings for the application's initial window. Required. --> + <initialWindow> + <!-- The main SWF or HTML file of the application. Required. --> + <!-- Note: In Flash Builder, the SWF reference is set automatically. --> + <content>${output}</content> + + <!-- The title of the main window. Optional. --> + <!-- <title></title> --> + + <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --> + <!-- <systemChrome></systemChrome> --> + + <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --> + <!-- <transparent></transparent> --> + + <!-- Whether the window is initially visible. Optional. Default false. --> + <!-- <visible></visible> --> + + <!-- Whether the user can minimize the window. Optional. Default true. --> + <!-- <minimizable></minimizable> --> + + <!-- Whether the user can maximize the window. Optional. Default true. --> + <!-- <maximizable></maximizable> --> + + <!-- Whether the user can resize the window. Optional. Default true. --> + <!-- <resizable></resizable> --> + + <!-- The window's initial width in pixels. Optional. --> + <!-- <width></width> --> + + <!-- The window's initial height in pixels. Optional. --> + <!-- <height></height> --> + + <!-- The window's initial x position. Optional. --> + <!-- <x></x> --> + + <!-- The window's initial y position. Optional. --> + <!-- <y></y> --> + + <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. --> + <!-- <minSize></minSize> --> + + <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. --> + <!-- <maxSize></maxSize> --> + + <!-- The aspect ratio of the app ("portrait" or "landscape" or "any"). Optional. Mobile only. Default is the natural orientation of the device --> + + <!-- <aspectRatio></aspectRatio> --> + + <!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false --> + + <!-- <autoOrients></autoOrients> --> + + <!-- Whether the app launches in full screen. Optional. Mobile only. Default false --> + + <!-- <fullScreen></fullScreen> --> + + <!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto --> + + <!-- <renderMode></renderMode> --> + + <!-- Whether the default direct mode rendering context allocates storage for depth and stencil buffers. Optional. Default false. --> + <!-- <depthAndStencil></depthAndStencil> --> + + <!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none"). Optional. Defaults "pan." --> + <!-- <softKeyboardBehavior></softKeyboardBehavior> --> + + <!-- Display Resolution for the app (either "standard" or "high"). Optional, OSX-only. Default "standard" --> + <!-- <requestedDisplayResolution></requestedDisplayResolution> --> + <autoOrients>true</autoOrients> + <fullScreen>false</fullScreen> + <visible>true</visible> + <softKeyboardBehavior>none</softKeyboardBehavior> + </initialWindow> + + <!-- We recommend omitting the supportedProfiles element, --> + <!-- which in turn permits your application to be deployed to all --> + <!-- devices supported by AIR. If you wish to restrict deployment --> + <!-- (i.e., to only mobile devices) then add this element and list --> + <!-- only the profiles which your application does support. --> + <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> --> + + <!-- Languages supported by application --> + <!-- Only these languages can be specified --> + <!-- <supportedLanguages>en de cs es fr it ja ko nl pl pt ru sv tr zh</supportedLanguages> --> + + <!-- The subpath of the standard default installation location to use. Optional. --> + <!-- <installFolder></installFolder> --> + + <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --> + <!-- <programMenuFolder></programMenuFolder> --> + + <!-- The icon the system uses for the application. For at least one resolution, + specify the path to a PNG file included in the AIR package. Optional. --> + <!-- <icon> + <image16x16></image16x16> + <image29x29></image29x29> + <image32x32></image32x32> + <image36x36></image36x36> + <image48x48></image48x48> + <image50x50></image50x50> + <image57x57></image57x57> + <image58x58></image58x58> + <image72x72></image72x72> + <image96x96></image96x96> + <image100x100></image100x100> + <image114x114></image114x114> + <image128x128></image128x128> + <image144x144></image144x144> + <image512x512></image512x512> + <image732x412></image732x412> + <image1024x1024></image1024x1024> + </icon> --> + + <!-- Whether the application handles the update when a user double-clicks an update version + of the AIR file (true), or the default AIR application installer handles the update (false). + Optional. Default false. --> + <!-- <customUpdateUI></customUpdateUI> --> + + <!-- Whether the application can be launched when the user clicks a link in a web browser. + Optional. Default false. --> + <!-- <allowBrowserInvocation></allowBrowserInvocation> --> + + <!-- Listing of file types for which the application can register. Optional. --> + <!-- <fileTypes> --> + + <!-- Defines one file type. Optional. --> + <!-- <fileType> --> + + <!-- The name that the system displays for the registered file type. Required. --> + <!-- <name></name> --> + + <!-- The extension to register. Required. --> + <!-- <extension></extension> --> + + <!-- The description of the file type. Optional. --> + <!-- <description></description> --> + + <!-- The MIME content type. --> + <!-- <contentType></contentType> --> + + <!-- The icon to display for the file type. Optional. --> + <!-- <icon> + <image16x16></image16x16> + <image32x32></image32x32> + <image48x48></image48x48> + <image128x128></image128x128> + </icon> --> + + <!-- </fileType> --> + <!-- </fileTypes> --> + + <!-- iOS specific capabilities --> + <!-- <iPhone> --> + <!-- A list of plist key/value pairs to be added to the application Info.plist --> + <!-- <InfoAdditions> + <![CDATA[ + <key>UIDeviceFamily</key> + <array> + <string>1</string> + <string>2</string> + </array> + <key>UIStatusBarStyle</key> + <string>UIStatusBarStyleBlackOpaque</string> + <key>UIRequiresPersistentWiFi</key> + <string>YES</string> + ]]> + </InfoAdditions> --> + <!-- A list of plist key/value pairs to be added to the application Entitlements.plist --> + <!-- <Entitlements> + <![CDATA[ + <key>keychain-access-groups</key> + <array> + <string></string> + <string></string> + </array> + ]]> + </Entitlements> --> + <!-- Display Resolution for the app (either "standard" or "high"). Optional. Default "standard" --> + <!-- <requestedDisplayResolution></requestedDisplayResolution> --> + <!-- Forcing Render Mode CPU for the devices mentioned. Optional --> + <!-- <forceCPURenderModeForDevices></forceCPURenderModeForDevices> --> + <!-- File containing line separated list of external swf paths. These swfs won't be + packaged inside the application and corresponding stripped swfs will be output in + externalStrippedSwfs folder. --> + <!-- <externalSwfs></externalSwfs> --> + <!-- </iPhone> --> + + <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. --> + <!--<android> --> + <!-- <manifestAdditions> + <![CDATA[ + <manifest android:installLocation="auto"> + <uses-permission android:name="android.permission.INTERNET"/> + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> + <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/> + <application android:enabled="true"> + <activity android:excludeFromRecents="false"> + <intent-filter> + <action android:name="android.intent.action.MAIN"/> + <category android:name="android.intent.category.LAUNCHER"/> + </intent-filter> + </activity> + </application> + </manifest> + ]]> + </manifestAdditions> --> + <!-- Color depth for the app (either "32bit" or "16bit"). Optional. Default 16bit before namespace 3.0, 32bit after --> + <!-- <colorDepth></colorDepth> --> + <!-- Indicates if the app contains video or not. Necessary for ordering of video planes with graphics plane, especially in Jellybean - if you app does video this must be set to true - valid values are true or false --> + <!-- <containsVideo></containsVideo> --> + <!-- </android> --> + <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file --> + + <android> + <colorDepth>16bit</colorDepth> + <manifestAdditions><![CDATA[ + <manifest android:installLocation="auto"> + <!--See the Adobe AIR documentation for more information about setting Google Android permissions--> + <!--Removing the permission android.permission.INTERNET will have the side effect + of preventing you from debugging your application on your device--> + <uses-permission android:name="android.permission.INTERNET"/> + <!--<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>--> + <!--<uses-permission android:name="android.permission.READ_PHONE_STATE"/>--> + <!--<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>--> + <!--The DISABLE_KEYGUARD and WAKE_LOCK permissions should be toggled together + in order to access AIR's SystemIdleMode APIs--> + <!--<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>--> + <!--<uses-permission android:name="android.permission.WAKE_LOCK"/>--> + <!--<uses-permission android:name="android.permission.CAMERA"/>--> + <!--<uses-permission android:name="android.permission.RECORD_AUDIO"/>--> + <!--The ACCESS_NETWORK_STATE and ACCESS_WIFI_STATE permissions should be toggled + together in order to use AIR's NetworkInfo APIs--> + <!--<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>--> + <!--<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>--> + </manifest> + + ]]></manifestAdditions> + </android> + <!--iPhone> + <InfoAdditions><![CDATA[ + <key>UIDeviceFamily</key> + <array> + <string>1</string> + <string>2</string> + </array> + <key>UIApplicationExitsOnSuspend</key> + <true/> + ]]></InfoAdditions> + <requestedDisplayResolution>high</requestedDisplayResolution> + </iPhone--> +</application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/examples/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/examples/pom.xml b/flex-maven-tools/flex-maven-plugin/examples/pom.xml new file mode 100644 index 0000000..c8028bd --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/examples/pom.xml @@ -0,0 +1,120 @@ +<?xml version="1.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>org.apache.flex.examples</groupId> + <artifactId>parent</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <modules> + <module>flexjs</module> + <module>i18n</module> + <module>mobile</module> + </modules> + + <repositories> + <!-- + This is where we get released stuff from. + --> + <repository> + <id>maven-central</id> + <url>http://repo1.maven.org/maven2/</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <!-- + This is where we get unreleased Apache stuff from + --> + <repository> + <id>apache-snapshots</id> + <url>http://repository.apache.org/snapshots/</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + <!-- + This is where we get unreleased Flexmojos stuff from. + --> + <repository> + <id>sonatype-snapshots</id> + <url>https://oss.sonatype.org/content/repositories/snapshots/</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories> + + <pluginRepositories> + <!-- + This is where we get released stuff from. + --> + <pluginRepository> + <id>maven-central</id> + <url>http://repo1.maven.org/maven2/</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </pluginRepository> + <!-- + This is where we get unreleased Apache stuff from + --> + <pluginRepository> + <id>apache-snapshots</id> + <url>http://repository.apache.org/snapshots/</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + <!-- + This is where we get unreleased Flexmojos stuff from. + --> + <pluginRepository> + <id>sonatype-snapshots</id> + <url>https://oss.sonatype.org/content/repositories/snapshots/</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + </pluginRepositories> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/pom.xml b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/pom.xml new file mode 100644 index 0000000..1835985 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/pom.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.plugins</groupId> + <artifactId>plugins</artifactId> + <version>1.0.0-SNAPSHOT</version> + </parent> + + <!-- This package name is intentional --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-flex-plugin</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>maven-plugin</packaging> + + <name>Maven-Flex-Plugin / Plugins / flex-maven-plugin</name> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <version>3.2</version> + <configuration> + <encoding>${project.encoding}</encoding> + <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> + </configuration> + <executions> + <execution> + <id>mojo-descriptor</id> + <phase>process-classes</phase> + <goals> + <goal>descriptor</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-core</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.plugin-tools</groupId> + <artifactId>maven-plugin-annotations</artifactId> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.apache.flex.components</groupId> + <artifactId>api</artifactId> + <version>1.0.0-SNAPSHOT</version> + </dependency> + <!-- Compiler implementations --> + <dependency> + <groupId>org.apache.flex.components</groupId> + <artifactId>compiler-falcon</artifactId> + <version>1.0.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.components</groupId> + <artifactId>compiler-mxmlc</artifactId> + <version>1.0.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.components</groupId> + <artifactId>compiler-compc</artifactId> + <version>1.0.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.components</groupId> + <artifactId>compiler-asdoc</artifactId> + <version>1.0.0-SNAPSHOT</version> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/AbstractFlexMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/AbstractFlexMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/AbstractFlexMojo.java new file mode 100644 index 0000000..8fea8ee --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/AbstractFlexMojo.java @@ -0,0 +1,6 @@ +package org.apache.flex.maven.plugins.flex; + +import org.apache.maven.plugin.AbstractMojo; + +public abstract class AbstractFlexMojo extends AbstractMojo { +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/compiler/CompilerMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/compiler/CompilerMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/compiler/CompilerMojo.java new file mode 100644 index 0000000..1c49407 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/compiler/CompilerMojo.java @@ -0,0 +1,63 @@ +/* + * 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.apache.flex.maven.plugins.flex.compiler; + +import org.apache.flex.maven.plugins.flex.AbstractFlexMojo; +import org.apache.maven.plugin.MojoExecution; +import org.apache.maven.plugin.descriptor.PluginDescriptor; +import org.apache.maven.plugins.annotations.*; +import org.apache.maven.project.MavenProject; + +import java.util.Map; + +@Mojo(name = "compile", + defaultPhase = LifecyclePhase.COMPILE, + requiresDependencyResolution = ResolutionScope.COMPILE, + threadSafe = true) +public class CompilerMojo extends AbstractFlexMojo { + + @Parameter(defaultValue = "false") + protected boolean useLegacyCompiler; + + @Component + protected Map<String, Compiler> compilerMap; + + @Component + protected MavenProject project; + + @Component + protected MojoExecution mojoEcecution; + + public void execute() { + if(mojoEcecution.getLifecyclePhase().equals(LifecyclePhase.COMPILE.id())) { + if(useLegacyCompiler) { + if(project.getPackaging().equalsIgnoreCase("SWC")) { + compilerMap.get("compc").compile(project); + } else if(project.getPackaging().equalsIgnoreCase("SWF")) { + compilerMap.get("mxmlc").compile(project); + } else { + throw new RuntimeException("Wrong packaging"); + } + } else { + compilerMap.get("falcon").compile(project); + } + } else if(mojoEcecution.getLifecyclePhase().equals(LifecyclePhase.PROCESS_SOURCES.id())) { + compilerMap.get("asdoc").compile(project); + } + } + +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/generator/GeneratorMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/generator/GeneratorMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/generator/GeneratorMojo.java new file mode 100644 index 0000000..ddcf3c1 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/generator/GeneratorMojo.java @@ -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 org.apache.flex.maven.plugins.flex.generator; + +import org.apache.flex.maven.plugins.flex.AbstractFlexMojo; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; + +@Mojo(name = "generate", + defaultPhase = LifecyclePhase.GENERATE_SOURCES, + threadSafe = true) +public class GeneratorMojo extends AbstractFlexMojo { + + public void execute() { + getLog().debug("Executing generate"); + } + +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/optimizer/OptimizerMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/optimizer/OptimizerMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/optimizer/OptimizerMojo.java new file mode 100644 index 0000000..7457510 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/optimizer/OptimizerMojo.java @@ -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 org.apache.flex.maven.plugins.flex.optimizer; + +import org.apache.flex.maven.plugins.flex.AbstractFlexMojo; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; + +@Mojo(name = "optimize", + defaultPhase = LifecyclePhase.PROCESS_CLASSES, + threadSafe = true) +public class OptimizerMojo extends AbstractFlexMojo { + + public void execute() { + getLog().debug("Executing optimize"); + } + +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/packager/PackagerMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/packager/PackagerMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/packager/PackagerMojo.java new file mode 100644 index 0000000..b430d3b --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/packager/PackagerMojo.java @@ -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 org.apache.flex.maven.plugins.flex.packager; + +import org.apache.flex.maven.plugins.flex.AbstractFlexMojo; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; + +@Mojo(name = "package", + defaultPhase = LifecyclePhase.PACKAGE, + threadSafe = true) +public class PackagerMojo extends AbstractFlexMojo { + + public void execute() { + getLog().debug("Executing package"); + } + +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestCompilerMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestCompilerMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestCompilerMojo.java new file mode 100644 index 0000000..e8850ae --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestCompilerMojo.java @@ -0,0 +1,44 @@ +/* + * 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.apache.flex.maven.plugins.flex.test; + +import org.apache.flex.maven.plugins.flex.compiler.CompilerMojo; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.ResolutionScope; + +@Mojo(name = "test-compile", + defaultPhase = LifecyclePhase.TEST_COMPILE, + requiresDependencyResolution = ResolutionScope.TEST, + threadSafe = true) +public class TestCompilerMojo extends CompilerMojo { + + public void execute() { + if (useLegacyCompiler) { + if (project.getPackaging().equalsIgnoreCase("SWC")) { + compilerMap.get("compc").compile(project); + } else if (project.getPackaging().equalsIgnoreCase("SWF")) { + compilerMap.get("mxmlc").compile(project); + } else { + throw new RuntimeException("Wrong packaging"); + } + } else { + compilerMap.get("falcon").compile(project); + } + } + +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestGeneratorMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestGeneratorMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestGeneratorMojo.java new file mode 100644 index 0000000..ef831c4 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestGeneratorMojo.java @@ -0,0 +1,34 @@ +/* + * 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.apache.flex.maven.plugins.flex.test; + +import org.apache.flex.maven.plugins.flex.compiler.CompilerMojo; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.ResolutionScope; + +@Mojo(name = "test-generate", + defaultPhase = LifecyclePhase.GENERATE_TEST_SOURCES, + requiresDependencyResolution = ResolutionScope.TEST, + threadSafe = true) +public class TestGeneratorMojo extends CompilerMojo { + + public void execute() { + getLog().debug("Executing test-generate"); + } + +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestRunnerMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestRunnerMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestRunnerMojo.java new file mode 100644 index 0000000..3472133 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/java/org/apache/flex/maven/plugins/flex/test/TestRunnerMojo.java @@ -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 org.apache.flex.maven.plugins.flex.test; + +import org.apache.flex.maven.plugins.flex.AbstractFlexMojo; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; + +@Mojo(name = "test", + defaultPhase = LifecyclePhase.TEST, + threadSafe = true) +public class TestRunnerMojo extends AbstractFlexMojo { + + public void execute() { + getLog().debug("Executing test"); + } + +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/resources/META-INF/plexus/components.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/resources/META-INF/plexus/components.xml b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/resources/META-INF/plexus/components.xml new file mode 100644 index 0000000..5dc6a3b --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-flex-plugin/src/main/resources/META-INF/plexus/components.xml @@ -0,0 +1,109 @@ +<component-set> + <components> + + <!-- + + Default lifecycle for a flex artifact with packaging "swf" + + --> + <component> + <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role> + <role-hint>swf</role-hint> + <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation> + <configuration> + <phases> + <!--validate></validate> + <initialize></initialize--> + <generate-sources>org.apache.maven.plugins:maven-flex-plugin:generate</generate-sources> + <process-sources>org.apache.maven.plugins:maven-flex-plugin:compile</process-sources> + <!--generate-resources></generate-resources> + <process-resources></process-resources--> + <compile>org.apache.maven.plugins:maven-flex-plugin:compile</compile> + <!--process-classes></process-classes--> + <generate-test-sources>org.apache.maven.plugins:maven-flex-plugin:test-generate</generate-test-sources> + <!--process-test-sources></process-test-sources> + <generate-test-resources></generate-test-resources> + <process-test-resources></process-test-resources--> + <test-compile>org.apache.maven.plugins:maven-flex-plugin:test-compile</test-compile> + <!--process-test-classes></process-test-classes--> + <test>org.apache.maven.plugins:maven-flex-plugin:test</test> + <!--prepare-package></prepare-package--> + <package>org.apache.maven.plugins:maven-flex-plugin:optimize</package> + <!--pre-integration-test></pre-integration-test> + <integration-test></integration-test> + <post-integration-test></post-integration-test> + <verify></verify> + <install></install> + <deploy></deploy--> + </phases> + </configuration> + </component> + + <!-- + + Default lifecycle for a flex artifact with packaging "swc" + + --> + <component> + <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role> + <role-hint>swc</role-hint> + <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation> + <configuration> + <phases> + <!--validate></validate> + <initialize></initialize--> + <generate-sources>org.apache.maven.plugins:maven-flex-plugin:generate</generate-sources> + <process-sources>org.apache.maven.plugins:maven-flex-plugin:compile</process-sources> + <!--generate-resources></generate-resources> + <process-resources></process-resources--> + <compile>org.apache.maven.plugins:maven-flex-plugin:compile</compile> + <!--process-classes></process-classes--> + <generate-test-sources>org.apache.maven.plugins:maven-flex-plugin:test-generate</generate-test-sources> + <!--process-test-sources></process-test-sources> + <generate-test-resources></generate-test-resources> + <process-test-resources></process-test-resources--> + <test-compile>org.apache.maven.plugins:maven-flex-plugin:test-compile</test-compile> + <!--process-test-classes></process-test-classes--> + <test>org.apache.maven.plugins:maven-flex-plugin:test</test> + <!--prepare-package></prepare-package--> + <package>org.apache.maven.plugins:maven-flex-plugin:optimize</package> + <!--pre-integration-test></pre-integration-test> + <integration-test></integration-test> + <post-integration-test></post-integration-test> + <verify></verify> + <install></install> + <deploy></deploy--> + </phases> + </configuration> + </component> + + <!-- + + Tell Maven how to deal with the different types of flex artifacts + + --> + <component> + <role>org.apache.maven.artifact.handler.ArtifactHandler</role> + <role-hint>swc</role-hint> + <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation> + <configuration> + <!-- Extension used by artifacts in the repository --> + <extension>swc</extension> + <!-- Type used when specifying dependencies --> + <type>swc</type> + <!-- Type used when specifying the packaging of an artifact --> + <packaging>swc</packaging> + </configuration> + </component> + <component> + <role>org.apache.maven.artifact.handler.ArtifactHandler</role> + <role-hint>swf</role-hint> + <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation> + <configuration> + <extension>swf</extension> + <type>swf</type> + <packaging>swf</packaging> + </configuration> + </component> + </components> +</component-set> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-mavenizer-plugin/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-mavenizer-plugin/pom.xml b/flex-maven-tools/flex-maven-plugin/plugins/maven-mavenizer-plugin/pom.xml new file mode 100644 index 0000000..bcfd5c7 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-mavenizer-plugin/pom.xml @@ -0,0 +1,75 @@ +<?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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.plugins</groupId> + <artifactId>plugins</artifactId> + <version>1.0.0-SNAPSHOT</version> + </parent> + + <!-- This package name is intentional --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-mavenizer-plugin</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>maven-plugin</packaging> + + <name>Maven-Flex-Plugin / Plugins / flex-mavenizer-plugin</name> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <version>3.2</version> + <configuration> + <encoding>${project.encoding}</encoding> + <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> + </configuration> + <executions> + <execution> + <id>mojo-descriptor</id> + <phase>process-classes</phase> + <goals> + <goal>descriptor</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.plugin-tools</groupId> + <artifactId>maven-plugin-annotations</artifactId> + <scope>compile</scope> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/maven-mavenizer-plugin/src/main/java/org/apache/flex/maven/plugins/mavenizer/MavenizerMojo.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/maven-mavenizer-plugin/src/main/java/org/apache/flex/maven/plugins/mavenizer/MavenizerMojo.java b/flex-maven-tools/flex-maven-plugin/plugins/maven-mavenizer-plugin/src/main/java/org/apache/flex/maven/plugins/mavenizer/MavenizerMojo.java new file mode 100644 index 0000000..3c6c117 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/maven-mavenizer-plugin/src/main/java/org/apache/flex/maven/plugins/mavenizer/MavenizerMojo.java @@ -0,0 +1,41 @@ +/* + * 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.apache.flex.maven.plugins.mavenizer; + +import org.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.Parameter; + +import java.io.File; + +@Mojo(name = "mavenizer", + defaultPhase = LifecyclePhase.NONE, + threadSafe = false) +public class MavenizerMojo extends AbstractMojo { + + @Parameter(property = "org.apache.flex.sdk-home-dir", readonly = true, required = true) + protected File sdkHomeDirectory; + + @Parameter(property = "settings.localRepository", readonly = true, required = true) + protected String localRepository; + + public void execute() { + System.out.println("Installing FDK from " + sdkHomeDirectory + " to " + localRepository); + } + +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/plugins/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/plugins/pom.xml b/flex-maven-tools/flex-maven-plugin/plugins/pom.xml new file mode 100644 index 0000000..12de623 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/plugins/pom.xml @@ -0,0 +1,46 @@ +<?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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>flex-plugin-parent</artifactId> + <version>1.0.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.plugins</groupId> + <artifactId>plugins</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <name>Maven-Flex-Plugin / Plugins</name> + + <modules> + <!-- Plugin for actually performing the flex builds --> + <module>maven-flex-plugin</module> + <!-- Plugin for generating the maven artifacts for performing flex maven builds --> + <module>maven-mavenizer-plugin</module> + </modules> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/pom.xml b/flex-maven-tools/flex-maven-plugin/pom.xml new file mode 100644 index 0000000..f05ac69 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/pom.xml @@ -0,0 +1,127 @@ +<?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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex</groupId> + <artifactId>flex-plugin-parent</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <name>Maven-Flex-Plugin (Parent)</name> + <description>Maven plugin to allow building of artifacts using Apache Flex</description> + <url>http://incubator.apache.org/flex/</url> + <inceptionYear>2012</inceptionYear> + + <organization> + <name>The Apache Software Foundation</name> + <url>http://apache.org/</url> + </organization> + + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + </license> + </licenses> + + <developers> + <developer> + <id>cdutz</id> + <name>Chrisotfer Dutz</name> + <email>[email protected]</email> + <roles> + <role>developer</role> + </roles> + <timezone>+1</timezone> + </developer> + </developers> + + <scm> + <connection> + scm:svn:https://svn.apache.org/repos/asf/incubator/flex/utilities/trunk/maven-flex-plugin + </connection> + <developerConnection> + scm:svn:https://svn.apache.org/repos/asf/incubator/flex/utilities/trunk/maven-flex-plugin + </developerConnection> + <url>https://svn.apache.org/repos/asf/incubator/flex/utilities/trunk/maven-flex-plugin</url> + </scm> + + <properties> + <project.encoding>UTF-8</project.encoding> + <project.build.sourceEncoding>${project.encoding}</project.build.sourceEncoding> + <jdk.version>1.6</jdk.version> + <maven.version>3.0.4</maven.version> + </properties> + + <modules> + <module>plugins</module> + <module>components</module> + <module>testsuite</module> + </modules> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.4</version> + <configuration> + <source>1.6</source> + <target>1.6</target> + <encoding>${project.encoding}</encoding> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>2.5</version> + <configuration> + <encoding>${project.encoding}</encoding> + </configuration> + </plugin> + </plugins> + </build> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-core</artifactId> + <version>${maven.version}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <version>${maven.version}</version> + </dependency> + <dependency> + <groupId>org.apache.maven.plugin-tools</groupId> + <artifactId>maven-plugin-annotations</artifactId> + <version>3.2</version> + <scope>compile</scope> + </dependency> + </dependencies> + </dependencyManagement> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/testsuite/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/testsuite/pom.xml b/flex-maven-tools/flex-maven-plugin/testsuite/pom.xml new file mode 100644 index 0000000..e4984e1 --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/testsuite/pom.xml @@ -0,0 +1,39 @@ +<?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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>flex-plugin-parent</artifactId> + <version>1.0.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.testsuite</groupId> + <artifactId>testsuite</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>jar</packaging> + + <name>Maven-Flex-Plugin / Testsuite</name> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swc/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swc/pom.xml b/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swc/pom.xml new file mode 100644 index 0000000..37a70ec --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swc/pom.xml @@ -0,0 +1,45 @@ +<?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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.testsuite</groupId> + <artifactId>flex.general.simple-swc</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swc</packaging> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-flex-plugin</artifactId> + <version>1.0.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <useLegacyCompiler>false</useLegacyCompiler> + </configuration> + </plugin> + </plugins> + </build> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swc/src/main/flex/Main.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swc/src/main/flex/Main.mxml b/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swc/src/main/flex/Main.mxml new file mode 100644 index 0000000..40c8efd --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swc/src/main/flex/Main.mxml @@ -0,0 +1,23 @@ +<?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:s="library://ns.adobe.com/flex/spark"> + <s:Label text="Hello World!"/> +</s:Application> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swf/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swf/pom.xml b/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swf/pom.xml new file mode 100644 index 0000000..c03e53b --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swf/pom.xml @@ -0,0 +1,45 @@ +<?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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.testsuite</groupId> + <artifactId>flex.general.simple-swf</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-flex-plugin</artifactId> + <version>1.0.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <useLegacyCompiler>false</useLegacyCompiler> + </configuration> + </plugin> + </plugins> + </build> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swf/src/main/flex/Main.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swf/src/main/flex/Main.mxml b/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swf/src/main/flex/Main.mxml new file mode 100644 index 0000000..40c8efd --- /dev/null +++ b/flex-maven-tools/flex-maven-plugin/testsuite/projects/concepts/flex/general/simple-swf/src/main/flex/Main.mxml @@ -0,0 +1,23 @@ +<?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:s="library://ns.adobe.com/flex/spark"> + <s:Label text="Hello World!"/> +</s:Application> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-sdk-converter/LICENSE ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-sdk-converter/LICENSE b/flex-maven-tools/flex-sdk-converter/LICENSE new file mode 100644 index 0000000..6b0b127 --- /dev/null +++ b/flex-maven-tools/flex-sdk-converter/LICENSE @@ -0,0 +1,203 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed 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. + http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/flex-sdk-converter/NOTICE ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-sdk-converter/NOTICE b/flex-maven-tools/flex-sdk-converter/NOTICE new file mode 100644 index 0000000..d1becf0 --- /dev/null +++ b/flex-maven-tools/flex-sdk-converter/NOTICE @@ -0,0 +1,5 @@ +Apache Flex Mavenizer +Copyright 2015 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/).
