[israfil-mojo commit] r610 - trunk/maven-flex2-plugin/src/main/java/net/israfil/mojo/flex2

5 views
Skip to first unread message

codesite...@google.com

unread,
Jan 15, 2008, 12:18:02 PM1/15/08
to israfil-...@googlegroups.com
Author: christianedwardgruber
Date: Tue Jan 15 08:49:22 2008
New Revision: 610

Modified:
trunk/maven-flex2-plugin/src/main/java/net/israfil/mojo/flex2/AbstractFlexMojo.java

Log:
make flex-config.xml spec optional, since the default is included by
using +flexlib=

Modified: trunk/maven-flex2-plugin/src/main/java/net/israfil/mojo/flex2/AbstractFlexMojo.java
==============================================================================
---
trunk/maven-flex2-plugin/src/main/java/net/israfil/mojo/flex2/AbstractFlexMojo.java (original)
+++
trunk/maven-flex2-plugin/src/main/java/net/israfil/mojo/flex2/AbstractFlexMojo.java
Tue Jan 15 08:49:22 2008
@@ -71,12 +71,9 @@
protected File flexHome;

/**
- * The location of the flex configuration file. Uses the installed
- * default flex-config.xml file if none supplied.
- *
- * @parameter expression="${flex.config}" default-value="${flex.home}/frameworks/flex-config.xml"
- * @required
+ * The location of the flex configuration file.
*
+ * @parameter expression="${flex.config}"
*/
protected File flexConfig;

@@ -180,11 +177,13 @@
throw new MojoExecutionException("Config file does not exist.", e);
}

- parameters.add("-load-config");
- try {
- parameters.add(flexConfig.getCanonicalFile().getAbsolutePath());
- } catch (IOException e) {
- throw new MojoExecutionException("Config file does not exist.", e);
+ if (flexConfig != null) {
+ parameters.add("-load-config");
+ try {
+ parameters.add(flexConfig.getCanonicalFile().getAbsolutePath());
+ } catch (IOException e) {
+ throw new MojoExecutionException("Config file does not exist.", e);
+ }
}

parameters.add( "-source-path" );

Reply all
Reply to author
Forward
0 new messages