[israfil-mojo commit] r612 - in trunk/maven-flex2-plugin/src/site: . apt/examples

11 views
Skip to first unread message

codesite...@google.com

unread,
Mar 3, 2008, 10:32:39 PM3/3/08
to israfil-...@googlegroups.com
Author: christianedwardgruber
Date: Mon Mar 3 19:32:06 2008
New Revision: 612

Added:
trunk/maven-flex2-plugin/src/site/apt/examples/extra_parameters_project.apt
Modified:
trunk/maven-flex2-plugin/src/site/apt/examples/simple_war_project.apt
trunk/maven-flex2-plugin/src/site/site.xml

Log:
fix a few documentation bits, including an 'extra params' example.

Added: trunk/maven-flex2-plugin/src/site/apt/examples/extra_parameters_project.apt
==============================================================================
--- (empty file)
+++
trunk/maven-flex2-plugin/src/site/apt/examples/extra_parameters_project.apt
Mon Mar 3 19:32:06 2008
@@ -0,0 +1,43 @@
+Examples
+
+ For other examples, please look at the test projects in src/it.
+
+
+
+* Project with extra parameters
+
+ A swf project that uses a parameter not supported by the plugin,
but available to the underlying compiler.
+
+-------------------
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.israfil.examples</groupId>
+ <artifactId>israfil-extraparam-example</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>swc</packaging>
+ <build>
+ <!-- if you want this vs. artifactId.swf use finalName -->
+ <finalName>exampleApp</finalName>
+ <plugins>
+ <plugin>
+ <groupId>net.israfil.mojo</groupId>
+ <artifactId>maven-flex2-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <extensions>true</extensions>
+ <configuration>
+ <flexHome>${flex.home}</flexHome>
+ <useNetwork>true</useNetwork>
+ <main>ExampleApp.mxml</main>
+ <extraParameters>
+ <parameter><name>benchmark</name></parameter>
+ <parameter>
+ <name>compiler.actionscript-file-encoding</name>
+ <values><value>iso-8859-1</value></values>
+ </parameter>
+ </extraParameters>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
+-------------------

Modified: trunk/maven-flex2-plugin/src/site/apt/examples/simple_war_project.apt
==============================================================================
---
trunk/maven-flex2-plugin/src/site/apt/examples/simple_war_project.apt (original)
+++
trunk/maven-flex2-plugin/src/site/apt/examples/simple_war_project.apt
Mon Mar 3 19:32:06 2008
@@ -3,26 +3,26 @@
For other examples, please look at the test projects in src/it.


-*A simple web application with a single .swf file
-
-**israfil-swf-example/pom.xml
+* SWF Project

+ A simple web application with a single .swf file
+
-------------------
<project>
<modelVersion>4.0.0</modelVersion>
- <groupId>net.israfil.examples</groupId>
- <artifactId>israfil-swf-example</artifactId>
- <version>1.0-SNAPSHOT</version>
+ <groupId>net.israfil.examples</groupId>
+ <artifactId>israfil-swf-example</artifactId>
+ <version>1.0-SNAPSHOT</version>
<packaging>swf</packaging>
<build>
- <!-- if you want this vs. artifactId.swf use finalName -->
- <finalName>exampleApp</finalName>
- <plugins>
- <plugin>
- <groupId>net.israfil.mojo</groupId>
- <artifactId>maven-flex2-plugin</artifactId>
+ <!-- if you want this vs. artifactId.swf use finalName -->
+ <finalName>exampleApp</finalName>
+ <plugins>
+ <plugin>
+ <groupId>net.israfil.mojo</groupId>
+ <artifactId>maven-flex2-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
- <extensions>true</extensions>
+ <extensions>true</extensions>
<configuration>
<flexHome>${flex.home}</flexHome>
<useNetwork>true</useNetwork>
@@ -33,9 +33,9 @@
<dataServicesConfig>src/main/resources/services-config.xml</dataServicesConfig>
<main>exampleApp.mxml</main>
</configuration>
- </plugin>
- </plugins>
- </build>
+ </plugin>
+ </plugins>
+ </build>
</project>
-------------------

@@ -43,32 +43,32 @@

-------------------
<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>net.israfil.examples</groupId>
- <artifactId>israfil-example-flex-webapp</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>war</packaging>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>net.israfil.examples</groupId>
- <artifactId>israfil-swf-example</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>swf</type>
- </dependency>
- <dependency>
- <groupId>struts</groupId>
- <artifactId>struts</artifactId>
- <version>1.1.2</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.israfil.examples</groupId>
+ <artifactId>israfil-example-flex-webapp</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>net.israfil.examples</groupId>
+ <artifactId>israfil-swf-example</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>swf</type>
+ </dependency>
+ <dependency>
+ <groupId>struts</groupId>
+ <artifactId>struts</artifactId>
+ <version>1.1.2</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
<plugin>
<groupId>net.israfil.mojo</groupId>
<artifactId>maven-flex2-plugin</artifactId>
@@ -88,18 +88,18 @@
</configuration>
</execution></executions>
</plugin>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <webResources>
- <resource>
- <!-- this is relative to the pom.xml directory -->
- <directory>${project.build.directory}/flex-resources</directory>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <webResources>
+ <resource>
+ <!-- this is relative to the pom.xml
directory -->
+ <directory>${project.build.directory}/flex-resources</directory>
+ </resource>
+ </webResources>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
-------------------

Modified: trunk/maven-flex2-plugin/src/site/site.xml
==============================================================================
--- trunk/maven-flex2-plugin/src/site/site.xml (original)
+++ trunk/maven-flex2-plugin/src/site/site.xml Mon Mar 3 19:32:06 2008
@@ -10,7 +10,8 @@
<!-- <item name="FAQ" href="faq.html"/> -->
</menu>
<menu name="Examples">
- <item name="A simple Flex application in a WAR project" href="examples/simple_war_project.html"/>
+ <item name="Simple Flex app in a WAR project" href="examples/simple_war_project.html"/>
+ <item name="Flex app with extra params" href="examples/extra_parameters_project.html"/>
</menu>
${reports}
</body>

Reply all
Reply to author
Forward
0 new messages