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" );