Navigation Menu

Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
People seem to ignore the long warning explaing why not to use 'ignor…
Browse files Browse the repository at this point in the history
…eVersionIssues':

"EXTREMELLY UN-ADVISIBLE. When true, flexmojos will check if the compiler and the framework versions match.  Usually, you must use the same compiler and framework versions. Set this to true to avoid this check. EXTREMELLY UN-ADVISIBLE."

It is quite scarry to me, but doesn't seem enought, so this configuration got renamed to 'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking'

I hope this now reduces the number of incidents related to try using compiler v1 with framework v2.
  • Loading branch information
velo committed May 30, 2011
1 parent 72fbad2 commit 8e21a5c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -691,9 +691,9 @@ public abstract class AbstractFlexCompilerMojo<CFG, C extends AbstractFlexCompil
* Usually, you must use the same compiler and framework versions. Set this to true to avoid this check. EXTREMELLY * Usually, you must use the same compiler and framework versions. Set this to true to avoid this check. EXTREMELLY
* UN-ADVISIBLE. * UN-ADVISIBLE.
* *
* @parameter default-value="false" expression="${flex.ignoreVersionIssues}" * @parameter default-value="false" expression="${flex.iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking}"
*/ */
private boolean ignoreVersionIssues; private boolean iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking;


/** /**
* Only include inheritance dependencies of classes specified with include-classes. * Only include inheritance dependencies of classes specified with include-classes.
Expand Down Expand Up @@ -3307,7 +3307,7 @@ private File resolveThemeFile( String artifactName, String themeName, String typ


public void versionCheck() public void versionCheck()
{ {
if ( ignoreVersionIssues ) if ( iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking )
{ {
return; return;
} }
Expand All @@ -3328,7 +3328,7 @@ public void versionCheck()
+ "' - Framework: '" + "' - Framework: '"
+ frameworkVersion + frameworkVersion
+ "'.\n" + "'.\n"
+ " You can use 'ignoreVersionIssues' to disable this check. Please refer to Flexmojos maven doc.\n" + " You can use 'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking' to disable this check. Please refer to Flexmojos maven doc.\n"
+ "If you prefer fixing it instead of ignoring, take a look at: https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version"; + "If you prefer fixing it instead of ignoring, take a look at: https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version";
throw new IllegalStateException( msg ); throw new IllegalStateException( msg );
} }
Expand Down

0 comments on commit 8e21a5c

Please sign in to comment.