private static void preCompileJavaSourceArtifacts ( ) { if ( preCompiled != null ) { for ( String preCompClass : preCompiled ) { logger . info ( "Precompiling dynamic Java asset class: " + preCompClass ) ; try { Asset javaAsset = AssetCache . getAsset ( preCompClass , Asset . JAVA ) ; Package pkg = PackageCache . getAssetPackage ( javaAsset . getId ( ) ) ; String packageName = pkg == null ? null : JavaNaming . getValidPackageName ( pkg . getName ( ) ) ; String className = ( pkg == null ? "" : packageName + "." ) + JavaNaming . getValidClassName ( javaAsset . getName ( ) ) ; getClass ( null , pkg , className , javaAsset . getStringContent ( ) ) ; } catch ( Exception ex ) { // let other classes continue to process logger . severeException ( ex . getMessage ( ) , ex ) ; } } } }
Precompile designated Java Source artifacts .