Skip to content
Browse files

Asdoc execution was exiting java

  • Loading branch information...
1 parent caa0521 commit 325388320f926f80cf91fe9260239738f6b71d5a @velo velo committed Jun 29, 2011
View
11 ...ojos-flex-compiler/src/main/java/org/sonatype/flexmojos/compiler/DefaultFlexCompiler.java
@@ -74,9 +74,16 @@ public void command()
String defaultTransfomer = System.getProperty( "javax.xml.transform.TransformerFactory" );
System.setProperty( "javax.xml.transform.TransformerFactory",
"org.apache.xalan.processor.TransformerFactoryImpl" );
- ASDoc.main( args );
+ ASDoc.asdoc( args );
// and set it back to the default
- System.setProperty( "javax.xml.transform.TransformerFactory", defaultTransfomer );
+ if ( defaultTransfomer == null )
+ {
+ System.getProperties().remove( "javax.xml.transform.TransformerFactory" );
+ }
+ else
+ {
+ System.setProperty( "javax.xml.transform.TransformerFactory", defaultTransfomer );
+ }
}
}, sychronize );
}
View
2 ...ojos-test-harness/src/test/java/org/sonatype/flexmojos/tests/issues/Flexmojos130Test.java
@@ -18,7 +18,7 @@ public void attachAsdoc()
throws Exception
{
File testDir = getProject( "/issues/flexmojos-130" );
- test( testDir, "install" );
+ test( testDir, "install" ).verifyErrorFreeLog();
File swc = new File( testDir, "target/flexmojos-130-1.0-SNAPSHOT.swc" );
assertThat( swc, FileMatcher.exists() );

0 comments on commit 3253883

Please sign in to comment.
Something went wrong with that request. Please try again.